/* ═══════════════════════════════════════════════════════════════
   EVENCARP S.A.S. Y CUBRIMIENTOS — styles.css
   Versión: 1.0
   ─────────────────────────────────────────────────────────────
   ÍNDICE:
   1.  VARIABLES (colores, tipografía, espaciados)
   2.  RESET Y BASE
   3.  UTILIDADES (botones, banners de sección)
   4.  HEADER FIJO
   5.  MENÚ HAMBURGUESA (mobile)
   6.  SECCIÓN HERO + SLIDER
   7.  SECCIÓN MISIÓN Y VISIÓN
   8.  SECCIÓN SERVICIOS (tabs)
   9.  SECCIÓN PROYECTOS (grid)
   10. SUBPÁGINAS DE PROYECTO
   11. SECCIÓN CONTACTO
   12. FOOTER
   13. LIGHTBOX
   14. BOTÓN FLOTANTE WHATSAPP
   15. ANIMACIONES (scroll-reveal)
   16. RESPONSIVE MEDIA QUERIES
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   1. VARIABLES
   ⚠️ Para cambiar colores, modifica SOLO esta sección
   ───────────────────────────────────────────────────────────── */
:root {
  /* Paleta corporativa */
  --color-dark:    #1a1a1a;   /* Fondo header / footer lado negro */
  --color-red:     #E02020;   /* Rojo corporativo */
  --color-white:   #FFFFFF;
  --color-bg:      #F5F5F5;   /* Gris claro del body */
  --color-text:    #111111;   /* Texto oscuro */
  --color-green-wa:#25D366;   /* Verde WhatsApp */

  /* Tipografía
     ⚠️ Para cambiar la fuente: modifica --font-body y --font-display */
  --font-body:    'Montserrat', Arial, sans-serif;
--font-display: 'Montserrat', Arial, sans-serif;

  /* Escala tipográfica */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2rem;
  --fs-2xl:  2.5rem;
  --fs-3xl:  3.5rem;

  /* Altura del header (cambia si redimensionas el logo) */
  --header-h: 70px;

  /* Espaciados */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;

  /* Bordes */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-card: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-header: 0 2px 12px rgba(0,0,0,0.18);

  /* Transición global */
  --transition: 0.25s ease;
}


/* ─────────────────────────────────────────────────────────────
   2. RESET Y BASE
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Offset de scroll para no quedar tapado por el header fijo */
  scroll-padding-top: var(--header-h);
   overflow-x: hidden;        /* ← AGREGA */
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;       
  width: 100%;              
  max-width: 100%;           
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accesibilidad: foco visible para teclado */
:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

/* Respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ─────────────────────────────────────────────────────────────
   3. UTILIDADES
   ───────────────────────────────────────────────────────────── */

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.btn:active { transform: translateY(0); }

