/* ============================================================
   Want2peak — Landing styles
   ============================================================ */

:root {
  --navy: #0F1F4D;
  --navy-deep: #08123A;
  --red: #E5114B;
  --red-deep: #B30A39;
  --cream: #FAF7F2;
  --ink: #0A0E1F;
  --paper: #FFFFFF;
  --yellow: #FFD60A;
  --muted: #6B7280;
  --line: rgba(15,31,77,0.12);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 30px 60px -30px rgba(15,31,77,0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   Reusable
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--red);
  font-style: normal;
  letter-spacing: 0.005em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 30px -10px rgba(229,17,75,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(229,17,75,0.65); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--ink); color: white; border-color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: white;
}
.btn-dark:hover { background: var(--navy); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translate(3px, -3px); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 32px;
}
.nav-logo img { height: 220px; width: auto; display: block; margin: -50px 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a { position: relative; color: var(--ink); padding: 6px 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---- Programas dropdown ---- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-chevron { transition: transform .25s ease; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 304px;
  background: var(--paper, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(15,31,77,0.22), 0 4px 12px -4px rgba(15,31,77,0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav-menu::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav-dropdown.open .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) and (min-width: 901px) {
  .nav-dropdown:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
}
.nav-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: background .18s ease;
}
.nav-menu-item::after { display: none; }
.nav-menu-item:hover { background: var(--cream, #f6f4ef); }
.nm-title { display: block; font-weight: 700; font-size: 14px; color: var(--ink); }
.nm-desc { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.nm-arrow { color: var(--muted); flex: none; }
.nav-menu-pqr { margin-top: 6px; padding-top: 15px; border-top: 1px solid var(--line); border-radius: 10px; }
.nav-menu-pqr .nm-title { color: var(--red); }
body.dark .nav-menu-pqr { border-top-color: rgba(255,255,255,0.1); }

/* ---- Adults level submenu (flyout) ---- */
.nav-menu-item.has-sub { position: relative; padding: 0; }
.nav-menu-item.has-sub > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: background .18s ease;
}
.nav-menu-item.has-sub > a:hover { background: var(--cream, #f6f4ef); }
.nav-submenu {
  position: absolute;
  top: -9px;
  left: calc(100% + 10px);
  width: 250px;
  background: var(--paper, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(15,31,77,0.22), 0 4px 12px -4px rgba(15,31,77,0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-submenu::before {
  content: '';
  position: absolute;
  top: 0; left: -12px;
  width: 12px; height: 100%;
}
.nav-menu-item.has-sub.open .nav-submenu,
.nav-menu-item.has-sub:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.nav-submenu-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px 6px;
}
.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: background .18s ease;
}
.nav-submenu a::after { display: none; }
.nav-submenu a:hover { background: var(--cream, #f6f4ef); }
.nav-submenu .lvl {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px; height: 28px;
  border-radius: 7px;
  background: var(--navy, #0f1f4d);
  color: #fff;
  font-family: var(--font-display, sans-serif);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav-submenu { left: 0; right: auto; top: 100%; width: 100%; transform: translateY(-8px); margin-top: 4px; }
  .nav-menu-item.has-sub.open .nav-submenu,
  .nav-menu-item.has-sub:hover .nav-submenu { transform: translateY(0); }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
}

/* ---- Hero writing-animation background ---- */
.hero-anim-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-anim-stage {
  position: relative;
  width: min(1100px, 92%);
  aspect-ratio: 2986 / 1270;
  opacity: 0.16;
}
.hero-anim-stage .w2p-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: clip-path;
  animation: w2pWrite 16s cubic-bezier(.66,0,.34,1) infinite;
}
.hero-anim-stage .w2p-glow {
  position: absolute;
  left: 75%; top: 13%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174,21,63,.55) 0%, rgba(174,21,63,0) 70%);
  filter: blur(6px);
  animation: w2pGlow 16s ease-in-out infinite;
}
.hero-anim-stage .w2p-pen {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 0;
  animation: w2pPen 16s cubic-bezier(.66,0,.34,1) infinite;
}
.hero-anim-stage .w2p-pen-line {
  position: absolute;
  top: -6%; bottom: -6%; left: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(174,21,63,0) 0%, rgba(174,21,63,.85) 45%, rgba(33,45,86,.85) 70%, rgba(33,45,86,0) 100%);
  box-shadow: 0 0 14px 2px rgba(174,21,63,.45);
  filter: blur(.4px);
}
.hero-anim-stage .w2p-pen-tip {
  position: absolute;
  top: 46%; left: 0;
  width: 14px; height: 14px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #AE153F;
  box-shadow: 0 0 16px 4px rgba(174,21,63,.6);
}
.hero-anim-stage .w2p-chip {
  position: absolute;
  left: 64%; top: 7%;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: clamp(10px, 1.5vw, 15px);
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  animation: w2pChip 8s cubic-bezier(.4,0,.2,1) infinite both;
}
.hero-anim-stage .w2p-chip.c1 { color: #212D56; background: #fff; border: 1.6px solid #212D56; animation-delay: 0s; }
.hero-anim-stage .w2p-chip.c2 { color: #fff; background: #AE153F; border: 1.6px solid #AE153F; animation-delay: 2s; }
.hero-anim-stage .w2p-chip.c3 { color: #AE153F; background: #fff; border: 1.6px solid #AE153F; font-style: italic; animation-delay: 4s; }
.hero-anim-stage .w2p-chip.c4 { color: #212D56; background: #fff; border: 1.6px solid #212D56; animation-delay: 6s; }

@keyframes w2pWrite {
  0%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  22%  { clip-path: inset(0 0 0 0);    opacity: 1; }
  88%  { clip-path: inset(0 0 0 0);    opacity: 1; }
  95%  { clip-path: inset(0 0 0 0);    opacity: 0; }
  100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}
@keyframes w2pPen {
  0%   { left: 0%;   opacity: 0; }
  1.5% { opacity: 1; }
  22%  { left: 100%; opacity: 1; }
  26%  { left: 100%; opacity: 0; }
  100% { left: 100%; opacity: 0; }
}
@keyframes w2pChip {
  0%   { opacity: 0; transform: translate(-50%, 14px) scale(.72); }
  5%   { opacity: 1; transform: translate(-50%, 0) scale(1); }
  18%  { opacity: 1; transform: translate(-50%, -24px) scale(1); }
  25%  { opacity: 0; transform: translate(-50%, -46px) scale(.92); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(.92); }
}
@keyframes w2pGlow {
  0%,100% { opacity: .18; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: .42; transform: translate(-50%,-50%) scale(1.22); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim-stage [data-anim] { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  .hero-anim-stage .w2p-logo { clip-path: inset(0 0 0 0) !important; opacity: 1 !important; animation: none !important; }
}

.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-headline { margin-top: 0; }
.hero-headline .line { display: block; }
.hero-headline .script {
  font-size: clamp(56px, 11vw, 160px);
  line-height: 0.85;
  display: inline-block;
  transform: rotate(-3deg);
  margin-left: -4px;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  max-width: 520px;
  color: #2A3140;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 2px; letter-spacing: -0.02em; }

/* Photo collage */
.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,31,77,0.4));
  pointer-events: none;
}

.bubble {
  position: absolute;
  background: white;
  border-radius: 22px 22px 6px 22px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 10px;
}
.bubble .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.bubble.bubble-top {
  top: 24px; left: -18px;
  color: var(--navy);
  animation: float 4.5s ease-in-out infinite;
}
.bubble.bubble-bot {
  bottom: 28px; right: -22px;
  background: var(--red);
  color: white;
  border-radius: 22px 22px 22px 6px;
  animation: float 5s ease-in-out infinite -2s;
}
.bubble.bubble-bot .dot { background: white; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Decorative red swoop */
.swoop {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}

/* Marquee */
.marquee {
  margin-top: 80px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--ink);
  color: white;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding: 20px 0;
  animation: scroll 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee-track .star { color: var(--red); font-size: 1.3em; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Section base
   ============================================================ */
section { padding: 120px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head p { color: var(--muted); max-width: 380px; font-size: 16px; line-height: 1.55; margin: 0; }
#niveles .section-head p { font-size: 19px; max-width: 440px; }
@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  background: var(--navy);
  color: white;
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .n .accent { color: var(--red); }
.stat .lbl { margin-top: 8px; opacity: 0.7; font-size: 14px; letter-spacing: 0.02em; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ============================================================
   Levels (A1-B2)
   ============================================================ */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.level {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s ease, background .3s ease, color .3s ease;
  overflow: hidden;
}
.level:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-6px);
}
.level:hover .level-desc { color: rgba(255,255,255,0.7); }
.level:hover .level-no { color: var(--red); }
.level-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--navy);
  transition: color .3s ease;
}
.level-no .x { color: var(--red); }
.level-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 12px 0 6px; }
.level-desc { font-size: 14px; line-height: 1.5; color: var(--muted); transition: color .3s ease; }
.level-meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
@media (max-width: 900px) { .levels-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .levels-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Programas
   ============================================================ */
.programs {
  background: var(--cream);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
}
.program:hover { transform: translateY(-8px); }
.program-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}
.program-img img { width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.program:hover .program-img img { transform: scale(1.06); }
.program-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--paper);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.program-body { padding: 28px 28px 32px; }
.program h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.program p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.program ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink); }
.program ul li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.program ul li::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
@media (max-width: 900px) { .programs-grid { grid-template-columns: 1fr; } }

/* ---- Certification card ---- */
.cert-card {
  margin-top: 28px;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
}
.cert-card::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,72,0.18), transparent 70%);
  pointer-events: none;
}
.cert-seal {
  flex-shrink: 0;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(225,29,72,0.12);
  border: 1.5px solid rgba(225,29,72,0.4);
  color: var(--red);
}
.cert-seal svg { width: 48px; height: 48px; }
.cert-body { flex: 1; }
.cert-card .eyebrow { color: var(--red); }
.cert-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}
.cert-card > .cert-body > p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.55; margin: 0 0 24px; max-width: 620px; }
.cert-resolutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cert-res {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-res-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.cert-res-num { font-size: 15px; color: rgba(255,255,255,0.85); }
.cert-res-num strong {
  color: white;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .cert-card { flex-direction: column; align-items: flex-start; padding: 32px; }
  .cert-resolutions { grid-template-columns: 1fr; }
}

/* ============================================================
   Modalidades
   ============================================================ */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.mode {
  border-radius: var(--radius-lg);
  padding: 48px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.mode.presencial { background: var(--red); color: white; }
.mode.presencial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
}
.mode-content { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }

/* ---- Cartoon classroom scene ---- */
.mode-scene {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  place-items: center;
}
.mode-scene svg { width: 100%; height: auto; max-height: 340px; overflow: visible; }
.cl-floor { fill: rgba(255,255,255,0.10); }
.cl-window rect { fill: rgba(255,255,255,0.14); stroke: rgba(255,255,255,0.5); stroke-width: 2.5; }
.cl-window line { stroke: rgba(255,255,255,0.5); stroke-width: 2.5; }
.cl-sun { fill: var(--yellow); animation: clSun 3.2s ease-in-out infinite; transform-origin: 98px 74px; }
.cl-board rect { fill: var(--cream); }
.cl-board-tray { fill: rgba(0,0,0,0.14) !important; }
.cl-word { font-family: var(--font-display, sans-serif); font-weight: 800; fill: var(--navy); font-size: 34px; }
.cl-word1 { animation: clWord 5s ease-in-out infinite; }
.cl-word2 { font-size: 26px; fill: var(--red); animation: clWord 5s ease-in-out infinite; animation-delay: 2.5s; opacity: 0; }
.cl-underline { stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; animation: clUnderline 5s ease-in-out infinite; }
.cl-head { fill: #FFE0B8; }
.cl-teacher .cl-head { fill: #F6C99A; }
.cl-body { fill: var(--navy); }
.cl-teacher .cl-body { fill: #0B1740; }
.cl-arm { fill: #F6C99A; transform-origin: 130px 220px; animation: clPoint 2.6s ease-in-out infinite; }
.cl-student { animation: clBob 2.8s ease-in-out infinite; transform-origin: center bottom; }
.cl-s1 { animation-delay: 0s; }
.cl-s2 { animation-delay: 0.5s; }
.cl-s3 { animation-delay: 1s; }
.cl-bubble rect { fill: #fff; }
.cl-bubble text { font-family: var(--font-body, sans-serif); font-weight: 800; font-size: 16px; fill: var(--red); text-anchor: middle; }
.cl-b1 { animation: clBubble 4s ease-in-out infinite; }
.cl-b2 { animation: clBubble 4s ease-in-out infinite; animation-delay: 2s; }
@keyframes clBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes clPoint { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-16deg); } }
@keyframes clSun { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes clWord { 0% { opacity: 0; transform: translateY(6px); } 12%,42% { opacity: 1; transform: translateY(0); } 54%,100% { opacity: 0; } }
@keyframes clUnderline { 0%,12% { stroke-dasharray: 0 140; } 30%,46% { stroke-dasharray: 140 0; } 60%,100% { stroke-dasharray: 0 140; } }
@keyframes clBubble {
  0% { opacity: 0; transform: translateY(8px) scale(0.85); }
  14% { opacity: 1; transform: translateY(0) scale(1); }
  40% { opacity: 1; transform: translateY(-10px) scale(1); }
  55%,100% { opacity: 0; transform: translateY(-22px) scale(0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .cl-sun, .cl-arm, .cl-student, .cl-word1, .cl-word2, .cl-underline, .cl-bubble { animation: none; }
  .cl-word2 { opacity: 0; }
  .cl-bubble { opacity: 1; }
  .cl-underline { stroke-dasharray: 140 0; }
}
.mode-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.12);
  border-radius: 18px;
  display: grid;
  place-items: center;
}
.mode h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 24px 0 14px;
}
.mode p { font-size: 16px; line-height: 1.55; opacity: 0.85; margin: 0; max-width: 460px; }
.mode .mode-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 28px;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
}
.mode-bg-blob {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 320px;
  line-height: 1;
  bottom: -100px; right: -50px;
  opacity: 0.06;
  letter-spacing: -0.05em;
}
@media (max-width: 800px) {
  .modes-grid { grid-template-columns: 1fr; }
  .mode { padding: 36px; min-height: 320px; }
  .mode.presencial { grid-template-columns: 1fr; gap: 24px; }
  .mode-scene svg { max-height: 280px; }
}

/* ============================================================
   Why us
   ============================================================ */
.why {
  background: var(--ink);
  color: white;
}
.why .h-section { color: white; }
.why .section-head p { color: rgba(255,255,255,0.65); }
.why .eyebrow { color: var(--yellow); }
.why .eyebrow::before { background: var(--yellow); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-card {
  background: var(--ink);
  padding: 36px 32px;
  transition: background .3s ease;
}
.why-card:hover { background: var(--navy-deep); }
.why-card .icon {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: white;
}
.why-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 10px; }
.why-card p { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.65); margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Galería
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--cream);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .ig-icon {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: white;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .ig-icon { opacity: 1; }

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-big { grid-row: span 2; grid-column: span 2; }

.gallery-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--red) 100%);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.03em;
  position: relative;
}
.gallery-placeholder.alt { background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%); }
.gallery-placeholder.cream { background: var(--cream); color: var(--navy); }
.gallery-placeholder.yellow { background: var(--yellow); color: var(--navy); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-big { grid-row: span 2; grid-column: span 2; }
  .g-tall { grid-row: span 2; grid-column: span 1; }
}

/* ============================================================
   Testimonios
   ============================================================ */
.testimonials {
  background: var(--cream);
}
.testimonials-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.testimonials-viewport {
  overflow: hidden;
  padding: 4px;
  margin: -4px;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.testimonials-track .testimonial {
  flex: 0 0 calc((100% - 40px) / 3);
}
.carousel-arrow {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s;
}
.carousel-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
  transform: scale(1.06);
}
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.carousel-dots {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.carousel-dots button.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}
.testimonial {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.7;
  color: var(--red);
  font-weight: 800;
  height: 30px;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}
.testimonial .student {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonial .student-name { font-weight: 700; font-size: 15px; }
.testimonial .student-meta { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .testimonials-track .testimonial { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 620px) {
  .testimonials-carousel { gap: 8px; }
  .testimonials-track .testimonial { flex: 0 0 100%; }
  .carousel-arrow { width: 44px; height: 44px; }
}

/* ============================================================
   Equipo
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.teacher {
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.teacher.main, .teacher.photo {
  background: var(--navy);
  color: white;
  padding: 0;
  min-height: 460px;
  position: relative;
}
.teacher.main img, .teacher.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.teacher.main::after, .teacher.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15,31,77,0.95));
}
.teacher.main .teacher-body, .teacher.photo .teacher-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 32px;
}
.teacher.main h3, .teacher.photo h3 { color: white; }
.teacher.placeholder {
  background: var(--cream);
  color: var(--navy);
}
.teacher .ph-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
}
.teacher h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; margin: 0; }
.teacher .role { font-size: 14px; opacity: 0.7; margin-top: 4px; }
.teacher .teacher-body p { font-size: 14px; line-height: 1.5; opacity: 0.8; margin: 12px 0 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } .teacher.main { grid-column: 1 / -1; } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Convenios
   ============================================================ */
.convenios {
  background: var(--navy);
  color: white;
  overflow: hidden;
}
.convenios-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.convenios .h-section { color: white; }
.convenios p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.55; }
.convenios .eyebrow { color: var(--yellow); }
.convenios .eyebrow::before { background: var(--yellow); }

.convenios-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
}
.convenios-features .f {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.convenios-features .f .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }

.convenios-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.convenios-visual .big-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(140px, 18vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.1);
  position: absolute;
  bottom: -30px;
  right: -10px;
}
.convenios-visual .content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 32px;
}
.convenios-visual .content h3 { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -0.03em; color: white; }
.convenios-visual .content p { color: rgba(255,255,255,0.85); margin-top: 12px; font-size: 15px; }

