/* ============================================================
   IESME — Hoja de estilos
   ============================================================ */

/* ============================================================
   VARIABLES
============================================================ */
:root {
  --navy:       #0a1628;
  --navy-mid:   #0f2040;
  --burgundy:   #8b1a2e;
  --dorado:     #c9a84c;
  --dorado-lt:  #dfc070;
  --crema:      #f5f0e8;
  --crema-dk:   #ede5d6;
  --texto:      #2c2c2c;
  --error:      #a32638;

  --f-title: 'Cormorant Garamond', Georgia, serif;
  --f-body:  'DM Sans', system-ui, sans-serif;

  --mw:  1180px;
  --sp:  clamp(72px, 10vw, 112px) 24px;
  --r:   12px;
  --sh:  0 24px 64px rgba(0,0,0,.16);
  --tr:  .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Las anclas no quedan ocultas bajo el nav fijo */
section { scroll-margin-top: 84px; }

body {
  font-family: var(--f-body);
  background: var(--crema);
  color: var(--texto);
  overflow-x: hidden;
  line-height: 1.7;
}
body.menu-open { overflow: hidden; }

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--dorado);
  color: var(--navy);
  font-weight: 600;
  font-size: .88rem;
  border-radius: 0 0 6px 6px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Botones ─────────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  padding: 15px 38px;
  background: var(--dorado);
  color: var(--navy);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: var(--tr);
}
.btn-gold:hover {
  background: transparent;
  border-color: var(--dorado);
  color: var(--dorado);
}
.btn-outline {
  display: inline-block;
  padding: 13px 34px;
  background: transparent;
  color: var(--dorado);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 2px solid rgba(201,168,76,.5);
  transition: var(--tr);
}
.btn-outline:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--navy);
}

/* ── Etiqueta de sección ─────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 18px;
}
.tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--dorado);
  flex-shrink: 0;
}

/* ── Iconos SVG ──────────────────────────────────────────── */
.ico {
  width: 24px; height: 24px;
  stroke: var(--dorado);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.r-up    { opacity: 0; transform: translateY(44px); transition: opacity .75s ease, transform .75s ease; }
.r-left  { opacity: 0; transform: translateX(-44px); transition: opacity .75s ease, transform .75s ease; }
.r-right { opacity: 0; transform: translateX(44px);  transition: opacity .75s ease, transform .75s ease; }
.r-up.on, .r-left.on, .r-right.on { opacity: 1; transform: none; }

/* ============================================================
   1. NAV
============================================================ */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 22px 0;
  transition: background .35s, padding .35s, box-shadow .35s;
}
#nav.scrolled {
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,.28);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-name  { font-family: var(--f-title); font-size: 1.35rem; font-weight: 600; color: var(--crema); letter-spacing: .02em; }
.nav-sub   { font-size: .68rem; font-weight: 400; color: var(--dorado); letter-spacing: .1em; text-transform: uppercase; margin-top: 1px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-menu a {
  color: rgba(245,240,232,.85);
  font-size: .86rem;
  letter-spacing: .03em;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--dorado); }