/* Botón rojo corporativo */
.btn--red {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--red:hover { background: #c01818; }

/* Botón contorno blanco (hero) */
.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* Botón blanco con contorno (contacto) */
.btn--white-outline {
  background: var(--color-white);
  color: var(--color-dark);
  border: 2px solid var(--color-white);
}

.btn--white-outline:hover {
  background: transparent;
  color: var(--color-white);
}

/* Botón verde WhatsApp */
.btn--whatsapp {
  background: var(--color-green-wa);
  color: var(--color-white);
}

.btn--whatsapp:hover { background: #1ebe5d; }

/* Botón grande (en subpáginas de proyecto) */
.btn--lg {
  padding: 16px 40px;
  font-size: var(--fs-md);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Banner de sección (con foto de fondo) ── */
.section-banner {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

/* Overlay oscuro sobre la foto */
.section-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.section-banner__title {
  position: relative;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.95);
  padding: 10px 32px;
}

.section-banner__sub {
  position: relative;
  color: var(--color-white);
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* ── Animación de entrada al hacer scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ─────────────────────────────────────────────────────────────
   4. HEADER FIJO
   ─────────────────────────────────────────────────────────────
   ┌──────────────────┬───────────────────────────────────────┐
   │  BLANCO (logo)   │  NEGRO (nav + botón CTA)              │
   └──────────────────┴───────────────────────────────────────┘
   ───────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  background: var(--color-white);   /* base blanca para que el negro flote encima */
  box-shadow: var(--shadow-header);
}

/* Lado blanco con el logo */
.header__logo-side {
  background: var(--color-white);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md) 0 var(--space-lg);
  flex-shrink: 0;
  position: relative;
  z-index: 2;                       /* blanco DEBAJO */
min-width: 220px;
}

.header__logo {
  height: 55px;           /* ⚠️ Ajusta si el logo es más grande/pequeño */
  width: auto;
  object-fit: contain;
}

/* Lado negro con nav
   ───────────────────────────────────────────────
   El negro llena TODO el alto del header y solo tiene
   la esquina inferior izquierda redondeada (curva suave
   de transición hacia el blanco del logo).
   ─────────────────────────────────────────────── */
.header__nav-side {
  background: var(--color-dark);
  flex: 1;
  display: flex;
  align-items: center;            /* centra verticalmente menú + botón */
  justify-content: center;
  gap: var(--space-md);
  padding: 0 var(--space-lg) 0 60px;
  position: relative;
  z-index: 3;                     /* negro ENCIMA del blanco */

  /* Solo la esquina inferior izquierda redondeada */
  border-bottom-left-radius: 50px;

  /* El negro se monta sobre el blanco para que la curva
     se dibuje sobre el área blanca del logo */
  margin-left: -40px;
}

/* Contenedor nav: centrado verticalmente */
.header__nav {
  display: flex;
  align-items: center;
}

/* Lista del menú: centrada verticalmente con el botón */
.header__nav-list {
  display: flex;
  align-items: center;            /* alinea los textos al centro */
  gap: var(--space-md);
}

.header__nav-link {
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

/* Línea roja animada al pasar el mouse */
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
  width: 100%;
}

.header__nav-link:hover { color: var(--color-red); }

/* Botón CTA en el header */
.header__cta {
  font-size: var(--fs-xs);
  padding: 10px 18px;
  white-space: nowrap;
}

/* Botón hamburguesa (oculto en desktop) */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Estado abierto del hamburger (clase añadida por JS) */
.header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.open span:nth-child(2) { opacity: 0; }
.header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─────────────────────────────────────────────────────────────
   5. MENÚ MOBILE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {

  /* Quita la curva en móvil para que el menú ocupe todo el ancho */
  .header__nav-side {
    margin-left: 0;
    border-radius: 0;
    padding: 0 var(--space-md);
  }

  .header__hamburger { display: flex; }

  /* Menú vertical oculto por defecto */
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-dark);
    padding: var(--space-sm) 0;
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }

  /* Clase añadida por JS al abrir */
  .header__nav.open {
    transform: translateY(0);
  }

  .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .header__nav-link {
    display: block;
    padding: 14px 0;
    font-size: var(--fs-md);
    text-align: center;
    width: 100%;
  }

  .header__cta { display: none; } /* El botón de cotizar se oculta en mobile; está también en el hero */
}


/* ─────────────────────────────────────────────────────────────
   6. HERO SLIDER
   ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-h);
}

/* Contenedor de slides */
.hero__slides {
  position: absolute;
  inset: 0;
}

/* Cada slide ocupa todo el espacio */
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide--active { opacity: 1; }

/* Puntos indicadores */
.hero__dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.hero__dot.active { background: var(--color-red); }

/* Contenido sobre el slider */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 var(--space-lg);
}

/* Tagline con fondo rojo semitransparente */
.hero__tagline {
  display: inline;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-white);
  /* Efecto "highlighter" rojo en múltiples líneas */
  background: rgba(224,32,32,0.88);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 8px 14px;
}

.hero__btn {
  display: inline-flex;
  margin-top: var(--space-md);
  clear: both;
}
  .hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

}


/* ─────────────────────────────────────────────────────────────
   7. SECCIÓN MISIÓN Y VISIÓN
   ───────────────────────────────────────────────────────────── */