@media (max-width: 900px) {
  .convenios-inner { grid-template-columns: 1fr; gap: 40px; }
  .convenios-features { grid-template-columns: 1fr; }
}

/* ============================================================
   Centro de Ayuda
   ============================================================ */
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.help-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease;
}
.help-card:hover { transform: translateY(-8px); border-color: var(--red); }
.help-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.help-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
}
.help-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 20px; flex: 1; }
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.help-card:hover .help-link { color: var(--red); }
@media (max-width: 980px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .help-grid { grid-template-columns: 1fr; } }

/* ---- PQR banner ---- */
.pqr-banner {
  margin-top: 20px;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.pqr-banner .eyebrow { color: var(--red); }
.pqr-banner h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.pqr-banner p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.55; margin: 0; max-width: 520px; }
.pqr-banner .btn { flex-shrink: 0; }
@media (max-width: 700px) { .pqr-banner { flex-direction: column; align-items: flex-start; padding: 32px; } }

/* ---- PQR modal ---- */
.pqr-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 20px;
  overflow-y: auto;
}
.pqr-modal.open { display: flex; }
.pqr-overlay { position: fixed; inset: 0; background: rgba(10,12,24,0.6); backdrop-filter: blur(3px); }
.pqr-dialog {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 40px 40px 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: pqrIn .3s ease;
}
@keyframes pqrIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.pqr-x {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; border-radius: 50%; transition: background .2s, color .2s;
}
.pqr-x:hover { background: var(--line); color: var(--ink); }
.pqr-dialog .eyebrow { color: var(--red); }
.pqr-dialog h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.pqr-intro { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 24px; }
.pqr-form { display: flex; flex-direction: column; gap: 16px; }
.pqr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pqr-field { display: flex; flex-direction: column; gap: 6px; }
.pqr-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.pqr-field input, .pqr-field select, .pqr-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.pqr-field input:focus, .pqr-field select:focus, .pqr-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.12);
}
.pqr-field textarea { resize: vertical; min-height: 96px; }
.pqr-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pqr-check input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--red); }
.pqr-submit { align-self: flex-start; margin-top: 4px; }
.pqr-success {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(31,138,91,0.1);
  border: 1px solid rgba(31,138,91,0.3);
  color: #1f8a5b;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
}
.pqr-success strong { font-size: 15px; }
@media (max-width: 560px) { .pqr-row { grid-template-columns: 1fr; } .pqr-dialog { padding: 32px 24px 28px; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; padding-top: 12px; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 6px 0;
}
.faq-q-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--red);
  font-size: 22px;
  font-weight: 300;
  transition: transform .3s ease;
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .3s ease, opacity .25s ease, padding .25s ease;
}
.faq-a > div {
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   CTA Final
   ============================================================ */
.cta-final {
  padding: 120px 0;
  background: var(--cream);
  position: relative;
}
.cta-box {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.cta-content { position: relative; z-index: 1; }
.cta-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55);
}
.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-box h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  max-width: 16ch;
}
@media (max-width: 860px) {
  .cta-box { grid-template-columns: 1fr; }
  .cta-photo { aspect-ratio: 16 / 10; max-height: 360px; order: -1; }
}
.cta-box h2 .script {
  font-family: 'Caveat', cursive;
  font-size: clamp(56px, 7.5vw, 110px);
  display: inline-block;
  transform: rotate(-3deg);
  color: var(--red);
}
.cta-box p { font-size: 18px; line-height: 1.5; opacity: 0.8; max-width: 540px; margin: 0 0 36px; }
.cta-box .row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-box .btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.25);
}
.cta-box .btn-ghost:hover { background: white; color: var(--ink); }