.nav-menu a:not(.nav-cta) { position: relative; }
.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--dorado);
  transition: right .3s ease;
}
.nav-menu a:not(.nav-cta).active { color: var(--dorado); }
.nav-menu a:not(.nav-cta).active::after { right: 0; }
.nav-menu .nav-cta {
  padding: 10px 22px;
  background: var(--dorado);
  color: var(--navy) !important;
  font-weight: 600 !important;
  border-radius: 3px;
  font-size: .82rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-menu .nav-cta:hover { background: var(--dorado-lt); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 910;
}
.nav-burger span {
  display: block;
  width: 23px; height: 2px;
  background: var(--crema);
  border-radius: 2px;
  transition: var(--tr);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   2. HERO
============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* velo lateral derecho */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 78% 50%, rgba(139,26,46,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 78% 50%, rgba(201,168,76,.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ── Grid hero ── */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 40px;
  width: 100%;
}

/* ── Columna texto ── */
.hero-kicker {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--dorado);
  flex-shrink: 0;
}
.hero-h1 {
  font-family: var(--f-title);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  color: var(--crema);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.hero-h1 em { font-style: italic; color: var(--dorado); }
.hero-h1-rule {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--burgundy), var(--dorado));
  margin: 22px 0 26px;
}
.hero-sub {
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  font-weight: 300;
  color: rgba(245,240,232,.78);
  line-height: 1.68;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}
.hero-stat {
  padding: 18px 14px;
  background: rgba(255,255,255,.03);
  text-align: center;
  backdrop-filter: blur(4px);
}
.hero-stat strong {
  display: block;
  font-family: var(--f-title);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--dorado);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(245,240,232,.78);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Columna logo ── */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-logo-scene {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* glow central */
.hero-logo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.14) 0%, transparent 70%);
  animation: glow-pulse 3.5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { transform: scale(1);   opacity: .7; }
  50%      { transform: scale(1.1); opacity: 1;  }
}
/* anillo exterior — rota lento */
.hero-ring-outer {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.18);
  animation: ring-rot 18s linear infinite;
}
.hero-ring-outer::before,
.hero-ring-outer::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dorado);
  top: 50%; left: -4px;
  transform: translateY(-50%);
}
.hero-ring-outer::after {
  left: auto; right: -4px;
  background: var(--burgundy);
  width: 6px; height: 6px;
}
@keyframes ring-rot {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* anillo medio */
.hero-ring-mid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,.28);
}
/* imagen del logo */
.hero-logo-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: var(--navy);
  padding: 12px;
  border: 3px solid rgba(201,168,76,.45);
  box-shadow:
    0 0 0 8px rgba(10,22,40,.6),
    0 0 0 10px rgba(201,168,76,.12),
    0 32px 80px rgba(0,0,0,.5);
  animation: logo-float 4s ease-in-out infinite;
  position: relative;
  z-index: 3;
}
@keyframes logo-float {
  0%,100% { transform: translateY(0px);  }
  50%      { transform: translateY(-10px); }
}
/* nombre debajo */
.hero-logo-name {
  margin-top: 32px;
  text-align: center;
}
.hero-logo-name strong {
  display: block;
  font-family: var(--f-title);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dorado);
  letter-spacing: .12em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-logo-name small {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245,240,232,.65);
  display: block;
  max-width: 280px;
  line-height: 1.5;
}

/* scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245,240,232,.55);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, rgba(201,168,76,.5), transparent);
  animation: sline 2s ease-in-out infinite;
}
@keyframes sline {
  0%,100% { opacity: .35; }
  50%      { opacity: 1;   }
}

/* ── Badge RVOE en hero ──────────────────────────────────── */
.hero-rvoe {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: .8rem;
  color: rgba(245,240,232,.78);
}
.hero-rvoe .ico { width: 18px; height: 18px; }
.hero-rvoe a { transition: color .2s; }
.hero-rvoe a:hover { color: var(--dorado); }

/* ── Microcopy de confianza bajo CTAs ────────────────────── */
.cta-trust {
  margin-top: 12px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: #767676;
}
.sol-card .cta-trust { color: rgba(245,240,232,.68); }
.cta-trust.light  { color: rgba(245,240,232,.8); }
.cta-trust.center { text-align: center; }

/* ============================================================
   3. DOLOR / SOLUCIÓN
============================================================ */
#dolor {
  padding: var(--sp);
  background: var(--crema);
}
.dolor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.dolor-h2 {
  font-family: var(--f-title);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.14;
  margin-bottom: 22px;
}
.dolor-p { font-size: 1rem; color: #505050; line-height: 1.72; margin-bottom: 32px; }
.dolor-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dolor-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: .92rem;
  color: #585858;
  line-height: 1.5;
}
.x-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: .58rem;
  color: #fff;
  font-weight: 600;
}
.x-dot.chk-gold {
  background: var(--dorado);
  color: var(--navy);
}

