/* ── Variables ─────────────────────────────────────────── */
:root {
  --color-dark:    #53575b;
  --color-teal:    #85c9cc;
  --color-coral:   #f46e60;
  --color-white:   #ffffff;
  --color-light:   #f5f7f8;
  --color-dark-80: rgba(83, 87, 91, 0.8);

  --font-base: 'Inter', sans-serif;
  --header-h: 72px;
  --radius:   8px;
  --transition: 0.3s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-base); color: var(--color-dark); background: var(--color-white); }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease,
              backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 2px 24px rgba(133, 201, 204, 0.12),
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 rgba(255,255,255,0.2) inset;
}

/* Shimmer highlight on top edge */
.site-header.scrolled::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.9) 30%,
    rgba(133,201,204,0.6) 50%,
    rgba(255,255,255,0.9) 70%,
    transparent
  );
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.site-header.scrolled .logo img {
  filter: drop-shadow(0 1px 2px rgba(255,255,255,0.4));
}

.site-header.header-dark .logo img {
  filter: brightness(0) saturate(0) brightness(0.25);
}

/* ── Nav ───────────────────────────────────────────────── */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.site-header.scrolled .main-nav a {
  color: var(--color-dark);
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.main-nav a:hover {
  color: var(--color-teal);
}

.main-nav .nav-cta {
  background: var(--color-coral);
  color: var(--color-white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
}

.main-nav .nav-cta:hover {
  background: #e05a4d;
  color: var(--color-white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: background var(--transition);
}

.site-header.scrolled .nav-toggle span {
  background: var(--color-dark);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(83, 87, 91, 0.82) 0%,
    rgba(83, 87, 91, 0.55) 60%,
    rgba(133, 201, 204, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: var(--header-h);
  color: var(--color-white);
}

.hero-tag {
  display: inline-block;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.hero-content p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #e05a4d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 110, 96, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--color-white);
}

.btn-outline:hover {
  border-color: var(--color-teal);
  background: rgba(133, 201, 204, 0.15);
  transform: translateY(-2px);
}

/* ── Hero scroll indicator ─────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 24px 32px;
  font-size: 0.85rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-logos img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ── 404 ───────────────────────────────────────────────── */
.error-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.error-404 h1 { font-size: 6rem; color: var(--color-teal); }
.error-404 p  { margin: 16px 0 32px; color: var(--color-dark); }
.error-404 a  { color: var(--color-coral); font-weight: 600; }

/* ── ¿Qué es el PLADECO? ───────────────────────────────── */
.que-es-section {
  background: var(--color-light);
  padding: 64px 40px;
  width: 100%;
  box-sizing: border-box;
}

.que-es-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 40px rgba(83, 87, 91, 0.10);
  min-height: 560px;
}

.que-es-text {
  display: flex;
  align-items: center;
  padding: 64px 56px;
  background: var(--color-white);
}

.que-es-inner {
  max-width: 520px;
}

.que-es-image {
  position: relative;
  overflow: hidden;
}

.que-es-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.que-es-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(133, 201, 204, 0.12);
  border: 1px solid rgba(133, 201, 204, 0.35);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.que-es-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 32px;
  line-height: 1.2;
}

.que-es-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-dark);
  margin-bottom: 16px;
  text-align: left;
}

.que-es-body strong {
  color: var(--color-teal);
  font-weight: 600;
}

.que-es-cierre {
  margin-top: 28px !important;
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--color-coral) !important;
  border-left: 3px solid var(--color-coral);
  padding-left: 16px;
}

/* ── Nosotros ──────────────────────────────────────────── */
.nosotros-section {
  background: var(--color-light);
  padding: 64px 40px;
  width: 100%;
  box-sizing: border-box;
}

.nosotros-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 40px rgba(83, 87, 91, 0.10);
  min-height: 400px;
}

.nosotros-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  background: var(--color-white);
}

.nosotros-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.nosotros-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(83, 87, 91, 0.80);
}

.nosotros-image {
  position: relative;
  overflow: hidden;
}