.mv-section {
  background: var(--color-white);
}

/* ── BLOQUE MISIÓN ──
   Fondo NEGRO solo en la mitad del texto (no ocupa todo el ancho).
   La imagen del operario queda a la derecha sobre fondo blanco. */
.mv-block--mision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-md);
  min-height: 380px;
  position: relative;
  background: var(--color-white);
}

/* Caja negra de fondo que cubre solo la zona del texto (mitad izquierda) */
.mv-block--mision::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;                         /* ⚠️ Ancho del fondo negro */
  background: var(--color-dark);
  border-left: 6px solid var(--color-red);  /* borde rojo izquierdo */
  z-index: 0;
}

/* Texto de la misión */
.mv-block--mision .mv-block__text {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
}

/* Imagen del operario (derecha) */
.mv-block--mision .mv-block__img-wrap {
  position: relative;
  z-index: 1;
  padding-right: var(--space-lg);
}

.mv-block--mision .mv-block__img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 2px;
}

/* Título MISIÓN en rojo con línea inferior */
.mv-block--mision .mv-block__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  margin-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-red);  /* línea roja bajo el título */
  display: inline-block;
}

/* Texto de la misión TODO en rojo */
.mv-block--mision .mv-block__body {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-red);
  font-weight: 600;
}

/* ── BLOQUE VISIÓN ──
   Imagen a la izquierda (fondo blanco), texto a la derecha en negro.
   Título VISIÓN en rojo con líneas finas decorativas. */
.mv-block--vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-lg);
  min-height: 380px;
  background: var(--color-white);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 0;
}

/* Imagen de la visión (izquierda) */
.mv-block--vision .mv-block__img-wrap {
  overflow: hidden;
}

.mv-block--vision .mv-block__img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

/* Caja de texto de la visión con líneas finas decorativas */
.mv-block--vision .mv-block__text {
  position: relative;
  padding: var(--space-md) 0 var(--space-md) var(--space-md);
  border-right: 1px solid #ccc;       /* línea fina derecha */
  border-top: 1px solid #ccc;         /* línea fina arriba */
}

/* Título VISIÓN en rojo, alineado a la derecha, con línea roja a su izquierda */
.mv-block--vision .mv-block__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
  margin-bottom: var(--space-sm);
  position: relative;
}

/* Línea roja horizontal a la izquierda del título VISIÓN */
.mv-block--vision .mv-block__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 40%;
  height: 2px;
  background: var(--color-red);
}

/* Texto de la visión en negro */
.mv-block--vision .mv-block__body {
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--color-text);
  font-weight: 600;
}
/* ─────────────────────────────────────────────────────────────
   8. SECCIÓN SERVICIOS (TABS)
   ───────────────────────────────────────────────────────────── */
.services-section {
  background: var(--color-white);
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: 200px 1fr;   /* columna izq fija + resto */
gap: var(--space-lg);
align-items: start;
}
.services-tagline {
  color: var(--color-red);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  padding-top: 8px;
}
/* Fila de tabs separadas */
.services-tabs {
  display: flex;
  gap: 12px;                         /* separación entre tabs */
  margin-bottom: var(--space-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.services-tabs::-webkit-scrollbar { display: none; }

/* Cada tab: cuadrada, número arriba, nombre abajo */
.services-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;           /* número alineado a la izquierda */
  justify-content: space-between;
  min-width: 140px;
  min-height: 150px;
  padding: 14px;
  background: #e8e8e8;               /* gris claro por defecto */
  color: var(--color-text);
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
  flex: 1;
}

.services-tab:hover {
  background: #dcdcdc;
}

/* Tab activa: completamente roja */
.services-tab--active {
  background: var(--color-red);
  color: var(--color-white);
}

/* Número grande arriba */
.tab-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

/* Nombre del servicio abajo, en rojo (blanco si está activa) */
.tab-name {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--color-red);
  text-align: left;
  align-self: flex-start;
}

.services-tab--active .tab-name {
  color: var(--color-white);         /* nombre blanco en la tab activa */
}