/* tarjeta solución */
.sol-card {
  background: var(--navy);
  border-radius: var(--r);
  padding: 48px 40px;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
}
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--dorado));
}
.sol-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 26px;
}
.sol-card h3 {
  font-family: var(--f-title);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--crema);
  line-height: 1.18;
  margin-bottom: 16px;
}
.sol-card p { font-size: .92rem; color: rgba(245,240,232,.8); line-height: 1.7; margin-bottom: 28px; }
.sol-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 36px; }
.sol-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .88rem;
  color: rgba(245,240,232,.88);
  line-height: 1.5;
}
.chk {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: .55rem;
  color: var(--navy);
  font-weight: 600;
}

/* ============================================================
   3b. RVOE — reconocimiento oficial + QR SEP
============================================================ */
#rvoe {
  padding: var(--sp);
  background: var(--crema-dk);
}
.rvoe-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
  background: var(--navy);
  border-radius: var(--r);
  padding: 56px 52px;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
}
.rvoe-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--dorado));
}
.rvoe-h2 {
  font-family: var(--f-title);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--crema);
  line-height: 1.14;
  margin-bottom: 18px;
}
.rvoe-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(201,168,76,.5);
  border-radius: 4px;
  background: rgba(201,168,76,.1);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 20px;
}
.rvoe-p {
  font-size: .94rem;
  color: rgba(245,240,232,.82);
  line-height: 1.7;
  margin-bottom: 24px;
}
.rvoe-datos { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.rvoe-datos li {
  font-size: .87rem;
  color: rgba(245,240,232,.78);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.rvoe-datos li::before {
  content: '◆';
  position: absolute;
  left: 0; top: 6px;
  color: var(--dorado);
  font-size: .45rem;
}
.rvoe-datos strong { color: var(--crema); font-weight: 600; }

/* tarjeta blanca del QR: el código es negro sobre blanco y necesita contraste */
.rvoe-qr {
  background: #fff;
  border-radius: var(--r);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 44px rgba(0,0,0,.3);
}
.rvoe-qr a {
  display: inline-block;
  transition: transform .22s;
}
.rvoe-qr a:hover { transform: scale(1.03); }
.rvoe-qr img {
  width: 200px;
  height: 200px;
  margin: 0 auto 14px;
}
.rvoe-qr p {
  font-size: .8rem;
  color: #555;
  line-height: 1.55;
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================================
   4. PROPÓSITO
============================================================ */
#proposito {
  padding: var(--sp);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#proposito::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,26,46,.18), transparent 70%);
  pointer-events: none;
}
.prop-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 88px;
  align-items: start;
}
.prop-left .tag { color: var(--dorado); }
.prop-h2 {
  font-family: var(--f-title);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  color: var(--crema);
  line-height: 1.1;
  margin-bottom: 28px;
}
.prop-divider { width: 44px; height: 2px; background: var(--dorado); margin-bottom: 36px; }
.prop-quote {
  font-family: var(--f-title);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--crema);
  line-height: 1.68;
  position: relative;
  padding-left: 34px;
}
.prop-quote::before {
  content: '\201C';
  position: absolute;
  left: 0; top: -14px;
  font-size: 5rem;
  font-family: var(--f-title);
  color: var(--dorado);
  line-height: 1;
  opacity: .55;
}

