/* =========================================================
   IUDEI — Editorial Minimalism Design System
   Typography: Fraunces (display serif) + Inter (UI)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Canvas */
  --bg:           #fafaf6;
  --bg-alt:       #f2eee4;
  --bg-deep:      #0a0f1f;
  --surface:      #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);

  /* Ink */
  --ink:          #0a0f1f;
  --ink-soft:     #475569;
  --ink-dim:      #94a3b8;
  --ink-line:     rgba(10, 15, 31, 0.08);

  /* Brand */
  --brand:        #1836c2;
  --brand-deep:   #0e2390;
  --brand-soft:   rgba(24, 54, 194, 0.08);
  --brand-glow:   rgba(24, 54, 194, 0.22);
  --gold:         #b8902c;
  --gold-soft:    #e6cf8c;
  --ruby:         #9a1b33;
  --whats:        #128c7e;

  /* Shadows — layered, realistic */
  --sh-xs: 0 1px 2px rgba(10, 15, 31, .04);
  --sh-sm: 0 2px 6px rgba(10, 15, 31, .05), 0 1px 2px rgba(10, 15, 31, .04);
  --sh-md: 0 14px 28px -10px rgba(10, 15, 31, .08), 0 4px 8px -3px rgba(10, 15, 31, .04);
  --sh-lg: 0 32px 64px -20px rgba(10, 15, 31, .14), 0 10px 20px -6px rgba(10, 15, 31, .06);
  --sh-xl: 0 48px 96px -28px rgba(10, 15, 31, .18);
  --sh-glow: 0 20px 60px -16px var(--brand-glow);

  /* Type */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radii */
  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  28px;
  --r-xl:  44px;
  --r-full: 9999px;

  /* Motion */
  --ez-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ez-smooth: cubic-bezier(.22, 1, .36, 1);
  --ez-swift:  cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --maxw: 1280px;
  --pad-sec: clamp(80px, 12vw, 140px);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,15,31,.04) 1px, transparent 0);
  background-size: 24px 24px;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ez-swift); }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* Language visibility */
html[lang="es"] .lang-en { display: none !important; }
html[lang="en"] .lang-es { display: none !important; }

/* Layout helpers */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.section { padding: var(--pad-sec) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-deep); color: #e7e9f0; }

.grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(2.125rem, 4.5vw, 3.25rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { color: var(--ink-soft); font-size: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand);
}

.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.55;
}

.italic-accent { font-style: italic; font-family: var(--font-serif); color: var(--brand); font-weight: 500; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: .925rem;
  font-weight: 600;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ez-smooth), box-shadow .3s var(--ez-smooth), background .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ez-smooth); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-md);
}
.btn-primary:hover { background: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-glow); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-line);
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--whats);
  color: #fff;
}
.btn-whatsapp:hover { background: #0e6e63; transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(18, 140, 126, .4); }

.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  z-index: 2000;
  transition: width .1s linear;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: padding .4s var(--ez-smooth), background .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: .75rem 0;
  background: rgba(250, 250, 246, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--ink-line);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }

.logo { display: inline-flex; align-items: center; gap: .85rem; }
.logo-img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-text .tagline {
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 3px;
}

.nav-links { display: flex; gap: 2.25rem; align-items: center; }
.nav-links a {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: .4rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  margin: 0 auto;
  width: 0;
  height: 1.5px;
  background: var(--brand);
  transition: width .35s var(--ez-smooth);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--ink-line);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  transition: all .3s var(--ez-smooth);
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); }
.lang-toggle .lang-current { color: var(--ink); font-weight: 700; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ez-smooth); }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--pad-sec) * 0.8) 0 var(--pad-sec);
  overflow: hidden;
  background: var(--bg);
}

/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 75% 25%, rgba(24, 54, 194, .12), transparent 60%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(184, 144, 44, .10), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(154, 27, 51, .05), transparent 60%);
  filter: blur(20px);
  z-index: 0;
  animation: meshFloat 20s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-container > * { min-width: 0; }

.hero-content { max-width: 640px; }

.heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .9rem .45rem .5rem;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  box-shadow: var(--sh-sm);
  margin-bottom: 1.75rem;
}
.heritage-badge .dot {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: .6rem;
}
.heritage-badge .since { color: var(--ink-dim); font-weight: 500; }