.cta-box .deco {
  position: absolute;
  right: -80px; top: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.15;
  filter: blur(60px);
}

/* ============================================================
   Ubicación
   ============================================================ */
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}
.location-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.location-row { display: flex; flex-direction: column; gap: 4px; }
.location-row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.location-row .v { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
}
.location-map iframe { width: 100%; height: 100%; border: 0; min-height: 420px; display: block; }
@media (max-width: 900px) { .location-inner { grid-template-columns: 1fr; } }

/* ============================================================
   Footer (estilo CENDI replicado)
   ============================================================ */
footer {
  background: var(--navy-deep);
  color: white;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(229,17,75,0.12), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(15,31,77,0.6), transparent 50%);
  pointer-events: none;
}
footer .container { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.95fr;
  gap: 56px;
  padding: 88px 0 64px;
}

/* Brand column */
.footer-brand img { height: 84px; width: auto; margin-bottom: 26px; margin-left: -6px; }
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 22px;
}
.footer-address svg { flex: none; margin-top: 2px; color: var(--red); }
.footer-quote {
  color: rgba(255,255,255,0.62);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 6px;
  max-width: 300px;
}
.footer-quote-author {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 26px;
}

/* Column heading with red underline (CENDI style) */
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 22px;
  padding-bottom: 12px;
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.footer-col h4:not(:first-child) { margin-top: 36px; }

