/* Bethel House — Look & Feel 2026 */

/* Tipografía self-hosted (páginas index-bh) — sin dependencia de Google Fonts */
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../fonts/NeueHaasGroteskDisplayPro-65Medium.c00931e8b3cc.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../fonts/NeueHaasDisplayBold.822ebe551ca0.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-VariableFont_wght.310b1a7f9485.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Familias tipográficas oficiales */
  --font-display: "Neue Haas Grotesk Display Pro", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  /* Paleta oficial UX (extraída de referencia de marca) */
  --brand-blue: #0389fc;
  --brand-orange: #ff7212;
  --brand-green: #05c35d;
  --brand-red: #f3403c;
  --brand-yellow: #feba22;
  --brand-violet-light: #7859fc;
  --brand-violet-dark: #2b1748;
  --brand-pink: #fc76b3;

  /* Eje de marca — violeta */
  --purple: var(--brand-violet-light);
  --purple-deep: var(--brand-violet-dark);
  --violet: #9580fd;
  --yellow: var(--brand-yellow);
  --gold: #e5a918;
  --orange: var(--brand-orange);
  --red: var(--brand-red);

  /* Niveles académicos */
  --play: var(--brand-green);
  --primary-level: var(--brand-orange);
  --middle-level: var(--brand-red);
  --antorchas: var(--brand-blue);

  /* Neutrals */
  --bg: #f9f7fc;
  --surface: #ffffff;
  --text: #3d4654;
  --text-strong: #141c28;
  --text-muted: #5f6a7a;
  --line: rgba(43, 23, 72, 0.08);

  /* Layout */
  --container: 1140px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
  --focus-ring: var(--purple);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Espacio reservado mientras data-img carga por JS */
[data-img][src=""],
[data-img]:not([src]) {
  background: rgba(43, 23, 72, 0.06);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

:where(
  a,
  button,
  .btn,
  .nav-link,
  .nav-toggle,
  .text-link,
  .bento-item,
  .gallery-item,
  .back-to-top,
  .hero-prev,
  .hero-next,
  .hero-dots button,
  .mobile-menu-close,
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next,
  .world-switch-btn,
  .world-picker-card,
  .world-picker-close,
  .read-more-toggle,
  summary
):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

:where(a, button, .btn, .nav-link, .bento-item, .gallery-item):focus:not(:focus-visible) {
  outline: none;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Utilities ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  background: var(--purple-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(120, 89, 252, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  background: rgba(120, 89, 252, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(120, 89, 252, 0.2);
  transform: none;
}

.btn-accent {
  background: var(--yellow);
  color: var(--text-strong);
}

.btn-accent:hover {
  background: var(--gold);
  color: var(--text-strong);
  box-shadow: 0 8px 24px rgba(254, 186, 34, 0.35);
}

.btn-arrow::after {
  content: "→";
  transition: transform var(--transition);
}

.btn-arrow:hover::after { transform: translateX(3px); }

.text-link {
  font-weight: 600;
  color: var(--purple);
  font-size: 0.9375rem;
}

.text-link:hover { color: var(--purple-deep); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 30px rgba(120, 89, 252, 0.06);
}

.social-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--line);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--purple);
}

.social-links a:hover {
  background: var(--yellow);
  color: var(--text-strong);
}

/* ── Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Tamaño unificado (calibrado para dual logos Primary+Middle) */
.navbar-logo img,
.navbar-logo--dual img {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.navbar-brand {
  gap: 0.65rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple);
  background: rgba(120, 89, 252, 0.06);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(26, 21, 35, 0.08);
}

.dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: 8px;
  color: var(--text);
}

.dropdown a:hover,
.dropdown a.active {
  background: rgba(120, 89, 252, 0.08);
  color: var(--purple);
}

.dropdown a.active { font-weight: 600; }

.nav-cta {
  margin-left: 0.35rem;
  padding: 0.5rem 1.1rem !important;
  background: var(--purple);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--purple-deep) !important;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  padding: 1.25rem 0 0;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-inline: auto;
  width: min(var(--container), 100% - 2.5rem);
  height: clamp(420px, 72vh, 640px);
  box-shadow: 0 24px 60px rgba(43, 23, 72, 0.18);
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.hero-slide.active { opacity: 1; }

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 21, 35, 0.55) 0%,
    rgba(26, 21, 35, 0.15) 50%,
    rgba(26, 21, 35, 0.05) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 36rem;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.9375rem, 2.1vw, 1.125rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  max-width: 26rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-tagline strong {
  font-weight: 700;
  color: var(--yellow);
}

.hero-quote {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-style: italic;
  margin: 0 0 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
}

.hero-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  opacity: 0.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.4rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-dots button.active {
  width: 24px;
  background: var(--yellow);
}

/* ── Intro ── */
.intro {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  text-align: center;
}

.intro-lead {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text);
  line-height: 1.75;
}

.level-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.level-card {
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}

.level-card:hover {
  transform: translateY(-2px);
  color: #fff;
}

.level-card.play {
  background: var(--play);
  box-shadow: 0 4px 16px rgba(5, 195, 93, 0.3);
}

.level-card.primary {
  background: var(--primary-level);
  box-shadow: 0 4px 16px rgba(255, 114, 18, 0.3);
}

.level-card.middle {
  background: var(--middle-level);
  box-shadow: 0 4px 16px rgba(243, 64, 60, 0.3);
}

.level-card.antorchas {
  background: var(--antorchas);
  box-shadow: 0 4px 16px rgba(3, 137, 252, 0.25);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.about-image::before {
  content: "";
  position: absolute;
  inset: -12px -12px 12px 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--violet), var(--orange));
  opacity: 0.15;
  z-index: -1;
}

.about-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1.25rem;
}

.about-content p {
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Stats strip ── */
.stats {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--line);
}

.stat-item h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 0.25rem;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Testimonials proof (postulación) ── */
.testimonials-proof {
  background: linear-gradient(160deg, var(--brand-violet-dark) 0%, #1f1035 45%, #3d2a6e 100%);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  margin-top: clamp(1rem, 3vw, 2rem);
}

.testimonials-proof-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.testimonials-proof-head h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.75rem;
}