/* Panel de contenido del servicio */
.svc-panel {
  padding: var(--space-md) 0;
}

.svc-panel__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: var(--space-md);
}

.svc-panel__body {
  font-size: var(--fs-md);
  line-height: 1.8;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #ddd;     /* línea separadora */
}

/* Pregunta "¿Tienes dudas?" en rojo */
.svc-panel__cta-text {
  font-size: var(--fs-sm);
  color: #444;
  margin-bottom: var(--space-md);
}

.svc-panel__cta-text strong { color: var(--color-red); }

/* ─────────────────────────────────────────────────────────────
   9. SECCIÓN PROYECTOS (GRID)
   ───────────────────────────────────────────────────────────── */
.projects-section {
  background: var(--color-bg);
}

.projects-grid {
  display: grid;
  /* 4 columnas en desktop; el grid se adapta en media queries */
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

/* Tarjeta de proyecto */
.project-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.project-card:focus { outline: 3px solid var(--color-red); }

.project-card__img-wrap {
  overflow: hidden;
  height: 180px;
}

.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card__img-wrap img {
  transform: scale(1.08);
}

.project-card__body {
  padding: var(--space-sm);
}

.project-card__title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.project-card__desc {
  font-size: var(--fs-xs);
  color: #444;
  line-height: 1.5;
}


/* ─────────────────────────────────────────────────────────────
   10. SUBPÁGINAS DE PROYECTO
   ───────────────────────────────────────────────────────────── */
.view-project {
  padding-top: var(--header-h);
}



/* El banner ya usa .section-banner — solo ajustamos el botón volver */
.project-page__banner {
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
}

.project-page__back {
  position: absolute;
  top: calc(var(--header-h) + 16px);
  left: var(--space-md);
  z-index: 5;
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}

.project-page__back:hover { background: rgba(224,32,32,0.85); }

/* Texto descriptivo del proyecto */
.project-page__desc {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: justify;
  font-size: var(--fs-md);
  line-height: 1.8;
  background: var(--color-white);
}

.project-page__desc p + p { margin-top: var(--space-sm); }

/* Lista de subtipos con bullet rojo */
.project-page__bullets {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-lg);
  background: var(--color-white);
  list-style: none;
}

.project-page__bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-md);
  line-height: 1.7;
}

/* Bullet rojo personalizado */
.project-page__bullets li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-size: 0.65em;
  top: 6px;
}

/* El texto fuerte de cada subtipo también va en rojo */
.project-page__bullets strong {
  color: var(--color-red);
}
/* Video en subpáginas de proyecto */
.project-page__video {
  max-width: 350px;
  margin: 0 auto var(--space-md);
  padding: 0 var(--space-md);
  background: var(--color-white);
}

.project-page__video video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
/* Galería 2×2 */
.project-page__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-lg);
  background: var(--color-white);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Botón CTA del proyecto */
.project-page__cta {
  background: var(--color-white);
  text-align: center;
  padding: var(--space-md) var(--space-md) var(--space-xl);
}


/* ─────────────────────────────────────────────────────────────
   11. SECCIÓN CONTACTO
   ───────────────────────────────────────────────────────────── */


/* Hero de contacto (fondo verde con imagen WhatsApp) */
.contact-hero {
 background-color: #1e5631;
  background-image: url('../assets/img/pergolas/pg9.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 500px;        
  display: flex;             
  align-items: center;       
  padding: 60px 40px;
}

/* Overlay semitransparente */
.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 60, 35, 0.10);
}

.contact-hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 20px 20px 20px 40px;
}

.contact-hero__title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.contact-hero__title span { color: #a8ffc4; }

/* Banda roja */
.contact-band {
  background: var(--color-red);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}

.contact-band p {
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-transform: uppercase;
}

/* 3 íconos de contacto */
.contact-info {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  background: var(--color-white);
  flex-wrap: wrap;
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

/* Círculo rosado con ícono */
.contact-info__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fdd;               /* ⚠️ Cambia este color si quieres otro tono */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
}

.contact-info__icon svg {
  width: 28px;
  height: 28px;
}

.contact-info__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}