.hero h1 {
  margin-bottom: 1.75rem;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--ruby));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 3rem;
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
  flex-wrap: wrap;
}
.hero-meta-item h4 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: .15rem;
}
.hero-meta-item p {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin-left: auto;
}
.hero-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  transform: rotate(-2deg);
  transition: transform .8s var(--ez-smooth);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s linear;
}
.hero-visual:hover .hero-frame { transform: rotate(0deg) translateY(-8px); }
.hero-visual:hover .hero-frame img { transform: scale(1.08); }

/* Floating accent card */
.hero-accent {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 240px;
  transform: rotate(3deg);
  transition: transform .6s var(--ez-spring);
  z-index: 3;
}
.hero-accent:hover { transform: rotate(0) translateY(-4px); }
.hero-accent-ico {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero-accent-text { font-size: .78rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.hero-accent-text span { display: block; font-weight: 400; color: var(--ink-dim); font-size: .72rem; margin-top: 2px; }

/* Decorative ring */
.hero-visual::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 140px;
  height: 140px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  opacity: .5;
  z-index: 2;
  animation: slowSpin 60s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  z-index: 3;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ink-dim), transparent);
  animation: scrollLine 2s var(--ez-smooth) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   MARQUEE (Trust row)
   ========================================================= */
.marquee {
  padding: 2.5rem 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marqueeSlide 40s linear infinite;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.marquee-item svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.marquee-item .sep { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-left: 2rem; }
@keyframes marqueeSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-header { max-width: 720px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.center .eyebrow { justify-content: center; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 15, 31, .3));
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: 2rem; left: 2rem; right: 2rem;
  background: var(--surface-soft);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--ink);
  font-weight: 500;
  z-index: 2;
}
.about-badge-icon {
  width: 36px; height: 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink-line);
}
.stat .num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}
.stat .num em { font-style: italic; color: var(--brand); font-weight: 400; }
.stat .label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* =========================================================
   WHY US (new section)
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.why-card {
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  transition: transform .4s var(--ez-smooth), box-shadow .4s, border-color .4s;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.why-card:hover::before { opacity: 1; }
.why-ico {
  width: 56px; height: 56px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.why-card h3 { margin-bottom: .6rem; color: var(--ink); }
.why-card p { font-size: .95rem; line-height: 1.55; }

/* =========================================================
   METHODOLOGY
   ========================================================= */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  transition: transform .4s var(--ez-smooth), box-shadow .4s;
  counter-increment: step;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.step-card::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--bg-alt);
  line-height: 1;
  transition: color .4s;
  z-index: 0;
}
.step-card:hover::before { color: var(--gold-soft); }
.step-card h3 { margin-bottom: .6rem; margin-top: 3.5rem; position: relative; z-index: 1; }
.step-card p { font-size: .95rem; position: relative; z-index: 1; }
.step-ico {
  width: 44px; height: 44px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* =========================================================
   COURSES
   ========================================================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ez-smooth), box-shadow .4s, border-color .4s;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--brand-soft);
}
.course-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.course-ico {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--bg-alt);
  color: var(--brand);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-level {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: .3rem .6rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-full);
}
.course-card h3 { color: var(--ink); }
.course-card p { font-size: .95rem; flex-grow: 1; }

.course-list { display: flex; flex-direction: column; gap: .55rem; margin-top: .5rem; }
.course-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
.course-list li svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }

.course-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .3s;
}
.course-cta svg { transition: transform .3s var(--ez-smooth); }
.course-card:hover .course-cta { color: var(--brand); }
.course-card:hover .course-cta svg { transform: translateX(4px); }

/* =========================================================
   CAMBRIDGE
   ========================================================= */