.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.45;
}
.footer-list li svg { flex: none; margin-top: 1px; color: rgba(255,255,255,0.55); }
.footer-list .fl-label { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.footer-list a { color: rgba(255,255,255,0.78); transition: color .2s; }
.footer-list a:hover { color: var(--red); }
.footer-list li:hover svg { color: var(--red); }

/* Certifications column */
.footer-cert {
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 280px;
}
.footer-cert .cert-seal-foot {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
}
.footer-cert .cert-seal-foot svg { width: 38px; height: 38px; }
.footer-cert-meta { display: flex; flex-direction: column; gap: 3px; }
.footer-cert-meta .cm-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--navy); letter-spacing: -0.01em; line-height: 1.1; }
.footer-cert-meta .cm-sub { font-size: 11px; color: var(--muted); line-height: 1.3; }
.footer-cert-meta .cm-rad { font-family: var(--font-mono); font-size: 10.5px; color: var(--red); letter-spacing: 0.02em; margin-top: 2px; }
.footer-vigilada {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 280px;
}

/* Socials */
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: white;
  transition: background .2s, border-color .2s, transform .2s;
}
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 26px 0;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom strong { color: #fff; font-weight: 700; }
.footer-bottom .fb-maker { font-family: 'Caveat', cursive; font-size: 19px; color: var(--red); font-weight: 700; }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 44px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 48px; }
}

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.float-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #25D366;
  color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px -8px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.6);
  z-index: 40;
  animation: pulse 2.2s ease-out infinite;
  transition: transform .25s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { box-shadow: 0 14px 28px -8px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 14px 28px -8px rgba(37,211,102,0.5), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 14px 28px -8px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Dark mode override (tweak)
   ============================================================ */
body.dark {
  background: var(--ink);
  color: white;
}
body.dark .nav { background: rgba(10,14,31,0.85); border-bottom-color: rgba(255,255,255,0.08); }
body.dark .nav-links a { color: white; }
body.dark .nav-menu, body.dark .nav-submenu { background: var(--navy-deep, #0a0e1f); border-color: rgba(255,255,255,0.1); }
body.dark .nm-title, body.dark .nav-submenu a { color: white; }
body.dark .nav-menu-item:hover, body.dark .nav-submenu a:hover { background: rgba(255,255,255,0.06); }
body.dark .nav-submenu .lvl { background: var(--red); }
body.dark .btn-ghost { color: white; border-color: rgba(255,255,255,0.2); }
body.dark .btn-ghost:hover { background: white; color: var(--ink); }
body.dark .hero-sub { color: rgba(255,255,255,0.7); }
body.dark .hero-meta { color: rgba(255,255,255,0.5); border-top-color: rgba(255,255,255,0.1); }
body.dark .hero-meta strong { color: white; }
body.dark .level { background: rgba(255,255,255,0.04); color: white; }
body.dark .level-no { color: white; }
body.dark .level-desc { color: rgba(255,255,255,0.6); }
body.dark .programs, body.dark .testimonials, body.dark .cta-final { background: rgba(255,255,255,0.03); }
body.dark .program, body.dark .testimonial, body.dark .location-card { background: var(--navy-deep); color: white; }
body.dark .help-card { background: var(--navy-deep); color: white; border-color: rgba(255,255,255,0.1); }
body.dark .help-card p { color: rgba(255,255,255,0.6); }
body.dark .help-link { color: white; }
body.dark .pqr-dialog { background: var(--navy-deep); }
body.dark .pqr-field input, body.dark .pqr-field select, body.dark .pqr-field textarea { background: rgba(255,255,255,0.06); color: white; border-color: rgba(255,255,255,0.12); }
body.dark .pqr-field label { color: rgba(255,255,255,0.85); }
body.dark .pqr-x:hover { background: rgba(255,255,255,0.1); color: white; }
body.dark .program p, body.dark .testimonial .student-meta { color: rgba(255,255,255,0.6); }
body.dark .program ul li, body.dark .testimonial .student { border-top-color: rgba(255,255,255,0.08); }
body.dark .teacher { background: rgba(255,255,255,0.05); color: white; }
body.dark .teacher .ph-avatar { background: var(--red); }
body.dark .faq-q { color: white; }
body.dark .faq-q-icon { background: rgba(255,255,255,0.08); }
body.dark .faq-item { border-bottom-color: rgba(255,255,255,0.1); }
body.dark .gallery-placeholder.cream { background: rgba(255,255,255,0.06); color: white; }
body.dark .section-head p { color: rgba(255,255,255,0.6); }
body.dark .location-map { border-color: rgba(255,255,255,0.1); }
body.dark .nav-logo img { filter: brightness(1.2); }

/* ============================================================
   Drag & drop image swap (herramienta de edición)
   ============================================================ */
.img-swap-zone { position: relative; }
.img-swap-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: none;
  border-radius: 999px;
  background: rgba(15,31,77,0.82);
  color: #fff;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.img-swap-zone:hover .img-swap-badge {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.img-swap-badge:hover { background: var(--red, #ae153f); }
.img-swap-badge svg { display: block; }

.img-swap-hint {
  position: absolute;
  inset: 0;
  z-index: 19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  background: rgba(15,31,77,0.62);
  color: #fff;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  border: 2px dashed rgba(255,255,255,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.img-swap-zone.drag-over .img-swap-hint { opacity: 1; }
.img-swap-zone.drag-over { outline: 2px solid var(--red, #ae153f); outline-offset: 2px; }

.img-swap-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink, #14181f);
  color: #fff;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.img-swap-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.img-swap-toast.error { background: var(--red, #ae153f); }

@media print {
  .img-swap-badge, .img-swap-hint, .img-swap-toast { display: none !important; }
}

/* ============================================================
   Material educativo (solo home)
   ============================================================ */
#material { padding: 96px 0; }
.material-showcase {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.material-copy .eyebrow { color: var(--yellow); margin-bottom: 18px; }
.material-copy .eyebrow::before { background: var(--yellow); }
.material-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 22px;
}
.material-copy h2 .script { color: var(--yellow); }
.material-copy > p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0 0 28px; max-width: 520px; }
.material-copy strong { color: #fff; }
.material-list { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.material-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,0.88); font-size: 15.5px; line-height: 1.45; }
.material-list .m-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; margin-top: 6px; }
.material-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 16px;
}

.book-stage { position: relative; min-height: 460px; display: grid; place-items: center; }
.book { position: absolute; }
.book img { display: block; width: 320px; height: auto; filter: drop-shadow(0 40px 50px rgba(0,0,0,0.5)); }
.book-front { z-index: 2; transform: translate(-44px, 6px); animation: bookFloatA 6s ease-in-out infinite; }
.book-back { z-index: 1; transform: translate(70px, 36px) scale(0.82); opacity: 0.92; animation: bookFloatB 7s ease-in-out infinite; }
.book-back img { filter: drop-shadow(0 36px 44px rgba(0,0,0,0.55)) brightness(0.82); }
@keyframes bookFloatA {
  0%, 100% { transform: translate(-44px, 6px) rotate(-2deg); }
  50% { transform: translate(-44px, -20px) rotate(-4deg); }
}
@keyframes bookFloatB {
  0%, 100% { transform: translate(70px, 36px) scale(0.82) rotate(3deg); }
  50% { transform: translate(70px, 14px) scale(0.82) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .book-front, .book-back { animation: none; }
}
@media (max-width: 900px) {
  .material-showcase { grid-template-columns: 1fr; gap: 12px; padding: 48px 36px; }
  .book-stage { min-height: 420px; margin-top: 12px; }
  .book img { width: 250px; }
}
@media (max-width: 520px) {
  .book img { width: 200px; }
  .book-front { transform: translate(-30px, 6px); }
  .book-back { transform: translate(48px, 30px) scale(0.82); }
}

/* ============================================================
   Subpáginas: Programas y Niveles
   ============================================================ */
.sp-hero { background: var(--cream); padding: 88px 0 80px; }
.sp-crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 36px;
}
.sp-crumb a { color: var(--muted); transition: color .2s ease; }
.sp-crumb a:hover { color: var(--red); }
.sp-crumb .sep { opacity: 0.4; }
.sp-crumb .cur { color: var(--ink); }
.sp-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 52px;
  align-items: center;
}
.sp-hero .eyebrow { margin-bottom: 20px; }
.sp-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ink);
}
.sp-lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 580px; margin: 0 0 34px; }
.sp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sp-note { font-size: 13.5px; color: var(--muted); }