a.contact-info__label:hover { color: var(--color-red); }

/* Mapa de Google Maps */
.contact-map iframe {
  display: block;
  width: 100%;
  height: 400px;   /* ⚠️ Cambia la altura del mapa aquí */
  border: none;
}


/* ─────────────────────────────────────────────────────────────
   12. FOOTER
   ─────────────────────────────────────────────────────────────
   ┌─────────────┬────────────────────────────────────────────┐
   │ BLANCO logo │  NEGRO: teléfono · dirección · copyright   │
   └─────────────┴────────────────────────────────────────────┘
   ───────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  min-height: 150px;
  margin-top: var(--space-md);  /* espacio entre mapa y footer */
}

.footer__logo-side {
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.footer__logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  /* Logo redondeado con sombra */
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.footer__info-side {
  background: var(--color-dark);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  gap: 6px;
  text-align: center;
  position: relative;
  z-index: 3;
  border-top-left-radius: 50px;
  margin-left: -40px;
}

.footer__phone,
.footer__address,
.footer__copy {
  color: var(--color-white);
  font-size: var(--fs-sm);
}
.footer__credit {
  color: #888;
  font-size: 0.7rem;
  margin-top: 4px;
  font-style: italic;
}

.footer__credit strong {
  color: var(--color-white);
  font-weight: 600;
}

.footer__credit a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}

.footer__credit a:hover {
  color: var(--color-green-wa);
}

.footer__copy {
  color: #aaa;
  font-size: var(--fs-xs);
  margin-top: 4px;
}


/* ─────────────────────────────────────────────────────────────
   13. LIGHTBOX
   ───────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Botón cerrar */
.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--color-white);
  font-size: 2rem;
  background: rgba(255,255,255,0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover { background: var(--color-red); }

/* Flechas de navegación */
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 2rem;
  background: rgba(255,255,255,0.12);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__prev { left: var(--space-md); }
.lightbox__next { right: var(--space-md); }

.lightbox__prev:hover,
.lightbox__next:hover { background: var(--color-red); }

/* Contador de imágenes */
.lightbox__counter {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
}


/* ─────────────────────────────────────────────────────────────
   14. BOTÓN FLOTANTE WHATSAPP
   ───────────────────────────────────────────────────────────── */
.fab-whatsapp {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-green-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

.fab-whatsapp:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.65);
}

/* Animación de pulso para llamar la atención */
@keyframes pulse {
  0%   { box-shadow: 0 4px 16px rgba(37,211,102,0.5); }
  50%  { box-shadow: 0 4px 30px rgba(37,211,102,0.85); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.5); }
}

.fab-whatsapp { animation: pulse 2.5s ease infinite; }


/* ─────────────────────────────────────────────────────────────
   15. ANIMACIONES (scroll-reveal — clases aplicadas por JS)
   ───────────────────────────────────────────────────────────── */
/* Las clases .reveal y .visible ya están definidas en la sección 3 */


/* ─────────────────────────────────────────────────────────────
   16. RESPONSIVE — MEDIA QUERIES
   ─────────────────────────────────────────────────────────────
   Breakpoints:
   - Tablet:  ≤ 1024px
   - Mobile:  ≤ 768px
   - Small:   ≤ 480px
   ───────────────────────────────────────────────────────────── */