.cambridge {
  background: var(--bg-deep);
  color: #e7e9f0;
  position: relative;
  overflow: hidden;
}
.cambridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 50%, rgba(184, 144, 44, .22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 50%, rgba(24, 54, 194, .18), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.cambridge .container { position: relative; z-index: 1; }
.cambridge .eyebrow { color: var(--gold-soft); }
.cambridge .eyebrow::before { background: var(--gold-soft); }
.cambridge h2 { color: #fff; }
.cambridge p { color: rgba(231, 233, 240, .7); }

.cambridge-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
.cambridge-seal {
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(184, 144, 44, .25));
  animation: slowFloat 8s ease-in-out infinite;
}
@keyframes slowFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.cambridge-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.cambridge-stat {
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
}
.cambridge-stat .num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--gold-soft);
  display: block;
  line-height: 1;
  margin-bottom: .35rem;
}
.cambridge-stat .label { font-size: .78rem; color: rgba(231, 233, 240, .6); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform .4s var(--ez-smooth), box-shadow .4s;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.testimonial::before {
  content: '"';
  position: absolute;
  top: .25rem; left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-soft);
  line-height: 1;
  pointer-events: none;
}
.testimonial-stars { display: flex; gap: .2rem; color: var(--gold); }
.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial-body {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.testimonial-person {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-meta .name { font-weight: 600; font-size: .95rem; color: var(--ink); }
.testimonial-meta .role { font-size: .78rem; color: var(--ink-dim); }

/* =========================================================
   BRANCHES
   ========================================================= */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.branch-card {
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ez-smooth), box-shadow .4s;
  display: flex;
  flex-direction: column;
}
.branch-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.branch-map {
  aspect-ratio: 16/7;
  background:
    linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.branch-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, var(--ink-line) 0, var(--ink-line) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(-45deg, var(--ink-line) 0, var(--ink-line) 1px, transparent 1px, transparent 24px);
  opacity: .5;
}
.branch-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--brand);
  color: #fff;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 12px 24px -6px rgba(24, 54, 194, .4);
  z-index: 2;
}
.branch-pin svg { rotate: 45deg; width: 22px; height: 22px; }
.branch-body { padding: 1.75rem 2rem 2rem; display: flex; flex-direction: column; gap: .75rem; }
.branch-body h3 { color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.branch-body h3 .tag { font-family: var(--font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); background: var(--bg-alt); padding: .25rem .55rem; border-radius: var(--r-full); }
.branch-row { display: flex; align-items: center; gap: .65rem; color: var(--ink-soft); font-size: .93rem; }
.branch-row svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.branch-card .btn { margin-top: 1rem; align-self: flex-start; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--ink-line);
  transition: padding .3s;
}
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .3s;
}
.faq-trigger:hover { color: var(--brand); }
.faq-sign {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: transform .4s var(--ez-smooth);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 400;
}
.faq-item.active .faq-sign { transform: rotate(45deg); color: var(--brand); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ez-smooth);
}
.faq-content-inner {
  padding: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 68ch;
}
.faq-item.active .faq-content { max-height: 400px; }

/* =========================================================
   CTA
   ========================================================= */