/* ============================================================
   5. PERFIL DE EGRESO
============================================================ */
#perfil {
  padding: var(--sp);
  background: var(--crema);
}
.sec-head {
  text-align: center;
  margin-bottom: 60px;
}
.sec-head .tag { justify-content: center; }
.sec-head .tag::before { display: none; }
.sec-h2 {
  font-family: var(--f-title);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 14px;
}
.sec-h2.light { color: var(--crema); }
.sec-lead { font-size: .97rem; color: #666; max-width: 520px; margin: 0 auto; }

.perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.perf-card {
  background: #fff;
  border-radius: var(--r);
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  border: 1px solid rgba(201,168,76,.4);
  border-top: 3px solid var(--dorado);
  transition: box-shadow var(--tr), transform var(--tr);
}
.perf-card:hover {
  box-shadow: 0 20px 64px rgba(0,0,0,.14);
  transform: translateY(-4px);
}
.perf-icon {
  margin-bottom: 20px;
}
.perf-icon .ico { width: 34px; height: 34px; }
.perf-card h3 {
  font-family: var(--f-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}
.perf-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.perf-card ul li {
  display: flex;
  gap: 9px;
  font-size: .875rem;
  color: #555;
  line-height: 1.52;
}
.perf-card ul li::before {
  content: '◆';
  color: var(--dorado);
  font-size: .45rem;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ============================================================
   6. MAPA CURRICULAR
============================================================ */
#mapa {
  padding: var(--sp);
  background: var(--navy);
}
#mapa .sec-head .tag { color: var(--dorado); }
#mapa .sec-lead { color: rgba(245,240,232,.75); }

.cuatris {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cuatri {
  border: 1px solid rgba(201,168,76,.18);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(255,255,255,.03);
  transition: border-color var(--tr), background var(--tr);
}
.cuatri:hover {
  border-color: rgba(201,168,76,.38);
  background: rgba(255,255,255,.06);
}
.cuatri-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 26px;
  background: rgba(201,168,76,.09);
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.cuatri-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  flex-shrink: 0;
}
.cuatri-titulo {
  font-family: var(--f-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dorado);
  letter-spacing: .02em;
}
.materias { padding: 10px 26px 18px; }
.mat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.mat:last-child { border-bottom: none; }
.mat-code {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--dorado);
  background: rgba(201,168,76,.11);
  padding: 3px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}
.mat-info h4 {
  font-weight: 500;
  font-size: .875rem;
  color: var(--crema);
  line-height: 1.38;
  margin-bottom: 5px;
}
.mat-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mat-tag {
  font-size: .7rem;
  color: rgba(245,240,232,.72);
  background: rgba(255,255,255,.05);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .03em;
}

/* ============================================================
   URGENCIA (banner)
============================================================ */
#urgencia {
  padding: 52px 24px;
  background: var(--burgundy);
  text-align: center;
}
.urg-inner { max-width: 600px; margin: 0 auto; }
.urg-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--f-title);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--crema);
  margin-bottom: 12px;
}
.urg-title .ico { stroke: var(--crema); width: 28px; height: 28px; }
.urg-sub { font-size: .94rem; color: rgba(245,240,232,.85); margin-bottom: 28px; line-height: 1.6; }

/* ============================================================
   7. TESTIMONIOS
============================================================ */
#testimonios {
  padding: var(--sp);
  background: var(--crema-dk);
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.test-card {
  background: #fff;
  border-radius: var(--r);
  padding: 36px 30px;
  box-shadow: 0 8px 40px rgba(0,0,0,.07);
  position: relative;
  transition: box-shadow var(--tr), transform var(--tr);
}
.test-card:hover {
  box-shadow: 0 22px 64px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.test-card::before {
  content: '\201C';
  position: absolute;
  top: 18px; right: 24px;
  font-family: var(--f-title);
  font-size: 5rem;
  line-height: 1;
  color: var(--dorado);
  opacity: .18;
}
.test-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--burgundy));
  border: 2px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dorado);
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(201,168,76,.2);
}
.test-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.test-stars span { color: var(--dorado); font-size: .88rem; }
.test-texto {
  font-family: var(--f-title);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 22px;
}
.test-autor h4 { font-weight: 600; font-size: .88rem; color: var(--navy); }
.test-autor p  { font-size: .8rem; color: #6f6f6f; }

/* ============================================================
   8. FAQ
============================================================ */
#faq {
  padding: var(--sp);
  background: var(--navy);
}
.faq-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 88px;
  align-items: start;
}
.faq-left .tag   { color: var(--dorado); }
.faq-left-h2 {
  font-family: var(--f-title);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--crema);
  line-height: 1.12;
  margin-bottom: 16px;
}
.faq-left-p { font-size: .93rem; color: rgba(245,240,232,.78); line-height: 1.7; margin-bottom: 36px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.075); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 500;
  font-size: .94rem;
  color: var(--crema);
  text-align: left;
  transition: color .2s;
}
.faq-q:hover, .faq-q.open { color: var(--dorado); }
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.3);
  background: rgba(201,168,76,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
  color: var(--dorado);
  transition: var(--tr);
}
.faq-q.open .faq-toggle {
  background: var(--dorado);
  color: var(--navy);
  transform: rotate(45deg);
}
/* patrón grid-rows: anima a cualquier altura sin recortar respuestas largas */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease-in-out;
}
.faq-a.open { grid-template-rows: 1fr; }
.faq-a-inner {
  min-height: 0;
  overflow: hidden;
  padding-left: 16px;
  font-size: .9rem;
  color: rgba(245,240,232,.8);
  line-height: 1.72;
  border-left: 3px solid var(--dorado);
}
.faq-a.open .faq-a-inner { padding-bottom: 20px; }