.testimonials-proof-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-label-light {
  color: var(--yellow);
}

.testimonials-proof .bento-testimonials {
  gap: 1rem;
}

.testimonials-proof .bento-item {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

.testimonials-proof .bento-testimonials .bento-item {
  min-height: 240px;
}

.testimonials-proof .bento-testimonial::after {
  background: linear-gradient(
    to top,
    rgba(8, 3, 18, 0.98) 0%,
    rgba(8, 3, 18, 0.88) 35%,
    rgba(8, 3, 18, 0.5) 65%,
    rgba(8, 3, 18, 0.2) 100%
  );
}

.bento-testimonial-intro {
  background: linear-gradient(145deg, var(--violet) 0%, var(--purple) 100%);
  justify-content: center;
  cursor: default;
  min-height: 280px;
}

.bento-testimonial-intro::after {
  display: none;
}

.testimonial-stats {
  list-style: none;
  margin: 0.85rem 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.testimonial-stats li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.testimonial-stats strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.testimonial-stats span {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.bento-testimonial-intro .bento-content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.92;
}

.bento-testimonial {
  cursor: default;
}

.bento-testimonial .bento-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.bento-testimonial blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-style: normal;
  position: relative;
}

.bento-featured blockquote::before {
  content: "“";
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.bento-testimonial blockquote p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-testimonial.bento-featured {
  min-height: 280px;
}

.bento-testimonial.bento-featured blockquote p {
  font-size: clamp(0.975rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  font-weight: 500;
  -webkit-line-clamp: unset;
  display: block;
}

.bento-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bento-author img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}

.bento-featured .bento-author img {
  width: 48px;
  height: 48px;
}

.bento-author cite {
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.35;
  opacity: 0.92;
}

.bento-author strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

.bento-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.testimonials-proof-cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.testimonials-proof-page {
  margin-top: 0;
  border-radius: 0;
}

.testimonials-proof-page .testimonials-proof-head {
  margin-top: 0;
}

.testimonials-proof .btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.testimonials-proof .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
  .testimonials-proof .bento-testimonials .bento-item {
    min-height: 220px;
  }

  .bento-testimonial.bento-featured {
    min-height: 240px;
  }
}

/* ── Events ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(120, 89, 252, 0.08);
}

.event-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.event-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.event-date {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
}

.event-date .month {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
}

.event-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Salidas (tags) ── */
.salidas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.tag-group {
  margin-bottom: 1.75rem;
}

.tag-group h3 {
  font-size: 0.9375rem;
  color: var(--purple);
  margin: 0 0 0.85rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--violet);
  color: var(--purple);
  background: rgba(120, 89, 252, 0.06);
}

/* ── Excellence ── */
.excellence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.excellence-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.excellence-caption {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  padding-left: 0.75rem;
  border-left: 3px solid var(--orange);
}

.facility-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.facility-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.facility-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background var(--transition);
}

.facility-item summary::-webkit-details-marker { display: none; }

.facility-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--violet);
  transition: transform var(--transition);
}

.facility-item[open] summary::after {
  transform: rotate(45deg);
}

.facility-item summary:hover { background: rgba(120, 89, 252, 0.04); }

.facility-item summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.facility-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ── Coordinator ── */
.coordinator-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
}

.coordinator-photo img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
}

.coordinator-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-weight: 500;
}

.coordinator-meta strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.9375rem;
}

.coordinator-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.coordinator-text.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Apply CTA ── */
.apply-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple) 50%, var(--violet));
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
}

.apply-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.apply-banner-content {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apply-banner-content h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

.apply-banner-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
}

.apply-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.apply-banner .text-link {
  color: var(--yellow);
}

.apply-banner .text-link:hover { color: #fff; }

/* ── Contact row ── */
.contact-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.contact-card-text {
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-card.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.learning-group h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

/* ── Footer ── */
.footer {
  background: var(--text-strong);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 1fr 1.1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.footer h3 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.footer-brand-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}

.footer-project-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.65);
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-brand-word {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
}

.footer-brand-star {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-brand-sub {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand-tagline {
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 20rem;
  margin: 0;
}

.footer-highlight { color: var(--orange); }

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.3rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.footer a:hover { color: var(--yellow); }

.footer .social-links {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.footer .social-links a {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.6875rem;
}

.footer .social-links a:hover {
  background: var(--yellow);
  color: var(--text-strong);
}

.footer-social-lead {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--yellow);
  color: #fff;
  transform: translateY(-1px);
}

.footer-social-icon {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}

.footer-social-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.footer-social-text strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.8;
}

.footer-social-text span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
}

.copyright .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.copyright-logo {
  height: 30px;
  width: auto;
  opacity: 0.8;
}

.copyright-logos {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.copyright-logos .copyright-logo {
  height: 30px;
  width: auto;
  max-width: min(220px, 42vw);
  opacity: 0.9;
}

.copyright p {
  margin: 0;
  opacity: 0.65;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: calc(1.25rem + 4.5rem + 0.75rem);
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(120, 89, 252, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--violet);
  transform: translateY(-2px);
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 35, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
}

.mobile-menu.open { display: block; }

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--surface);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav > li { border-bottom: 1px solid var(--line); }

.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-weight: 500;
  font-size: 0.9375rem;
}

.mobile-submenu {
  list-style: none;
  padding: 0 0 0.75rem 0.75rem;
  margin: 0;
}

.mobile-submenu a {
  padding: 0.45rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .nav-menu { display: none; }

  .nav-toggle { display: flex; }

  .about-grid,
  .excellence-grid,
  .salidas-grid,
  .contact-row,
  .apply-banner,
  .contact-card.featured {
    grid-template-columns: 1fr;
  }

  .apply-banner-image { order: -1; }

  .apply-banner-image img { min-height: 240px; }

  .contact-card.featured img { min-height: 200px; }

  .events-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; }

  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-social {
    grid-column: 1 / -1;
  }

  .coordinator-card { grid-template-columns: 1fr; text-align: center; }

  .coordinator-photo img { margin-inline: auto; }

  .hero-controls { display: none; }
}