.nosotros-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Header siempre con liquid glass en mobile */
  .site-header {
    background: rgba(53, 57, 61, 0.82) !important;
    backdrop-filter: blur(20px) saturate(160%) brightness(0.95) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: none !important;
  }

  .site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.7) 40%,
      rgba(133,201,204,0.5) 60%,
      transparent
    );
  }

  /* Logo siempre blanco en mobile */
  .logo img,
  .site-header.scrolled .logo img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,0.6)) !important;
    height: 38px;
  }

  /* Hamburger visible */
  .nav-toggle {
    display: flex;
    z-index: 200;
  }

  .nav-toggle span {
    background: var(--color-white) !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Animación X al abrir */
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Overlay oscuro detrás del drawer */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
  }

  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
  }

  /* Drawer lateral — liquid glass oscuro */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    width: 78%;
    max-width: 320px;
    z-index: 150;
    background: linear-gradient(
      160deg,
      rgba(20, 28, 35, 0.62) 0%,
      rgba(15, 25, 32, 0.66) 55%,
      rgba(10, 40, 45, 0.58) 100%
    );
    backdrop-filter: blur(64px) saturate(180%) brightness(0.75);
    -webkit-backdrop-filter: blur(64px) saturate(180%) brightness(0.75);
    border-left: 1.5px solid rgba(133, 201, 204, 0.40);
    border-radius: 24px 0 0 24px;
    padding: 0 16px 32px;
    box-shadow:
      -8px 0 48px rgba(0, 0, 0, 0.50),
      0 0 0 0.5px rgba(255, 255, 255, 0.10) inset;
    transform: translateX(105%);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(.4, 0, .2, 1),
                opacity 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Shimmer lateral izquierdo — borde teal luminoso */
  .main-nav::before {
    content: '';
    position: absolute;
    top: 5%; bottom: 5%; left: 0;
    width: 1.5px;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(133, 201, 204, 0.9) 25%,
      rgba(255, 255, 255, 0.7) 50%,
      rgba(133, 201, 204, 0.9) 75%,
      transparent
    );
    pointer-events: none;
  }

  /* Reflejo superior del panel */
  .main-nav::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 30%;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(133, 201, 204, 0.04) 60%,
      rgba(255, 255, 255, 0.00) 100%
    );
    border-radius: 24px 0 0 0;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
  }

  /* Lista de nav */
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: calc(var(--header-h) + 16px);
  }

  .main-nav a {
    color: rgba(255, 255, 255, 0.90) !important;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    transition: background 0.2s, color 0.2s;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
  }

  .main-nav a:hover,
  .main-nav a:active {
    background: rgba(133, 201, 204, 0.18);
    color: var(--color-white) !important;
  }

  /* Separador antes de Contacto */
  .main-nav li:last-child {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(133, 201, 204, 0.25);
  }

  /* Botón Contacto */
  .main-nav .nav-cta {
    background: var(--color-coral) !important;
    color: var(--color-white) !important;
    text-align: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    border: none !important;
    box-shadow: 0 4px 20px rgba(244, 110, 96, 0.50);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
  }

  .main-nav .nav-cta:hover {
    background: #e05a4d !important;
  }

  .hero-content { padding: 0 20px; padding-top: var(--header-h); }

  .que-es-section {
    padding: 32px 16px;
  }

  .que-es-card {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .que-es-image {
    height: 260px;
    position: relative;
    order: -1;
  }

  .que-es-image img {
    position: absolute;
  }

  .que-es-text {
    padding: 40px 24px;
  }

  .nosotros-section {
    padding: 32px 16px;
  }

  .nosotros-card {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .nosotros-image {
    height: 260px;
    position: relative;
    order: -1;
  }

  .nosotros-image img {
    position: absolute;
  }

  .nosotros-text {
    padding: 40px 24px;
  }
}

/* ── Timeline ──────────────────────────────────────────── */
.timeline-section {
  padding: 100px 32px;
  background: var(--color-light);
  overflow: hidden;
}

.timeline-header {
  text-align: center;
  margin-bottom: 80px;
}

.timeline-logo {
  height: 72px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
}

.timeline-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 12px;
}