/* ============================================================
   9. FORMULARIO
============================================================ */
#formulario {
  padding: var(--sp);
  background: var(--crema);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.form-left-h2 {
  font-family: var(--f-title);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 16px;
}
.form-left-p { font-size: .97rem; color: #585858; line-height: 1.72; margin-bottom: 28px; }
.form-urgency {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(139,26,46,.07);
  border: 1px solid rgba(139,26,46,.18);
  border-radius: 8px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--burgundy);
  flex-shrink: 0;
  animation: pdot 2.1s ease-in-out infinite;
}
@keyframes pdot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.35); }
}
.form-urgency p { font-size: .84rem; color: var(--burgundy); font-weight: 500; }

.form-card {
  background: #fff;
  border-radius: var(--r);
  padding: 48px 40px;
  box-shadow: var(--sh);
}
/* honeypot: fuera de pantalla, invisible para humanos pero accesible a bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.fg { margin-bottom: 20px; }
.fg label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.fg input, .fg select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #ddd;
  border-radius: 5px;
  font-family: var(--f-body);
  font-size: .93rem;
  color: var(--texto);
  background: #fafafa;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.fg input:focus, .fg select:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(201,168,76,.13);
  background: #fff;
}
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath fill='%230a1628' d='M5 7L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
/* errores inline */
.fg .err {
  display: none;
  font-size: .78rem;
  color: var(--error);
  margin-top: 6px;
}
.fg.invalid .err { display: block; }
.fg.invalid input, .fg.invalid select { border-color: var(--error); }

.form-btn {
  width: 100%;
  padding: 16px;
  background: var(--dorado);
  color: var(--navy);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--tr);
  margin-top: 6px;
}
.form-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--dorado);
}
.form-btn:disabled { cursor: default; }
.form-status {
  font-size: .85rem;
  color: #2a7a42;
  margin-top: 12px;
  text-align: center;
}
.form-note {
  text-align: center;
  font-size: .78rem;
  color: #767676;
  margin-top: 12px;
}

/* ============================================================
   10. CONTACTO
============================================================ */
#contacto {
  padding: var(--sp);
  background: var(--navy);
}
.ctc-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.ctc-left .tag { color: var(--dorado); }
.ctc-h2 {
  font-family: var(--f-title);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 600;
  color: var(--crema);
  line-height: 1.1;
  margin-bottom: 36px;
}
.ctc-items { display: flex; flex-direction: column; gap: 22px; }
.ctc-item { display: flex; gap: 15px; align-items: flex-start; }
.ctc-ico {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ctc-txt h4 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 4px;
}
.ctc-txt p, .ctc-txt a {
  font-size: .9rem;
  color: rgba(245,240,232,.82);
  line-height: 1.55;
}
.plats { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.plat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  font-size: .8rem;
  color: rgba(245,240,232,.82);
}
.plat-chip .ico { width: 16px; height: 16px; }
.map-wrap {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
}