@media (max-width: 640px) {
  .hero-frame {
    width: 100%;
    border-radius: 0;
  }

  .hero { padding-top: 0; }

  .copyright .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Internal pages ── */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(120, 89, 252, 0.06), transparent);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
  max-width: 20ch;
}

.page-hero p {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.page-content {
  padding-top: 0;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.prose {
  max-width: 42rem;
  color: var(--text-muted);
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-strong);
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
}

.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li { margin-bottom: 0.35rem; }

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--orange);
  background: rgba(120, 89, 252, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

.page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.page-split.reverse .page-split-media { order: -1; }

.page-split-media {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.page-split-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.page-split-cta {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.page-split-media img.media-portrait {
  aspect-ratio: 3 / 4;
}

.page-split-media img + img {
  margin-top: 1rem;
}

/* Perfil destacado (headmistress, etc.) */
.about-profile {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.about-profile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}

.about-profile h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.about-profile p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-profile-role {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.value-card h3 {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--purple);
}

.info-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.info-item strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

.info-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.level-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.level-badge.play { background: rgba(5, 195, 93, 0.15); color: var(--play); }
.level-badge.primary { background: rgba(255, 114, 18, 0.15); color: var(--primary-level); }
.level-badge.middle { background: rgba(243, 64, 60, 0.15); color: #c92724; }
.level-badge.antorchas { background: rgba(3, 137, 252, 0.12); color: #0266b8; }

.data-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: rgba(120, 89, 252, 0.06);
  color: var(--purple);
  font-weight: 600;
}

.data-table tr:last-child td { border-bottom: none; }

.academic-level-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 10rem;
}

.academic-level-cell img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.75rem;
}

.gallery-grid[data-count="1"] {
  grid-template-columns: minmax(0, 32rem);
}

.gallery-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 48rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.gallery-grid img:hover { transform: scale(1.02); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(120, 89, 252, 0.08);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card-body {
  padding: 1.15rem;
}

.team-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.team-card-body p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.team-card-roles {
  margin: 0 0 0.45rem !important;
  color: var(--text-strong) !important;
  font-weight: 600;
  font-size: 0.8125rem !important;
  text-align: left !important;
  hyphens: manual !important;
}

.team-card-formation {
  text-align: left !important;
  hyphens: manual !important;
}

.team-card-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(120, 89, 252, 0.12), rgba(5, 195, 93, 0.1));
  color: var(--text-strong);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.teachers-intro {
  max-width: 42rem;
  margin-bottom: 0.75rem;
}

.teachers-count {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--violet);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item-body {
  padding: 0 1.25rem 1.25rem;
}

.faq-item-body > p {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  line-height: 1.55;
}

.faq-item-body > p:last-of-type {
  margin-bottom: 0;
}

/* Pie de profundización: bloque contenido, no texto suelto */
.faq-deep {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--purple) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--purple) 14%, var(--line));
  border-radius: var(--radius-sm);
}

.faq-deep-title {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--purple);
}

.faq-deep-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-deep-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(43, 23, 72, 0.04);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.faq-deep-chips a::after {
  content: "→";
  font-weight: 500;
  opacity: 0.55;
  transition: transform var(--transition), opacity var(--transition);
}

.faq-deep-chips a:hover {
  border-color: color-mix(in srgb, var(--purple) 45%, var(--line));
  color: var(--purple);
  background: #fff;
}

.faq-deep-chips a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--purple-deep), var(--violet));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-info-card h3 {
  color: #fff;
  margin: 0 0 1.25rem;
}

.contact-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-card li {
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.contact-info-card a { color: var(--yellow); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(120, 89, 252, 0.12);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
  color: var(--text);
}

.form-group select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(120, 89, 252, 0.12);
}

.postulacion-form {
  max-width: 52rem;
  margin: 0 auto;
}

.postulacion-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section legend {
  padding: 0;
  margin-bottom: 1.25rem;
}

.form-section h2 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin: 0;
  color: var(--text-strong);
}

.form-section-note {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.form-grid .form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.form-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.form-radio input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--violet);
}

.form-actions {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.form-step {
  transition: opacity var(--transition), transform var(--transition);
}

.form-step.is-pending {
  opacity: 0.55;
}

.form-step.is-pending .form-section-body {
  display: none;
}

.form-step.is-pending legend h2::before {
  content: "○ ";
  color: var(--text-muted);
  font-weight: 400;
}

.form-step.is-active legend h2::before {
  content: "● ";
  color: var(--violet);
  font-weight: 400;
}

.form-step.is-complete.is-active legend h2::before {
  content: "✓ ";
  color: #2a9d6e;
}

.form-step.is-active .form-section-body {
  animation: formStepIn 0.35s ease;
}

.form-conditional[hidden] {
  display: none;
}

@keyframes formStepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.embed-frame {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.embed-frame--pdf {
  display: block;
  height: min(85vh, 980px);
  min-height: 720px;
}

.embed-pdf {
  margin: 0 0 1rem;
}

.embed-pdf-actions {
  margin: 0.75rem 0 0;
}

.full-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--surface);
}