.timeline-header p {
  font-size: 1rem;
  color: rgba(83,87,91,0.65);
}

.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

/* Línea central punteada */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    var(--color-teal) 0px,
    var(--color-teal) 6px,
    transparent 6px,
    transparent 14px
  );
}

/* Item */
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  margin-bottom: 72px;
}

/* Año */
.tl-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
}

/* Dot central */
.tl-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-teal);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-teal);
  justify-self: center;
  margin-top: 2px;
  transition: transform .3s;
}

.tl-dot--active {
  background: var(--color-coral);
  box-shadow: 0 0 0 3px var(--color-coral);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px var(--color-coral); }
  50%      { box-shadow: 0 0 0 8px rgba(244,110,96,.2); }
}

/* Banner */
.tl-banner {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 24px 0 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 4px 4px 12px rgba(0,0,0,.15);
}

.tl-banner--coral { background: var(--color-coral); }
.tl-banner--teal  { background: var(--color-teal); }
.tl-banner--dark  { background: var(--color-dark); }

/* Etapa label */
.tl-etapa {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 48px auto 40px;
  padding: 8px 28px;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 16px rgba(83,87,91,0.25);
}
.tl-etapa--teal {
  background: var(--color-teal);
  color: var(--color-dark);
}

/* Card */
.tl-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 12px;
  transition: transform .3s, box-shadow .3s;
}

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

.tl-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--color-teal);
}

.tl-icon svg { width: 100%; height: 100%; }

.tl-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tl-text p {
  font-size: 0.85rem;
  color: rgba(83,87,91,.7);
  line-height: 1.65;
}

/* Lado izquierdo */
.tl-left .tl-year    { grid-column: 1; text-align: right; padding-right: 28px; }
.tl-left .tl-dot     { grid-column: 2; grid-row: 1; }
.tl-left .tl-banner  { grid-column: 1; grid-row: 2; justify-self: end;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  padding: 0 20px 0 24px;
}
.tl-left .tl-card    { grid-column: 1; grid-row: 3; margin-right: 28px; }

/* Lado derecho */
.tl-right .tl-year   { grid-column: 3; text-align: left; padding-left: 28px; }
.tl-right .tl-dot    { grid-column: 2; grid-row: 1; }
.tl-right .tl-banner { grid-column: 3; grid-row: 2; justify-self: start;
  padding: 0 24px 0 20px;
}
.tl-right .tl-card   { grid-column: 3; grid-row: 3; margin-left: 28px; }

/* ── Timeline responsive ───────────────────────────────── */
@media (max-width: 680px) {
  .timeline-line { left: 20px; }

  .tl-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto;
  }

  .tl-left .tl-year,
  .tl-right .tl-year {
    grid-column: 2; grid-row: 1;
    text-align: left; padding: 0 0 0 16px;
  }

  .tl-left .tl-dot,
  .tl-right .tl-dot { grid-column: 1; grid-row: 1; }

  .tl-left .tl-banner,
  .tl-right .tl-banner {
    grid-column: 2; grid-row: 2;
    justify-self: start;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    padding: 0 24px 0 16px;
    margin-left: 16px;
  }

  .tl-left .tl-card,
  .tl-right .tl-card {
    grid-column: 2; grid-row: 3;
    margin: 12px 0 0 16px;
  }
}

