:root {
  --primary: #4338ca;
  --primary-dark: #3730a3;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-cyan: #06b6d4;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --heading: #312e81;
  --ink: #1e1b4b;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-2: #f5f3ff;
  --surface-3: #ede9fe;
  --border: #ddd6fe;
  --shadow: 0 16px 48px rgba(67, 56, 202, 0.1);
  --shadow-lg: 0 28px 70px rgba(67, 56, 202, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 84px;
  --gradient-hero: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #a855f7 100%);
  --gradient-page: linear-gradient(135deg, #3730a3 0%, #6d28d9 55%, #7c3aed 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt { background: var(--surface-2); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow--light {
  background: rgba(255, 255, 255, 0.18);
  color: #fde68a;
}
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; line-height: 1.7; }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 10px 28px rgba(67, 56, 202, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3730a3 0%, #6d28d9 50%, #9333ea 100%);
  box-shadow: 0 14px 36px rgba(67, 56, 202, 0.42);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--secondary); color: var(--secondary); background: var(--surface-2); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.45);
}

.topbar {
  background: var(--gradient-page);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}
.topbar span { opacity: 0.75; margin: 0 0.4rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 250, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.45rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
}
.nav-cta { display: flex; gap: 0.65rem; align-items: center; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--heading);
  font-size: 1.3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 116px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(124, 58, 237, 0.18), transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(6, 182, 212, 0.12), transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.06), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 5rem;
}
.hero-copy h1 {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-copy .hero-title span {
  display: block;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.stat-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--secondary);
}
.stat-card strong {
  display: block;
  font-size: 1.35rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.stat-card span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.hero-visual { position: relative; }
.hero-panel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  min-height: 500px;
  background: var(--surface-3);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 500px; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: -0.75rem;
  bottom: 2rem;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-lg);
  max-width: 230px;
  border: 1px solid var(--border);
}
.hero-badge strong { color: var(--heading); display: block; font-size: 0.95rem; }
.hero-badge span { font-size: 0.85rem; color: var(--muted); }

.card-feature-split {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}
.card-feature-split img {
  margin: 0;
  border-radius: var(--radius-sm);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.35);
}
.card img { border-radius: var(--radius-sm); margin-bottom: 1rem; }
.card ul { padding-left: 1.1rem; color: var(--muted); font-size: 0.94rem; }
.card ul li { margin-bottom: 0.3rem; }
.pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.feature-list { display: grid; gap: 0.85rem; margin-top: 1.5rem; }
.feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
}
.feature-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.12), rgba(124, 58, 237, 0.18));
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.testimonial-body {
  flex: 1 1 auto;
  min-height: 0;
}
.testimonial-card .stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-quote {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.testimonial-card.is-expanded .testimonial-quote {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.testimonial-toggle {
  display: none;
  margin-top: 0.65rem;
  padding: 0;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.84rem;
  background: none;
  border: none;
  cursor: pointer;
}
.testimonial-toggle.is-visible { display: inline-block; }
.testimonial-toggle:hover { text-decoration: underline; }
.testimonial-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.testimonial-card .author {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.95rem;
  line-height: 1.35;
}
.testimonial-card .role {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ── Results page ── */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  background: var(--gradient-page);
  color: #fff;
}
.page-hero--results {
  padding-bottom: 4rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255, 255, 255, 0.72); max-width: 58ch; }

.results-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.results-stat strong {
  display: block;
  font-size: 1.6rem;
  color: #fde68a;
  font-weight: 800;
}
.results-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.results-spotlight { padding-top: 4rem; }
.results-spotlight-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.exam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.exam-tags span {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-2);
}

.result-spotlight-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.result-spotlight-card:hover {
  box-shadow: 0 32px 80px rgba(20, 20, 20, 0.14);
  transform: translateY(-4px);
}
.result-spotlight-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-sm) - 2px);
}
.result-spotlight-card figcaption {
  text-align: center;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.03em;
}

.results-gallery-section { padding-top: 3rem; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.result-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.result-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.result-item-frame {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.result-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 520px;
}
.result-item figcaption {
  text-align: center;
  padding-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.contact-strip {
  background: var(--gradient-page);
  color: #fff;
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}
.contact-item {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-item:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.contact-item--whatsapp {
  background: var(--whatsapp) !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.contact-item--whatsapp:hover {
  background: var(--whatsapp-dark) !important;
}
.contact-item--youtube:hover {
  background: rgba(255, 255, 255, 0.22);
}
.contact-item .icon { font-size: 1.35rem; margin-bottom: 0.45rem; line-height: 1; }
.contact-item .icon-youtube {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
}
.contact-item .icon-youtube img,
.contact-item .icon-youtube svg {
  width: 2rem;
  height: 2rem;
  display: block;
}
.fab-menu a.fab-youtube {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.fab-menu a.fab-youtube img,
.fab-menu a.fab-youtube svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}
.contact-item strong { display: block; font-size: 0.86rem; font-weight: 500; }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.location-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--heading);
  transition: all 0.2s ease;
}
.location-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--secondary);
}

.site-footer {
  background: linear-gradient(180deg, #312e81 0%, #1e1b4b 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { color: #fff; margin-bottom: 1rem; font-weight: 600; }
.footer-grid a { color: rgba(255, 255, 255, 0.65); display: block; margin-bottom: 0.5rem; font-size: 0.93rem; }
.footer-grid a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.fab-menu {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  display: grid;
  gap: 0.5rem;
}
.fab-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  transform: translateX(calc(100% - 50px));
  transition: transform 0.25s ease;
}
.fab-menu a:hover, .fab-menu.open a { transform: translateX(0); }
.fab-menu a.fab-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.fab-menu a.fab-whatsapp:hover {
  background: var(--whatsapp-dark);
}
.fab-menu .fab-main {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  justify-self: end;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  place-items: center;
  z-index: 200;
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-height: 92vh;
  max-width: 96vw;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  backdrop-filter: blur(8px);
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .grid-3, .grid-2, .testimonial-grid, .footer-grid, .locations-grid,
  .results-spotlight-inner, .card-feature-split { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
  .hero-grid { padding: 2.5rem 0 3rem; }
  .hero-badge {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }
  .nav, .nav-cta .btn-secondary { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 101;
  }
  .nav.open a {
    padding: 0.65rem 0;
    font-size: 1rem;
  }
  .hero-slide img { height: 280px; }
  .hero-panel { min-height: 280px; }
  .logo img { height: 40px; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .contact-strip { grid-template-columns: 1fr; }
  .header-inner .nav-cta .btn-secondary { display: none; }
  .results-hero-stats { gap: 1.25rem; }
  .hero-actions .btn { width: 100%; }
  .page-hero { padding: 3rem 0 2.5rem; }
  .container { width: min(var(--max), calc(100% - 1.25rem)); }
  .fab-menu { right: 0.75rem; bottom: 0.75rem; }
}

@media (min-width: 1200px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
}