.lvl-chip {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 28px 64px -28px rgba(229,17,75,0.65);
}
.lvl-chip .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 132px;
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.lvl-chip .tier { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 14px; opacity: 0.85; }
.lvl-chip .name { font-weight: 700; font-size: 19px; margin-top: 4px; }
@media (max-width: 860px) {
  .sp-hero-grid { grid-template-columns: 1fr; }
  .lvl-chip { order: -1; width: fit-content; padding: 24px 40px; margin: 0 auto 8px; }
  .lvl-chip .code { font-size: 88px; }
}
@media (max-width: 480px) {
  .lvl-chip { padding: 18px 32px; }
  .lvl-chip .code { font-size: 72px; }
  .lvl-chip .tier { font-size: 11px; }
  .lvl-chip .name { font-size: 16px; }
}

/* Section heading inside subpages */
.sp-section { padding: 80px 0; }
.sp-section.alt { background: var(--cream); }
.sp-head { max-width: 720px; margin: 0 0 44px; }
.sp-head .eyebrow { margin-bottom: 16px; }
.sp-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--ink);
}
.sp-head p { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Nivelación banner */
.nivelacion {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.nivelacion .nv-icon { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,0.1); display: grid; place-items: center; color: var(--yellow); flex: none; }
.nivelacion .eyebrow { color: var(--yellow); margin-bottom: 10px; }
.nivelacion .eyebrow::before { background: var(--yellow); }
.nivelacion h3 { font-family: var(--font-display); font-weight: 800; font-size: 27px; letter-spacing: -0.02em; margin: 0 0 10px; }
.nivelacion p { margin: 0; color: rgba(255,255,255,0.74); font-size: 16px; line-height: 1.58; max-width: 660px; }
.nivelacion .btn { flex: none; }
@media (max-width: 820px) { .nivelacion { grid-template-columns: 1fr; gap: 22px; } }

/* Skill grid */
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skill-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.skill-card:hover { transform: translateY(-6px); border-color: rgba(229,17,75,0.5); box-shadow: 0 24px 50px -30px rgba(10,14,31,0.4); }
.skill-card .icon { width: 50px; height: 50px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.skill-card .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.skill-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin: 6px 0 12px; color: var(--ink); }
.skill-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 680px) { .skill-grid { grid-template-columns: 1fr; } }