/* ── Hero content entrance animations ──────────────────── */
.hero-tag,
.hero-content h1,
.hero-content p {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-tag.tl-visible,
.hero-content h1.tl-visible,
.hero-content p.tl-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Timeline scroll animations ────────────────────────── */
.tl-item,
.timeline-logo,
.timeline-header h2 {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tl-left             { transform: translateX(-70px); }
.tl-right            { transform: translateX(70px); }
.timeline-logo       { transform: translateY(-50px); }
.timeline-header h2  { transform: translateY(40px); }
.tl-item.tl-visible,
.timeline-logo.tl-visible,
.timeline-header h2.tl-visible {
  opacity: 1;
  transform: translate(0);
}
@media (max-width: 680px) {
  .tl-left,
  .tl-right { transform: translateX(-40px); }
}

/* ── Modal Video ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(30, 32, 34, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.modal-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--color-coral);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* ── Survey page ────────────────────────────────────────── */
.survey-page {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 80px;
  background: var(--color-light);
  min-height: 100vh;
}

.survey-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
}
.survey-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 20px;
}
.survey-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}
.survey-header p {
  color: var(--color-dark-80);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.survey-form {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.survey-section {
  background: var(--color-white);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(83,87,91,0.07);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.section-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-coral);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.section-title h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
}
.section-desc {
  font-size: 0.9rem;
  color: var(--color-dark-80);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.span-2 { grid-column: span 2; }

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
}
.form-label .optional {
  font-weight: 400;
  color: rgba(83,87,91,0.5);
  font-size: 0.8rem;
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(83,87,91,0.18);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(133,201,204,0.18);
}
.form-textarea { min-height: 96px; resize: vertical; }

/* Rating */
.rating-row { margin-bottom: 22px; }
.rating-row.has-error .rating-group { outline: 1.5px solid var(--color-coral); border-radius: var(--radius); padding: 6px; }
.rating-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 10px;
}
.rating-hint {
  font-size: 0.77rem;
  color: rgba(83,87,91,0.55);
  font-weight: 400;
}
.rating-group { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-opt { cursor: pointer; }
.rating-opt input[type="radio"] { display: none; }
.rating-opt span {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 20px;
  border: 1.5px solid rgba(83,87,91,0.18);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-dark);
  background: var(--color-white);
  transition: all 0.18s ease;
  user-select: none;
  white-space: nowrap;
}
.rating-opt:hover span {
  border-color: var(--color-teal);
  background: rgba(133,201,204,0.09);
}
.rating-opt input:checked + span {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
  font-weight: 600;
}

/* Inseguridad mujeres */
.inseg-row {
  background: rgba(133,201,204,0.06);
  border: 1px solid rgba(133,201,204,0.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
}
.inseg-question .rating-label::before {
  content: '* Solo para mujeres — ';
  color: var(--color-coral);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Participación */
.participacion-opts { display: flex; flex-direction: column; gap: 10px; }
.radio-card { cursor: pointer; }
.radio-card input[type="radio"] { display: none; }
.radio-card span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1.5px solid rgba(83,87,91,0.18);
  border-radius: var(--radius);
  font-size: 0.93rem;
  background: var(--color-white);
  transition: all 0.18s ease;
}
.radio-card span::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(83,87,91,0.3);
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.radio-card input:checked + span {
  border-color: var(--color-coral);
  background: rgba(244,110,96,0.05);
}
.radio-card input:checked + span::before {
  border-color: var(--color-coral);
  background: var(--color-coral);
  box-shadow: inset 0 0 0 3px var(--color-white);
}

/* Contacto */
#contacto-block {
  margin-top: 20px;
  padding: 20px;
  background: rgba(133,201,204,0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(133,201,204,0.28);
}
.contacto-intro {
  font-size: 0.88rem;
  color: var(--color-dark-80);
  font-weight: 500;
}

/* Submit */
.survey-submit { text-align: center; margin-top: 8px; }
.btn-survey-submit {
  background: var(--color-coral);
  color: var(--color-white);
  border: none;
  padding: 16px 52px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-base);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-survey-submit:hover {
  background: #e5574a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,110,96,0.32);
}

/* Mensajes */
.err-msg {
  font-size: 0.8rem;
  color: var(--color-coral);
  font-weight: 500;
}
.has-error .form-input,
.has-error .form-textarea,
.has-error .form-select { border-color: var(--color-coral); }

.alert-error {
  background: rgba(244,110,96,0.09);
  border: 1px solid rgba(244,110,96,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--color-coral);
  font-weight: 500;
  margin-bottom: 24px;
}

/* Éxito */
.survey-success {
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 580px;
  margin: 0 auto;
}
.success-icon {
  width: 72px; height: 72px;
  background: var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.survey-success h2 {
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.survey-success p {
  color: var(--color-dark-80);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: auto; }
  .survey-section { padding: 24px 18px; }
  .rating-opt span { padding: 6px 11px; font-size: 0.78rem; }
}