/* ── Tablet ── */
@media (max-width: 1024px) {

  .projects-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
  }

  /* MISIÓN: en tablet/móvil, el fondo negro ocupa todo el ancho */
  .mv-block--mision {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mv-block--mision::before {
    width: 100%;            /* fondo negro completo en pantallas pequeñas */
  }
  .mv-block--mision .mv-block__img-wrap {
    padding: 0 var(--space-md) var(--space-md);
  }

  /* VISIÓN: una columna, imagen arriba */
  .mv-block--vision {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--space-md);
    gap: var(--space-md);
  }
  .mv-block--vision .mv-block__img-wrap {
    order: -1;              /* imagen arriba */
    height: 240px;
  }
  .mv-block--vision .mv-block__text {
    border: none;           /* quita las líneas decorativas en móvil */
    padding: 0;
  }
  .mv-block--vision .mv-block__title {
    text-align: left;
  }
  .mv-block--vision .mv-block__title::before {
    display: none;          /* quita la línea roja del título en móvil */
  }
}
/* ── Mobile ── */
@media (max-width: 768px) {
  /* Logo más pequeño en móvil */
  .header__logo {
    height: 32px;
  }
   /* En móvil: quita la curva del header y que ocupe todo el ancho */
  .header__nav-side {
    margin-left: 0;
    border-radius: 0;
    padding: 0 12px;
  }
   .header__hamburger {
    display: flex;
  }
 /* Reduce el padding del lado del logo */
  .header__logo-side {
    padding: 0 12px;
    min-width: auto;
  }
  /* Ocultar el banner duplicado "Creamos tu diseño a medida"
     (porque ya aparece en la columna del grid) */
  .section-banner__sub {
    display: none;
  }

  /* El texto del servicio que se sale: ajustar ancho */
  .svc-panel__title,
  .svc-panel__body,
  .svc-panel__cta-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  :root { --header-h: 70px; }

  .hero { min-height: 60vh; }

  .hero__tagline { font-size: var(--fs-lg); }

  .hero__content { padding: 0 var(--space-sm); }

  .section-banner { height: 220px; }
  .section-banner__title { font-size: var(--fs-xl); }

  .mv-block__text { padding: var(--space-md); }

  .contact-info { gap: var(--space-md); }

  .footer {
    flex-direction: column;
  }

  .footer__logo-side {
    padding: var(--space-md);
  }

  .project-page__gallery {
    grid-template-columns: 1fr;
  }

  /* En móvil: servicios en una sola columna */
  .services-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .services-tabs {
    gap: 8px;
  }

  .services-tab {
    min-width: 55px;
    min-height: 110px;
    padding: 8px 4px;
  }

  .tab-num {
    font-size: 1.4rem;
  }

  .tab-name {
    font-size: 0.6rem;
    text-align: left;
    white-space: normal;      /* permite saltos de línea */
    line-height: 1.2;
    word-break: break-word;
  }
  /* Menú móvil más funcional */
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-dark);
    padding: var(--space-md) 0;
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .header__nav.open {
    transform: translateY(0);
  }

  .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .header__nav-link {
    display: block;
    width: 100%;
    padding: 16px 0;
    text-align: center;
    font-size: var(--fs-md);
  }
  /* Header móvil: que ambos lados estén alineados */
  .header {
    align-items: center;
  }
   /* Logo en móvil — más grande y centrado */
  .header__logo {
    height: 48px;
     max-width: 100%;
  }

  .header__logo-side {
    height: auto;
  max-height: 54px;
  max-width: 110px;
  width: auto;
  object-fit: contain;
  }

  .header__nav-side {
    height: 100%;
    align-items: center;
  }

  .header__hamburger {
    align-self: center;
  }
   /* ↓ AQUÍ pegas el nuevo bloque ↓ */
  
  .svc-panel {
    overflow: hidden;
    word-wrap: break-word;
  }

  .svc-panel__body,
  .svc-panel__title,
  .svc-panel__cta-text {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .services-right {
    padding-right: var(--space-sm);
    max-width: 100%;
    overflow: hidden;
  }
  /* Íconos de contacto en columna en móvil */
  .contact-info {
    flex-direction: column;
    gap: var(--space-md);
    padding-bottom: 80px;       /* deja espacio para el botón flotante */
  }
}

img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* ── Pantallas muy pequeñas ── */
@media (max-width: 480px) {

  .projects-grid {
    grid-template-columns: 1fr; /* 1 columna en mobile pequeño */
  }

  .contact-hero__title { font-size: var(--fs-xl); }

  .btn--lg { padding: 14px 24px; font-size: var(--fs-base); }
}
.servicios__cobertura {
  position: relative;
  color: #ffffff;
   font-size: var(--fs-lg);
  font-weight: 700;
}