/* ============================================================
   11. FOOTER
============================================================ */
#footer {
  padding: 36px 24px;
  background: #060e1a;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,.12);
}
.foot-logo {
  font-family: var(--f-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--crema);
  margin-bottom: 8px;
}
.foot-rvoe { font-size: .8rem; color: rgba(245,240,232,.62); margin-bottom: 6px; }
.foot-copy { font-size: .8rem; color: rgba(245,240,232,.62); }
.foot-dev  { font-size: .78rem; color: rgba(245,240,232,.55); margin-top: 7px; }
.foot-dev a { color: var(--dorado); font-weight: 500; }
.foot-link { color: var(--dorado); }
.foot-link:hover { text-decoration: underline; }
.form-note a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ============================================================
   PÁGINA LEGAL (aviso de privacidad)
============================================================ */
.legal-top {
  background: var(--navy);
  padding: 18px 0;
}
.legal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.legal-top .btn-outline { padding: 10px 22px; font-size: .78rem; }
.legal {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 88px;
}
.legal h1 {
  font-family: var(--f-title);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 10px;
}
.legal-updated {
  font-size: .82rem;
  color: #8a8a8a;
  margin-bottom: 40px;
}
.legal section { margin-bottom: 36px; }
.legal h2 {
  font-family: var(--f-title);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.legal p  { font-size: .93rem; color: #4a4a4a; line-height: 1.75; margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 20px; }
.legal ul li { font-size: .93rem; color: #4a4a4a; line-height: 1.7; margin-bottom: 6px; }
.legal a { color: var(--burgundy); font-weight: 500; text-decoration: underline; }
.legal a:hover { color: var(--navy); }

/* ============================================================
   WHATSAPP FLOTANTE
============================================================ */
#wa-btn {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 990;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.38);
  transition: transform .22s, box-shadow .22s;
}
#wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(37,211,102,.5);
}
#wa-btn svg { width: 27px; height: 27px; fill: #fff; }
.wa-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(37,211,102,.28);
  animation: wap 2.2s ease-out infinite;
}
@keyframes wap {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  /* nav mobile */
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(10,22,40,.97);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    z-index: 905;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 1.35rem; font-family: var(--f-title); font-weight: 500; }
  .nav-burger { display: flex; }

  /* hero: la propuesta de valor primero; el logo después, más compacto */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 72px;
  }
  .hero-logo-scene { width: 200px; height: 200px; }
  .hero-logo-img   { width: 164px; height: 164px; padding: 8px; }
  .hero-logo-name strong { font-size: 1.9rem; }

  .dolor-grid    { grid-template-columns: 1fr; gap: 48px; }
  .rvoe-card     { grid-template-columns: 1fr; gap: 40px; padding: 44px 32px; }
  .rvoe-qr       { justify-self: center; }
  .prop-grid     { grid-template-columns: 1fr; gap: 40px; }
  .perf-grid     { grid-template-columns: 1fr; }
  .cuatris       { grid-template-columns: 1fr; }
  .faq-grid      { grid-template-columns: 1fr; gap: 44px; }
  .form-grid     { grid-template-columns: 1fr; gap: 48px; }
  .ctc-grid      { grid-template-columns: 1fr; gap: 44px; }
  .test-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --sp: 64px 18px; }
  .hero-h1   { font-size: 2.4rem; }
  .hero-h1-rule { margin: 18px 0 22px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 32px 22px; }
  .sol-card  { padding: 36px 26px; }
  .perf-card { padding: 32px 24px; }
  .rvoe-card { padding: 36px 24px; }
  .rvoe-qr img { width: 180px; height: 180px; }
}

/* ============================================================
   MOVIMIENTO REDUCIDO (WCAG 2.3.3)
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .r-up, .r-left, .r-right { opacity: 1; transform: none; }
  #hero-canvas { display: none; }
}