/* ── Feature image treatment — profundidad + barra de acento a la derecha ── */
.page-split-media img,
.excellence-image img,
.about-profile img,
.full-image {
  --img-accent: var(--purple);
  box-shadow:
    6px 0 0 -1px var(--img-accent),
    0 10px 26px rgba(43, 23, 72, 0.10);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.page-split-media img:hover,
.excellence-image img:hover,
.about-profile img:hover,
.full-image:hover {
  transform: translateY(-4px);
  box-shadow:
    10px 0 0 -1px var(--img-accent),
    0 22px 46px rgba(43, 23, 72, 0.20);
}

@media (max-width: 640px) {
  .page-split-media img,
  .excellence-image img,
  .about-profile img,
  .full-image {
    box-shadow:
      5px 0 0 -1px var(--img-accent),
      0 8px 20px rgba(43, 23, 72, 0.10);
  }
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

/* ── Académico: identidad del nivel (lema + cita PEI) ── */
.level-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  margin: 2.5rem 0 0;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.level-identity-logo img {
  width: clamp(4.5rem, 12vw, 6.5rem);
  height: auto;
  display: block;
  object-fit: contain;
}

.level-identity-motto {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.01em;
}

.level-identity-concept {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.level-identity-body.prose blockquote {
  margin: 0.75rem 0 0;
}

.level-identity-body.prose blockquote cite {
  display: inline-block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .level-identity {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .level-identity-logo img {
    width: 4.75rem;
  }
}

/* ── Académico: grids compactos (plan de estudios / equipo) ── */
.level-section {
  margin-top: 2.75rem;
}

.level-section > .prose > h2:first-child,
.level-section > h2:first-child {
  margin-bottom: 0.5rem;
}

.level-section-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 40rem;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 0.5rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgba(43, 23, 72, 0.03);
}

.topic-card strong,
.topic-card span:first-child:last-child {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.3;
}

.topic-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  opacity: 0.78;
}

.topic-group {
  margin-top: 1.75rem;
}

.topic-group:first-of-type {
  margin-top: 0;
}

.topic-group h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: var(--purple);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.schedule-card {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.schedule-card strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 0.35rem;
}

.schedule-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
}

.level-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.team-card {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.team-card strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--purple);
  margin-bottom: 0.35rem;
}

.team-card span,
.team-card p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.4;
}

.team-card strong + span {
  font-weight: 500;
}

.team-card .team-note {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Hero secondary link ── */
.hero-link-secondary {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.hero-link-secondary:hover {
  color: #fff;
}

/* ── Home compact ── */
.hero-compact .hero-frame {
  height: clamp(300px, 48vh, 440px);
}

.hero-compact .hero-content {
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 32rem;
}

.hero-compact .hero-content h1 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.hero-compact .hero-tagline {
  font-size: clamp(0.875rem, 1.9vw, 1rem);
  margin-bottom: 1rem;
}

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 0.65rem 1.25rem;
  background: rgba(20, 8, 40, 0.72);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.8125rem;
}

.hero-stat strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--yellow);
}

.hero-stat span {
  opacity: 0.85;
}

.hero-compact .hero-content {
  padding-bottom: 3.25rem;
}

.hero-compact .hero-controls {
  bottom: 3.5rem;
}

.hero-compact .hero-dots {
  bottom: 3.75rem;
}

.portal-compact {
  padding: clamp(0.75rem, 2vw, 1rem) 0 clamp(2rem, 4vw, 2.5rem);
}

.portal-faith-banner {
  max-width: 52rem;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) auto;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  background: linear-gradient(135deg, rgba(120, 89, 252, 0.12), rgba(120, 89, 252, 0.05));
  border: 1px solid rgba(120, 89, 252, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 36px rgba(120, 89, 252, 0.08);
}

.portal-faith-banner p {
  margin: 0;
  font-size: clamp(1.025rem, 2.1vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-strong);
  font-weight: 500;
}

.portal-faith-banner strong {
  color: var(--purple);
  font-weight: 700;
}

.intro-lead-compact {
  max-width: 36rem;
  margin: 0 auto 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
}

.level-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.level-pills-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}

.level-pill em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.75rem;
}

.level-pill:hover {
  transform: translateY(-1px);
  color: #fff;
}

.level-pill.play {
  background: var(--play);
  box-shadow: 0 2px 10px rgba(5, 195, 93, 0.25);
}

.level-pill.primary {
  background: var(--primary-level);
  box-shadow: 0 2px 10px rgba(255, 114, 18, 0.25);
}

.level-pill.middle {
  background: var(--middle-level);
  box-shadow: 0 2px 10px rgba(243, 64, 60, 0.25);
}

.level-pill.antorchas {
  background: var(--antorchas);
  box-shadow: 0 2px 10px rgba(3, 137, 252, 0.25);
}

.bento-compact .bento-item {
  min-height: 112px;
  padding: 0.85rem 1rem;
}

.bento-compact .bento-content h3 {
  font-size: 1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.bento-compact .bento-label {
  font-size: 0.6875rem;
  margin-bottom: 0.15rem;
}

@media (min-width: 993px) {
  .bento-compact .bento-tall {
    grid-row: span 2;
    min-height: 0;
  }

  .bento-compact .bento-item {
    min-height: 118px;
  }
}

/* ── Portal home ── */
.portal-section {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.portal-section.portal-compact {
  padding-top: 0;
  padding-bottom: clamp(2rem, 4vw, 2.5rem);
}

.portal-section .intro-lead {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.portal-head {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.portal-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ── Bento grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.875rem;
}

/* Visibilidad por mundo — display:grid no debe anular hidden */
.bento-grid[hidden],
.hero[hidden],
[data-world-only][hidden] {
  display: none !important;
}

.bento-item {
  --tile-accent: var(--purple);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 168px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 5, 28, 0.96) 0%,
    rgba(12, 5, 28, 0.82) 28%,
    rgba(12, 5, 28, 0.45) 58%,
    rgba(12, 5, 28, 0.22) 100%
  );
  z-index: 1;
  transition: opacity var(--transition);
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow:
    0 0 0 2.5px var(--tile-accent),
    0 20px 48px rgba(12, 5, 28, 0.32);
  color: #fff;
}

.bento-item:hover::after {
  opacity: 0.92;
}

.bento-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.55s ease;
}

.bento-item:hover .bento-bg {
  transform: scale(1.05);
}

.bento-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

/* Destello de cristal limpio — barre la caja solo al pasar el mouse */
.bento-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 42%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.05) 58%,
    transparent 100%
  );
  transform: skewX(-18deg);
  z-index: 2;
  pointer-events: none;
  transition: left 0.75s var(--ease);
}

.bento-item:hover::before {
  left: 140%;
}

