/* ====== RESET BÁSICO ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; color: #111; }
a { color: inherit; text-decoration: none; }

/* ====== MEDIA GLOBAL (SEGURO) ======
   - Evita deformaciones
   - NO obliga width:100%
   - Mantiene clics/links normales
*/
img, svg{
  max-width: 100%;
  height: auto;
}

/* Importante:
   img suele necesitar display:block para evitar “espacios” debajo.
   SVG inline NO siempre conviene block global, por eso lo dejamos fuera.
*/
img{
  display: block;
}

/* Si usas SVG inline (pegado en el HTML) y se te agranda por herencia,
   esto lo estabiliza (sin forzar tamaño global):
*/
svg{
  display: inline-block;
}


/* =========================================================
   HERO (IMAGEN) + HERO (VIDEO)
   ========================================================= */
.hero{
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Home / páginas con imagen de fondo */
.hero--image{
  background-image: url("../img/j2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay (para imagen y video) */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
  pointer-events: none; /* CLAVE: no bloquea clicks */
}

/* Video de fondo */
.hero-video{ background: none; }

.hero-bg-video{
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Contenido encima */
.hero-content{
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;

  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content h1{
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-content p{
  font-size: 22px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 12px;
}

.hero h1{
  font-size: clamp(32px, 6vw, 56px);
}

.hero p{
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1.4;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* =========================================================
   NAV
   ========================================================= */
.nav{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 22px;
  z-index: 10; /* encima del overlay */
}

/* ===== MENU: NO SE MUEVE NUNCA ===== */
.menu{
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.menu > li { position: relative; }

.menu a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid transparent; /* existe siempre, no mueve */
  box-sizing: border-box;

  font-weight: 700;
  font-size: 15px;
  line-height: 1;

  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.menu a:hover{
  background: rgba(244,180,0,.18);
}

.active-link{
  background: #f4b400;
  color: #111 !important;
  border-color: #f4b400;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 9px;
  min-width: 180px;
  list-style: none;
  background: rgba(0,0,0,.85);
  border-radius: 10px;
  padding: 10px;
  z-index: 99999;
}
.dropdown-menu li a{
  display:block;
  padding: 10px 12px;
  border-radius: 8px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
  display: block;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn, .btn-primary{
  display: inline-flex;
  background: #f4b400;
  color: #000;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 16px;
  position: relative;
  z-index: 20; /* por si algo se superpone */
}
.btn:hover, .btn-primary:hover{ filter: brightness(.95); }

/* =========================================================
   PÁGINAS INTERNAS (contenedor)
   ========================================================= */
.page{
  padding: 50px 20px;
  max-width: 980px;
  margin: 0 auto;
}

/* =========================================================
   PROJECTS + LIGHTBOX
   ========================================================= */
.projects{ max-width: 1100px; margin: 0 auto; text-align: center; }
.projects-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.project-card{
  margin: 0;
  background: rgba(0,0,0,0.65);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.project-card img{
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.project-card figcaption{
  padding: 12px 14px;
  font-weight: 600;
  color: #fff;
}

.lightbox{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-img{
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 10px;
}
.close{
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about{
  padding: 80px 20px;
  background-color: #f5f5f5;
}
.about-container{
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.about-container p{
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  padding: 22px;
  text-align: center;
  background: #0b0b0b;
  color: #fff;
  margin-top: 40px;
}

/* =========================================================
   HOME STRIP (3 columnas)
   ========================================================= */
.home-strip{
  background: radial-gradient(1200px 400px at 50% 0%, rgba(255,200,0,.12), transparent 60%),
              linear-gradient(180deg, #121417 0%, #0b0d10 100%);
  padding: 60px 20px;
}

.home-strip__inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.home-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 15px;
  color: #fff;

  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-start;
}

.card-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.home-card--center{
  text-align: center;
}

/* SOLO la tarjeta WE ACCEPT */
.home-card.home-card--center{
  padding: 28px;      /* tamaño interno */
  min-height: 280px;  /* altura mínima */
}

/* =========================================================
   CONTACT INFO (ICONOS SVG: tamaño fijo y click OK)
   ========================================================= */

/* ===== CONTACT INFO ===== */
.contact-info{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-info li{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
}

/* Contenedor del icono */
.contact-info .ci-icon{
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden; /* evita que se “salga” */
}

/* Icono adentro (svg o img) */
.contact-info .ci-icon svg,
.contact-info .ci-icon img{
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  object-fit: contain !important;
}

/* Si es SVG lineal (stroke) */
.contact-info .ci-icon svg{
  fill: none;
  stroke: #f4c430;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Links */
.contact-info a{
  color: #f4c430;
  text-decoration: none;
  font-weight: 700;
}
.contact-info a:hover{ text-decoration: underline; }

.ci-location{
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}



/* =========================================================
   CENTER LOGOS (sticker)
   ========================================================= */
.home-card--center{
  text-align: center;
  align-items: center;
}

.badge-logos{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.badge-logos img{
  max-height: 56px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05) brightness(1.05);
  opacity: 0.95;
}
.logo-link:hover img{
  filter: grayscale(0%) contrast(1.05) brightness(1.05);
  opacity: 1;
}

/* =========================================================
   PAYMENTS
   ========================================================= */
.home-card--pay{
  text-align: center;
  align-items: center;
}
.pay-title{
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.pay-img{
  height: 45px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.08);
}

/* Hours */
.hours-block{
  width: 100%;
  max-width: 320px;
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.hours-title{
  font-weight: 900;
  color: #f4b400;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  .home-strip__inner{ grid-template-columns:  repeat(2, 1fr); }
}
@media (max-width: 700px){
  .home-strip__inner{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .hero-content h1{ font-size: 34px; }
}

img, svg { max-width: 100%; height: auto; }
img { display:block; }
svg { display:inline-block; }

 /* ===== HERO: FIX MOBILE SPACING ===== */
@media (max-width: 720px){

  /* que el hero no “estire” tanto */
  .hero{
    min-height: 85vh;            /* o 100vh si lo quieres full */
    background-position: center; /* asegura centrado */
  }

  /* el bloque de texto: compacto y centrado */
  .hero-content{
    max-width: 92%;
    margin: 0 auto;
    text-align: center;
  }

  /* título: menos separación entre líneas */
  .hero-content h1{
    font-size: 34px;   /* lo mantienes */
    line-height: 1.15; /* CLAVE: evita que se vea separado */
    margin-bottom: 10px;
  }

  /* subtítulos / líneas debajo */
  .hero-content p,
  .hero-content .subtitle,
  .hero-content .tagline{
    line-height: 1.2;  /* CLAVE */
    margin: 6px 0;     /* reduce separación */
  }

  /* si tienes lista o bloques debajo del h1 */
  .hero-content > *{
    margin-top: 8px;
  }
}

/* =========================
   FIX GLOBAL: CLICKS + ICONOS
   Pegar al FINAL del style.css
   ========================= */

/* No permitas que overlays bloqueen clicks */
.hero::after,
.hero-overlay{
  pointer-events: none !important;
}

/* Asegura que nav y contenido estén arriba */
.nav{ position: absolute; top:0; left:0; width:100%; z-index: 50; }
.hero-content{ position: relative; z-index: 40; }

/* Dropdown siempre arriba */
.dropdown-menu{ z-index: 99999 !important; }

/* IMPORTANTE: NO uses img{width:100%} global */
img, svg{
  max-width: 100%;
  height: auto;
}

/* Iconos del Contact Info: tamaño fijo */
.contact-info li{
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info .ci-icon{
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Si el icono es SVG inline */
.contact-info .ci-icon svg{
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none;
  stroke: #f4b400;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Si el icono es <img> */
.contact-info .ci-icon img{
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  display: block;
}

/* Links clickeables (y visibles) */
.contact-info a{
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.contact-info a:hover{ text-decoration: underline; }

.hero--projects{

  background-image: url("../img/projects/02.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero--residential{

  background-image: url("../img/3.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



.hero--commercial{

  background-image: url("../img/16.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



.hero--industrial{

  background-image: url("../img/01.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



.hero--contact{

  background-image: url("../img/j2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ==============================
   FORM CENTERED (CONTACT/ESTIMATE)
   ============================== */

.form-card{
  max-width: 980px;
  margin: 40px auto;
  padding: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

.form-title{
  font-size: 26px;
  margin-bottom: 18px;
  color: #111;
}

.lead-form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form label{
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #111;
}

.lead-form input,
.lead-form select,
.lead-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #d7d7d7;
  font-size: 16px;
  background: #fff;
}

.lead-form textarea{
  resize: vertical;
}

.lead-form .full{
  grid-column: 1 / -1;
}

.lead-form button{
  grid-column: 1 / -1;
  justify-self: start;
}

.lead-form label:first-of-type{
  margin-top: 20px;   /* baja solo el primer campo (Name) */
}

/* Responsive */
@media (max-width: 820px){
  .lead-form{
    grid-template-columns: 1fr;
  }
  .lead-form button{
    width: 100%;
    justify-self: stretch;
  }
}


/* FIX GLOBAL: no forzar width 100% en todas las imágenes */
img{ max-width: 100%; height: auto; }

/* SOLO para los iconos grandes de Contact Info */
.contact-card img{
  width: auto;
}

/* Tamaño fijo para Facebook / WhatsApp */
.contact-card .social-link img{
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
}


/* Logos grandes SOLO en el card */
.social-big img{
  width: 140px;      /* ajusta 120–160 */
  max-width: 140px;
  height: auto;
  display: block;
}


/* =========================
   SOCIAL ICONS (FIXED SIZE)
   ========================= */

.social-icons{
  position: absolute;
  left: 20px;        /* a la izquierda */
  bottom: 40px;    /* controla qué tan abajo quedan */
  display: flex;
  gap: 14px;
  align-items: center;
}


.social-icons a{
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.social-icons svg{
  width: 30px !important;
  height: 30px !important;
  fill: #57df8f; /* verde WhatsApp-style */
  transition: transform .2s ease, fill .2s ease;
}

/* Hover */
.social-icons a:hover svg{
  transform: scale(1.1);
  fill: #f4c430; /* amarillo marca */
}


.licensed-logos{
display: flex;
justify-content: center; /* centra horizontalmente */
align-items: center; /* centra verticalmente */
gap: 18px; /* espacio entre logos */
flex-wrap: wrap; /* permite bajar en móvil */
}

.licensed-logos img{
display: inline-block;
max-height: 70px; /* ajusta el tamaño */
width: auto;
}

.licensed-logos img {
  background: rgba(255,255,255,0.95);
  padding: 10px;
  border-radius: 10px;
}

/* LICENSED: 3 logos en horizontal */
.licensed-logos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
  justify-items: center;
}

/* Controla el tamaño de cada logo */
.licensed-logos img{
  display: inline-block;     /* sobreescribe img{display:block;} */
  width: 100%;
  max-width: 100px;          /* ajusta si quieres más grande/pequeño */
  height: 60px;              /* fuerza altura pareja */
  object-fit: contain;       /* no se deforman */
}


/* Bloque amarillo - On Call */
.on-call-badge{
  background: #f4c430;           /* amarillo profesional */
  color: #111;
  font-weight: 700;
  text-align: center;

  padding: 10px 14px;
  margin-top: 12px;

  border-radius: 8px;
  letter-spacing: 0.3px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}



/* ================= LIGHTBOX ================= */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active{
  display: flex;
}

.lightbox-img{
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
}

/* Cerrar */
.lightbox-close{
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* Flechas */
.lightbox-prev,
.lightbox-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox-prev{ left: 30px; }
.lightbox-next{ right: 30px; }

.lightbox-prev:hover,
.lightbox-next:hover{
  color: #f4c430;
}

/* Mobile */
@media (max-width: 768px){
  .lightbox-prev,
  .lightbox-next{
    font-size: 40px;
  }
}


/* ===============================
   SOCIAL TOP (FACEBOOK + WHATSAPP)
   =============================== */

.social-top{
  position: fixed;
  top: 14px;
  right: 18px;
  display: flex;
  gap: 10px;
  z-index: 99999;
}

/* Botón base */
.social-btn{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .2s ease, background .2s ease;
}

.social-btn svg{
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Hover */
.social-btn:hover{
  transform: translateY(-2px);
}

/* Colores por red */
.social-btn.facebook:hover{
  background: #1877f2;
}

.social-btn.whatsapp:hover{
  background: #25d366;
}

/* Mobile: un poco más pequeños */
@media (max-width: 768px){
  .social-btn{
    width: 38px;
    height: 38px;
  }
  .social-btn svg{
    width: 18px;
    height: 18px;
  }
}


/* =========================
   HERO SOCIAL ICONS
   ========================= */

.hero-social{
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* Botón circular */
.hero-social a{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.23);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}

.hero-social a:hover{
  background: #f4b400;
  transform: translateY(-2px);
}

/* Iconos SVG */
.hero-social img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}


/* =========================
   AJUSTES SOLO PARA MÓVIL
   ========================= */
@media (max-width: 768px){

  /* Separación mayor del botón Contact Us */
  .social-icons{
    margin-top: 32px;      /* ⬇ más espacio en móvil */
    gap: 18px;             /* ⬆ más aire entre íconos */
  }

  /* Botones sociales un poco más grandes */
  .social-icons a{
    width: 54px;
    height: 54px;
  }

  /* Iconos SVG más visibles */
  .social-icons svg{
    width: 34px !important;
    height: 34px !important;
  }

}

.top-phone{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

/* Si usas un icono antes del número */
.top-phone::before{
  content: "📞";
  font-size: 20px;
  line-height: 1;
}