/* Outcome strip */
.outcome { display: flex; align-items: flex-start; gap: 16px; background: var(--cream); border-radius: var(--radius-lg); padding: 30px 34px; margin-top: 28px; }
.outcome .o-mark { color: var(--red); flex: none; margin-top: 2px; }
.outcome p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.outcome strong { color: var(--red); }

/* Hub level cards */
.prog-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prog-levels .level { text-decoration: none; color: inherit; cursor: pointer; }
.prog-levels .level .go { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; color: var(--red); transition: color .3s ease; }
.prog-levels .level:hover .go { color: var(--yellow); }
@media (max-width: 900px) { .prog-levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .prog-levels { grid-template-columns: 1fr; } }

/* Level prev/next nav */
.level-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 30px; margin-top: 8px; }
.level-nav a { display: flex; flex-direction: column; gap: 5px; color: var(--ink); font-weight: 700; font-size: 17px; transition: color .2s ease; max-width: 48%; }
.level-nav a:hover { color: var(--red); }
.level-nav .dir { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.level-nav a.next { text-align: right; margin-left: auto; align-items: flex-end; }
.level-nav .spacer { flex: 1; }

/* ============================================================
   Mobile nav: hamburger + slide-in drawer
   ============================================================ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--cream);
  flex: none;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2.5px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open { visibility: visible; pointer-events: auto; }
.mm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,12,24,0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-menu.open .mm-overlay { opacity: 1; }
.mm-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(380px, 88vw);
  background: var(--paper);
  box-shadow: -20px 0 60px -20px rgba(15,31,77,0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open .mm-panel { transform: translateX(0); }
.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.mm-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.mm-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  background: var(--cream);
  transition: background .2s, color .2s;
}
.mm-close:hover { background: var(--red); color: #fff; }
.mm-nav { display: flex; flex-direction: column; padding: 10px 16px 4px; flex: 1; }
.mm-link, .mm-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-radius: 12px;
  text-align: left;
  transition: background .18s ease, color .18s ease;
}
.mm-link:hover, .mm-group-toggle:hover { background: var(--cream); color: var(--red); }
.mm-chev { color: var(--muted); transition: transform .28s ease; flex: none; }
.mm-group.open .mm-chev { transform: rotate(180deg); }
.mm-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height .34s cubic-bezier(.4,0,.2,1);
}
.mm-group.open .mm-sub { max-height: 520px; }
.mm-sub a {
  display: block;
  padding: 11px 12px 11px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.mm-sub a:hover { background: var(--cream); color: var(--red); }
.mm-sub a.mm-sub-lead { color: var(--ink); font-weight: 700; }
.mm-levels { display: flex; flex-direction: column; padding-left: 12px; margin: 2px 0 4px; border-left: 2px solid var(--line); }
.mm-levels a { display: flex; align-items: center; gap: 10px; padding-left: 14px; }
.mm-lvl {
  flex: none;
  display: inline-grid; place-items: center;
  width: 30px; height: 24px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
}
.mm-foot {
  padding: 18px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: var(--paper);
}
.mm-foot .btn { width: 100%; justify-content: center; }

/* Dark-mode drawer */
body.dark .mm-panel, body.dark .mm-head, body.dark .mm-foot { background: var(--navy-deep); }
body.dark .mm-head, body.dark .mm-foot { border-color: rgba(255,255,255,0.1); }
body.dark .mm-link, body.dark .mm-group-toggle { color: #fff; }
body.dark .mm-link:hover, body.dark .mm-group-toggle:hover,
body.dark .mm-sub a:hover, body.dark .mm-close:hover { background: rgba(255,255,255,0.07); }
body.dark .mm-close { background: rgba(255,255,255,0.07); color: #fff; }
body.dark .mm-sub a.mm-sub-lead { color: #fff; }
body.dark .nav-burger { background: rgba(255,255,255,0.08); }
body.dark .nav-burger span { background: #fff; }

@media (max-width: 1080px) {
  .nav-burger { display: flex; }
}

/* ============================================================
   Responsive polish (tablet + phone)
   ============================================================ */
@media (max-width: 1080px) {
  .nav-logo img { height: 150px; margin: -34px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-inner { gap: 14px; padding: 10px 0; }
  .nav-logo img { height: 124px; margin: -28px 0; }
  .nav-cta-btn { display: none; }
  .hero { padding: 32px 0 0; }
  .marquee { margin-top: 56px; }
  .marquee-track { font-size: clamp(20px, 6vw, 30px); gap: 32px; padding: 16px 0; }
  .testimonial { padding: 28px 24px; }
  .testimonial blockquote { font-size: 18px; }
  .cert-card, .pqr-banner, .material-showcase { padding: 28px 22px; }
  .location-card { padding: 28px 24px; }
  .float-whatsapp { width: 54px; height: 54px; bottom: 18px; right: 18px; }
}
@media (max-width: 380px) {
  .nav-logo img { height: 108px; margin: -24px 0; }
  .btn { padding: 14px 20px; font-size: 14px; }
}