.bento-level-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.bento-content h3,
.bento-content .bento-label {
  color: #fff;
}

.bento-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.bento-content h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.bento-span-8 { grid-column: span 8; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-span-12 { grid-column: span 12; }

.bento-tall {
  min-height: 220px;
}

.bento-play::after {
  background: linear-gradient(
    to top,
    rgba(2, 80, 40, 0.96) 0%,
    rgba(5, 195, 93, 0.78) 35%,
    rgba(5, 195, 93, 0.35) 100%
  );
}

.bento-primary::after {
  background: linear-gradient(
    to top,
    rgba(180, 70, 0, 0.96) 0%,
    rgba(255, 114, 18, 0.78) 35%,
    rgba(255, 114, 18, 0.35) 100%
  );
}

.bento-middle::after {
  background: linear-gradient(
    to top,
    rgba(135, 24, 22, 0.96) 0%,
    rgba(243, 64, 60, 0.78) 35%,
    rgba(243, 64, 60, 0.35) 100%
  );
}

.bento-antorchas::after {
  background: linear-gradient(
    to top,
    rgba(1, 70, 140, 0.96) 0%,
    rgba(3, 137, 252, 0.78) 35%,
    rgba(3, 137, 252, 0.35) 100%
  );
}

.bento-faith::after {
  background: linear-gradient(
    to top,
    rgba(43, 23, 72, 0.96) 0%,
    rgba(120, 89, 252, 0.78) 35%,
    rgba(120, 89, 252, 0.35) 100%
  );
}

/* Color de acento por caja (borde en hover) */
.bento-play { --tile-accent: var(--play); }
.bento-primary { --tile-accent: var(--primary-level); }
.bento-middle { --tile-accent: var(--middle-level); }
.bento-antorchas { --tile-accent: var(--antorchas); }
.bento-faith { --tile-accent: var(--violet); }

/* ── Portal proof ── */
.portal-proof {
  padding-top: 0;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stats-bar .stat-item h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.25rem;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-bar .stat-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.featured-testimonial {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.featured-testimonial blockquote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  background: none;
  font-style: normal;
}

.featured-testimonial blockquote p {
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--text);
}

.featured-testimonial .testimonial-author {
  justify-content: center;
}

.portal-proof-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Portal event ── */
.portal-event .section-head {
  margin-bottom: 1.5rem;
}

.event-card-featured {
  max-width: 36rem;
}

.portal-event-link {
  margin-top: 1.25rem;
}

.apply-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}

.apply-banner-links .text-link {
  font-size: 0.9375rem;
}

/* ── Read more (internas) ── */
.read-more-section.is-collapsed .read-more-body {
  max-height: 17.5rem;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
}

.read-more-toggle {
  display: none;
  margin-top: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--purple);
}

.read-more-section.needs-read-more .read-more-toggle {
  display: inline-block;
}

/* ── Level finder ── */
.level-finder {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.level-finder-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.level-finder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.level-finder-select {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--text);
}

.level-finder-select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(120, 89, 252, 0.12);
}

/* ── CTA pull quote ── */
.apply-pull-quote {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.apply-pull-quote p {
  margin: 0 0 0.35rem;
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.95;
}

.apply-pull-quote cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.8;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 0.75rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}

.breadcrumbs a {
  color: var(--purple);
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb-muted {
  color: var(--text-muted);
}

.breadcrumb-sep {
  color: var(--line);
  user-select: none;
}

/* ── WhatsApp float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: auto;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg {
  width: 2.35rem;
  height: 2.35rem;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* ── Journey steps ── */
.journey-section {
  padding-top: 0;
}

.journey-section .container {
  width: min(1320px, 100% - 2.5rem);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: journey;
}

.journey-step {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-width: 0;
}

.journey-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.journey-step h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.journey-step p {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
}

.journey-step .text-link {
  display: inline-block;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-top: 0.15rem;
}

.journey-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.35rem;
}

.journey-step-links .text-link {
  margin: 0;
}