.cta-wrap {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.cta-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(184, 144, 44, .25), transparent 60%),
    radial-gradient(ellipse 45% 45% at 10% 90%, rgba(24, 54, 194, .35), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-wrap > * { position: relative; z-index: 1; }
.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.cta-wrap h2 { color: #fff; }
.cta-wrap h2 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.cta-wrap p { color: rgba(255, 255, 255, .72); max-width: 50ch; margin-top: 1rem; }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; }
.cta-actions .btn-primary { background: var(--surface); color: var(--ink); }
.cta-actions .btn-primary:hover { background: var(--gold); color: var(--ink); }
.cta-actions .btn-ghost { background: transparent; color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .22); }
.cta-actions .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-alt);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  border-top: 1px solid var(--ink-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 4rem;
}
.footer-brand p {
  margin-top: 1.5rem;
  font-size: .95rem;
  max-width: 32ch;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
}
.footer ul { display: flex; flex-direction: column; gap: .55rem; }
.footer ul a { font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.footer ul a:hover { color: var(--brand); }
.footer-branch p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .4rem; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--ink-dim);
}
.footer-socials { display: flex; gap: .5rem; }
.footer-socials a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  color: var(--ink-soft);
  transition: all .25s var(--ez-smooth);
}
.footer-socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.float-wa {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  width: 56px; height: 56px;
  background: var(--whats);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px -8px rgba(18, 140, 126, .4);
  transition: transform .3s var(--ez-smooth), box-shadow .3s;
}
.float-wa:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 20px 40px -10px rgba(18, 140, 126, .55); }
.float-wa::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--whats);
  opacity: .6;
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(.9); opacity: .7; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ez-smooth), transform .9s var(--ez-smooth); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .cta-wrap { grid-template-columns: 1fr; text-align: left; }
  .cambridge-grid { grid-template-columns: 1fr; text-align: center; }
  .cambridge-seal { margin: 0 auto 2rem; max-width: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --pad-sec: 72px; }
  .hero {
    min-height: auto;
    padding: 7rem 0 5rem;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1.08;
  }
  .hero-content { max-width: 100%; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    background: var(--surface);
    box-shadow: var(--sh-xl);
    transform: translateX(100%);
    transition: transform .4s var(--ez-smooth);
    z-index: 999;
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; font-family: var(--font-serif); }
  .mobile-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-actions .btn-whatsapp { display: inline-flex; }
  .hero-container { grid-template-columns: minmax(0, 1fr); gap: 3rem; width: 100%; }
  .hero-visual { width: 100%; max-width: 420px; margin: 0 auto; }
  .hero-meta { gap: 1.5rem; }
  .hero-scroll { display: none; }
  .why-grid, .method-grid, .courses-grid, .testimonials-grid, .branches-grid { grid-template-columns: 1fr; }
  .about-stats, .cambridge-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-wrap { padding: 2.5rem 1.75rem; }
  .cta-actions { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: 100%; padding: 0 .95rem; }
  .navbar { padding: .85rem 0; }
  .nav-container { gap: .5rem; width: 100%; max-width: none; min-width: 0; }
  .nav-actions { gap: .35rem; }
  .logo { gap: .55rem; min-width: 0; flex: 1 1 auto; }
  .logo-img { height: 34px; }
  .logo-text { min-width: 0; }
  .logo-text .brand { font-size: 1.32rem; }
  .logo-text .tagline { display: none; }
  .lang-toggle { min-width: 42px; justify-content: center; padding: .42rem .55rem; font-size: .68rem; letter-spacing: .03em; }
  .lang-toggle .lang-separator,
  .lang-toggle .lang-other { display: none; }
  .mobile-toggle { flex: 0 0 auto; padding: 8px; }
  .hero { padding: 6.25rem 0 3.75rem; }
  .heritage-badge {
    max-width: 100%;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .72rem;
  }
  .heritage-badge .since { display: none; }
  .hero h1 {
    max-width: 12ch;
    font-size: 2.18rem;
  }
  .hero-container,
  .hero-content,
  .hero-meta,
  .hero-actions {
    width: 100%;
    max-width: 100%;
  }
  .hero-visual { max-width: min(100%, 358px); }
  .hero-lead { max-width: 31ch; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .65rem; }
  .hero-actions .btn { width: 100%; padding: .85rem 1rem; min-width: 0; white-space: normal; }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    margin-top: 2.1rem;
    padding-top: 1.35rem;
  }
  .hero-meta-item { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .hero-meta-item h4 { font-size: 1.42rem; }
  .hero-meta-item p { font-size: .68rem; letter-spacing: .06em; white-space: normal; text-align: right; }
}

@media (max-width: 480px) {
  .container { padding: 0 .95rem; }
  .nav-container { gap: .5rem; }
  .nav-actions { gap: .35rem; }
  .logo { gap: .55rem; }
  .logo-img { height: 34px; }
  .logo-text .brand { font-size: 1.32rem; }
  .logo-text .tagline { display: none; }
  .lang-toggle { padding: .42rem .55rem; font-size: .68rem; letter-spacing: .03em; }
  .mobile-toggle { padding: 8px; }
  .heritage-badge {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .heritage-badge .since { display: none; }
  .hero h1 { font-size: 2.18rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .65rem; }
  .hero-actions .btn { width: 100%; padding: .85rem 1rem; min-width: 0; }
  .hero-meta { grid-template-columns: 1fr; gap: .85rem; justify-content: stretch; }
  .hero-meta-item p { font-size: .68rem; letter-spacing: .06em; white-space: normal; text-align: right; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-accent { left: -.5rem; max-width: 210px; }
  .hero-visual::before { width: 100px; height: 100px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-meta-item h4 { font-size: 1.42rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