.journey-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(120, 89, 252, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.journey-step-conditional {
  border-style: dashed;
}

/* ── FAQ inline ── */
.faq-list-compact {
  max-width: 40rem;
  margin-inline: auto;
}

.faq-inline-more {
  text-align: center;
  margin-top: 1.5rem;
}

/* ── Por qué closing (FAQ + CTA) ── */
.por-que-closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.por-que-closing-faq .section-head {
  margin-bottom: 1.5rem;
}

.por-que-closing-faq .faq-list-compact {
  max-width: none;
  margin: 0;
}

.por-que-closing-faq .faq-inline-more {
  text-align: left;
  margin-top: 1.25rem;
}

.por-que-closing-cta {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: linear-gradient(145deg, rgba(120, 89, 252, 0.08), rgba(120, 89, 252, 0.05));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.por-que-closing-cta h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.por-que-closing-cta p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.por-que-closing-cta .center-cta-actions {
  justify-content: flex-start;
}

/* Por qué — espaciado compacto entre contenido y cierre */
.page-content.por-que-content {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

body[data-page="por-que"] .page-split-media {
  position: static;
}

.section.por-que-closing {
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.center-cta {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.center-cta h2 {
  margin-bottom: 0.75rem;
}

.center-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.center-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Video welcome ── */
.video-welcome-section {
  padding-top: 0;
}

.video-welcome {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.video-welcome-text h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.video-welcome-text p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
}

.video-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Map embed ── */
.map-embed-wrap {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.map-embed-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.map-embed {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ── Gallery lightbox ── */
.gallery-item {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 20, 0.92);
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 992px) {
  .bento-span-8,
  .bento-span-6,
  .bento-span-4,
  .bento-span-12 {
    grid-column: span 6;
  }

  .bento-compact .bento-tall {
    grid-row: span 1;
  }

  .page-split,
  .contact-layout { grid-template-columns: 1fr; }

  .page-split-media {
    position: static;
  }

  .about-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-profile img {
    max-width: 280px;
    margin-inline: auto;
  }

  .page-split.reverse .page-split-media { order: 0; }

  .value-cards { grid-template-columns: repeat(2, 1fr); }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid[data-count="2"] { max-width: none; }

  .journey-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .por-que-closing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-welcome {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .value-cards,
  .gallery-grid,
  .gallery-grid[data-count="1"],
  .gallery-grid[data-count="2"] {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .topic-grid,
  .team-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-8,
  .bento-span-6,
  .bento-span-4,
  .bento-span-12 {
    grid-column: span 12;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    left: auto;
    width: 4rem;
    height: 4rem;
  }

  .whatsapp-float svg {
    width: 2.1rem;
    height: 2.1rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: calc(1rem + 4rem + 0.65rem);
  }

  .hero-compact .hero-frame {
    height: clamp(280px, 44vh, 380px);
  }

  .hero-stats {
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
  }

  .hero-stat {
    font-size: 0.75rem;
  }

  .hero-stat strong {
    font-size: 0.9375rem;
  }

  .level-pills {
    gap: 0.4rem;
  }

  .level-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .bento-compact .bento-item {
    min-height: 96px;
  }
}

/* ══════════════════════════════════════════════════════════════
   Sistema de tres mundos — Play / Primary + Middle / Antorchas
   ══════════════════════════════════════════════════════════════ */

/* ── World switch (header) ── */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.world-switch {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.world-switch-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

.world-switch-track {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--line);
  gap: 2px;
}

.world-switch-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.world-switch-btn.is-active {
  background: var(--surface);
  color: var(--purple-deep);
  box-shadow: 0 2px 8px rgba(43, 23, 72, 0.12);
}

.world-switch-btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.mobile-world-switch {
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.world-switch-select-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
}

.world-switch-select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ── World picker modal (home) ── */
.world-picker {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(20, 8, 40, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.world-picker[hidden] {
  display: none;
}

body.world-picker-open {
  overflow: hidden;
}

.world-picker-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(43, 23, 72, 0.25);
}

.world-picker-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--line);
  color: var(--text-strong);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1;
}

.world-picker-close:hover {
  background: rgba(120, 89, 252, 0.15);
}

.world-picker-head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding-right: 2.5rem;
}

.world-picker-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.5rem;
}

.world-picker-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 28rem;
  margin-inline: auto;
}

.world-picker-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.world-picker-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 0;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.world-picker-card:hover,
.world-picker-card:focus-visible {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(120, 89, 252, 0.18);
  outline: none;
}

.world-picker-logo-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  min-height: clamp(120px, 22vw, 160px);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.world-picker-logos img {
  height: clamp(64px, 12vw, 88px);
  width: auto;
  max-width: 46%;
  object-fit: contain;
}

.world-picker-logos-single img {
  max-width: min(280px, 85%);
  height: clamp(72px, 14vw, 96px);
}

.world-picker-card-text {
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2vw, 1.25rem) clamp(1.15rem, 2.5vw, 1.5rem);
}

.world-picker-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

.world-picker-levels {
  margin: 0;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.world-picker-card-antorchas {
  background: var(--bg);
}

.world-picker-card-antorchas .world-picker-logo-zone {
  background: #fff;
}

.world-picker-card-antorchas:hover {
  border-color: var(--brand-blue);
}

.world-picker-card-playschool:hover {
  border-color: var(--brand-green);
}

/* ── Play School world theme ── */
[data-world="playschool"] {
  --bg: #f4fbf6;
  --surface: #ffffff;
  --text: #35483d;
  --text-strong: #10291b;
  --text-muted: #526b5c;
  --line: rgba(5, 132, 63, 0.13);
  --purple: #087a3e;
  --purple-deep: #075e33;
  --violet: #0a9250;
  --focus-ring: #087a3e;
}

[data-world="playschool"] body {
  background:
    radial-gradient(circle at 8% 12%, rgba(254, 186, 34, 0.10), transparent 22rem),
    radial-gradient(circle at 92% 35%, rgba(5, 195, 93, 0.09), transparent 25rem),
    var(--bg);
}

[data-world="playschool"] .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}

[data-world="playschool"] .nav-link:hover,
[data-world="playschool"] .nav-link.active {
  color: var(--purple-deep);
  background: rgba(5, 195, 93, 0.09);
}

[data-world="playschool"] .nav-cta,
[data-world="playschool"] .btn {
  background: var(--purple);
  color: #fff;
}

[data-world="playschool"] .nav-cta:hover,
[data-world="playschool"] .btn:hover {
  background: var(--purple-deep);
}

[data-world="playschool"] .btn-accent {
  background: var(--brand-yellow);
  color: #372500;
}

[data-world="playschool"] .btn-accent:hover {
  background: #e6a611;
  color: #241800;
}

[data-world="playschool"] .section-label {
  color: var(--purple);
}

[data-world="playschool"] .hero-world-playschool .hero-frame {
  background: var(--purple-deep);
}

[data-world="playschool"] .hero-world-playschool .hero-slide::after {
  background: linear-gradient(105deg, rgba(7, 74, 40, 0.88) 0%, rgba(7, 94, 51, 0.55) 54%, rgba(7, 94, 51, 0.20) 100%);
}

[data-world="playschool"] .hero-world-playschool .hero-eyebrow,
[data-world="playschool"] .hero-world-playschool .hero-stat strong {
  color: var(--brand-yellow);
}

[data-world="playschool"] .portal-faith-banner {
  border-color: rgba(5, 195, 93, 0.22);
  background: linear-gradient(135deg, #fff 0%, #f1fff6 100%);
}

[data-world="playschool"] .portal-faith-banner strong {
  color: var(--purple-deep);
}

[data-world="playschool"] .bento-playschool-grid .bento-label {
  color: #fff3b5;
}

[data-world="playschool"] .footer {
  background: #0c3421;
}

[data-world="playschool"] .footer-highlight,
[data-world="playschool"] .footer a:hover {
  color: var(--brand-yellow);
}

/* ── Play School — efectos lúdicos (manchas + menú juguetón) ── */
.play-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.play-blob {
  position: absolute;
  border-radius: 46% 54% 61% 39% / 43% 47% 53% 57%;
  background: radial-gradient(
    circle at 34% 32%,
    var(--blob-color, var(--brand-green)) 0%,
    var(--blob-color, var(--brand-green)) 42%,
    transparent 72%
  );
  opacity: 0;
  filter: blur(3px);
  mix-blend-mode: multiply;
  animation-name: playBlob;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes playBlob {
  0% { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(-8deg); }
  14% { opacity: var(--peak, 0.5); transform: translate(0, 0) scale(1) rotate(0deg); }
  55% { opacity: calc(var(--peak, 0.5) * 0.65); transform: translate(8px, -10px) scale(1.18) rotate(8deg); }
  100% { opacity: 0; transform: translate(14px, -18px) scale(1.4) rotate(14deg); }
}

/* Panel claro para el texto: las manchas quedan de fondo y no estorban la lectura. */
[data-world="playschool"] .prose {
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(8, 122, 62, 0.07);
  backdrop-filter: blur(2px);
}

[data-world="playschool"] .play-word {
  display: inline-block;
  transition: transform 0.25s var(--ease);
  animation: playWordColor var(--dur, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}

/* Ciclo de color por palabra. El delay negativo aleatorio hace que cada
   palabra arranque en un color distinto, así nunca se ven todas iguales. */
@keyframes playWordColor {
  0%   { color: var(--brand-green); }
  20%  { color: var(--brand-orange); }
  40%  { color: var(--brand-pink); }
  60%  { color: var(--brand-violet-light); }
  80%  { color: var(--purple-deep); }
  100% { color: var(--brand-green); }
}

[data-world="playschool"] a:hover > .play-word {
  animation-play-state: paused;
  transform: translateY(-3px) rotate(-3deg);
  color: var(--purple-deep);
}

@media (prefers-reduced-motion: reduce) {
  .play-blob,
  [data-world="playschool"] .play-word {
    animation: none !important;
  }
}

/* ── Antorchas world theme ── */
[data-world="antorchas"] {
  --bg: #1a0f2e;
  --surface: #2b1748;
  --text: rgba(255, 255, 255, 0.82);
  --text-strong: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --purple: var(--brand-violet-light);
  --focus-ring: var(--brand-yellow);
}

[data-world="antorchas"] body {
  background: var(--bg);
  color: var(--text);
}

[data-world="antorchas"] h1,
[data-world="antorchas"] h2,
[data-world="antorchas"] h3,
[data-world="antorchas"] h4 {
  color: var(--text-strong);
}

[data-world="antorchas"] .site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(43, 23, 72, 0.08);
}

[data-world="antorchas"] .site-header.scrolled {
  box-shadow: 0 4px 24px rgba(43, 23, 72, 0.08);
}

[data-world="antorchas"] .nav-link {
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .nav-link:hover,
[data-world="antorchas"] .nav-link.active {
  color: var(--brand-orange);
  background: rgba(255, 114, 18, 0.08);
}

[data-world="antorchas"] .nav-cta {
  background: var(--brand-green) !important;
  color: #fff !important;
}

[data-world="antorchas"] .nav-cta:hover {
  background: #04a84f !important;
}

[data-world="antorchas"] .social-links a {
  background: rgba(43, 23, 72, 0.08);
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .social-links a:hover {
  background: var(--brand-orange);
  color: #fff;
}

[data-world="antorchas"] .world-switch-label {
  color: rgba(43, 23, 72, 0.55);
}

[data-world="antorchas"] .world-switch-track {
  background: rgba(43, 23, 72, 0.08);
}

[data-world="antorchas"] .world-switch-btn {
  color: rgba(43, 23, 72, 0.55);
}

[data-world="antorchas"] .world-switch-btn.is-active {
  background: var(--brand-violet-dark);
  color: #fff;
}

[data-world="antorchas"] .dropdown {
  background: #fff;
  border-color: rgba(43, 23, 72, 0.08);
}

[data-world="antorchas"] .dropdown a {
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .dropdown a:hover,
[data-world="antorchas"] .dropdown a.active {
  color: var(--brand-orange);
  background: rgba(255, 114, 18, 0.06);
}

[data-world="antorchas"] .breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

[data-world="antorchas"] .breadcrumbs a {
  color: var(--brand-yellow);
}

[data-world="antorchas"] .breadcrumbs span,
[data-world="antorchas"] .breadcrumb-muted {
  color: var(--text-muted);
}

[data-world="antorchas"] .section-label {
  color: var(--brand-green);
}

[data-world="antorchas"] .btn-accent {
  background: var(--brand-orange);
  color: #fff;
}

[data-world="antorchas"] .btn-accent:hover {
  background: #e8650f;
}

[data-world="antorchas"] .btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

[data-world="antorchas"] .footer {
  background: #fff;
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .footer h3 {
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .footer-project-label {
  color: rgba(43, 23, 72, 0.65);
}

[data-world="antorchas"] .footer-brand-word {
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .footer-brand-sub {
  color: rgba(43, 23, 72, 0.75);
}

[data-world="antorchas"] .footer a:hover {
  color: var(--brand-orange);
}

[data-world="antorchas"] .footer-highlight {
  color: var(--brand-green);
}

[data-world="antorchas"] .footer .social-links a {
  background: rgba(43, 23, 72, 0.08);
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .footer .social-links a:hover {
  background: var(--brand-green);
  color: #fff;
}

[data-world="antorchas"] .footer-social-lead {
  color: rgba(43, 23, 72, 0.65);
  opacity: 1;
}

[data-world="antorchas"] .footer-social-link {
  background: rgba(43, 23, 72, 0.05);
  border-color: rgba(43, 23, 72, 0.12);
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .footer-social-link:hover {
  background: rgba(43, 23, 72, 0.09);
  border-color: var(--brand-orange);
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .footer-social-icon {
  background: rgba(43, 23, 72, 0.1);
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .footer-social-text strong {
  color: rgba(43, 23, 72, 0.65);
  opacity: 1;
}

[data-world="antorchas"] .footer-social-text span {
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .copyright {
  border-top-color: rgba(43, 23, 72, 0.08);
  color: rgba(43, 23, 72, 0.65);
}

[data-world="antorchas"] .portal-faith-banner {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

[data-world="antorchas"] .portal-faith-banner strong {
  color: var(--brand-yellow);
}

[data-world="antorchas"] .bento-item {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-world="antorchas"] .bento-label {
  color: var(--brand-green);
}

[data-world="antorchas"] .page-hero {
  background: linear-gradient(135deg, var(--surface) 0%, #1a0f2e 100%);
}

[data-world="antorchas"] .page-content {
  background: transparent;
}

[data-world="antorchas"] .faq-item {
  background: var(--surface);
  border-color: var(--line);
}

[data-world="antorchas"] .faq-item summary {
  color: var(--text-strong);
}

[data-world="antorchas"] .faq-deep {
  background: color-mix(in srgb, var(--brand-yellow) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--brand-yellow) 22%, var(--line));
}

[data-world="antorchas"] .faq-deep-title {
  color: var(--brand-yellow);
}

[data-world="antorchas"] .faq-deep-chips a:hover {
  border-color: color-mix(in srgb, var(--brand-yellow) 50%, var(--line));
  color: var(--brand-yellow);
}

[data-world="antorchas"] .text-link {
  color: var(--brand-yellow);
}

[data-world="antorchas"] .text-link:hover {
  color: var(--brand-orange);
}

[data-world="antorchas"] .hero-world-antorchas .hero-frame {
  background: var(--brand-violet-dark);
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.5);
}

[data-world="antorchas"] .hero-world-antorchas .hero-slide::after {
  background: linear-gradient(135deg, rgba(43, 23, 72, 0.88) 0%, rgba(26, 15, 46, 0.75) 100%);
}

[data-world="antorchas"] .hero-world-antorchas .hero-stat strong {
  color: var(--brand-green);
}

[data-world="antorchas"] .hero-world-antorchas .hero-eyebrow {
  color: var(--brand-yellow);
}

[data-world="antorchas"] .mobile-menu-panel {
  background: #fff;
}

[data-world="antorchas"] .mobile-nav a {
  color: var(--brand-violet-dark);
}

[data-world="antorchas"] .whatsapp-float {
  background: var(--brand-green);
}

[data-world="antorchas"] .page-split-media img,
[data-world="antorchas"] .excellence-image img,
[data-world="antorchas"] .about-profile img,
[data-world="antorchas"] .full-image {
  --img-accent: var(--brand-yellow);
  box-shadow:
    6px 0 0 -1px var(--img-accent),
    0 12px 30px rgba(0, 0, 0, 0.4);
}

[data-world="antorchas"] .page-split-media img:hover,
[data-world="antorchas"] .excellence-image img:hover,
[data-world="antorchas"] .about-profile img:hover,
[data-world="antorchas"] .full-image:hover {
  box-shadow:
    10px 0 0 -1px var(--img-accent),
    0 24px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  .navbar-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .navbar-logo img,
  .navbar-logo--dual img {
    height: 56px;
  }

  .world-switch-label {
    display: none;
  }

  .world-picker-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .world-picker-logo-zone {
    min-height: 110px;
  }

  .world-picker-logos img {
    max-width: 44%;
    height: 64px;
  }

  .world-picker-logos-single img {
    height: 72px;
  }
}

@media (max-width: 768px) {
  .world-switch-btn {
    font-size: 0.625rem;
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 640px) {
  .world-picker {
    padding: 0.75rem;
  }

  .world-picker-panel {
    max-height: calc(100vh - 1.5rem);
    padding: 1.25rem;
  }

  .world-picker-head {
    margin-bottom: 1rem;
  }

  .world-picker-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .world-picker-card {
    display: grid;
    grid-template-columns: minmax(105px, 34%) 1fr;
    align-items: stretch;
  }

  .world-picker-logo-zone {
    min-height: 104px;
    padding: 0.75rem;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .world-picker-logos img,
  .world-picker-logos-single img {
    height: 62px;
    max-width: 46%;
  }

  .world-picker-logos-single img {
    max-width: 92%;
  }

  .world-picker-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 0.85rem 1rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   DEMO — Estrella Bethel (logo común del conglomerado)
   Cinco ubicaciones activas a la vez para elegir. Todas decorativas.
   Para desactivar una variante, comenta su bloque.
   Asset: ../img/mundos/comun/logo-bethel.png
   ══════════════════════════════════════════════════════════════ */

:root {
  --star-logo: url("../img/mundos/comun/logo-bethel.a725a1375c5f.png");
}

/* A · Footer — estrella gigante recortada abajo-derecha */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: clamp(220px, 30vw, 440px);
  aspect-ratio: 1;
  background: var(--star-logo) no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.footer-grid,
.copyright {
  position: relative;
  z-index: 1;
}

/* B · Header — estrella recortada arriba-derecha (recorte por el borde superior) */
.site-header {
  position: sticky; /* ya lo era; se mantiene */
}

.site-header::before {
  content: "";
  position: absolute;
  top: -78px;
  left: 5%;
  width: 190px;
  height: 190px;
  background: var(--star-logo) no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.site-header .container {
  position: relative;
  z-index: 1;
}

/* C · Hero (home) — estrella en la esquina, recortada por el frame */
.hero-frame::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: clamp(160px, 22vw, 280px);
  aspect-ratio: 1;
  background: var(--star-logo) no-repeat center / contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 4;
}

/* D · Sello entre "Bethel" y "Group" en el footer (ver .footer-brand-star) */

/* E · Marca de agua del selector de mundo (home, primera visita) */
.world-picker-panel {
  position: relative;
}

.world-picker-panel::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: clamp(200px, 26vw, 340px);
  aspect-ratio: 1;
  background: var(--star-logo) no-repeat center / contain;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.world-picker-head,
.world-picker-cards {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .site-header::before {
    display: none; /* en móvil el header se reorganiza; evitamos ruido */
  }
}
