/* ============================================================
   HOJA DE ESTILOS — Asociación Juvenil Cultural Arzolla
   Rediseño visual completo v2
============================================================ */

/* Google Fonts — Playfair Display + Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  /* ── Paleta pastel: morado, azul y amarillo ── */
  --primary:        #7C6FC4;          /* morado pastel medio */
  --primary-dark:   #5E52A8;          /* morado pastel oscuro */
  --primary-light:  #B0A8E0;          /* morado pastel claro */
  --primary-ghost:  rgba(124,111,196,0.09);
  --primary-pale:   rgba(124,111,196,0.05);

  --accent:         #5B9BD5;          /* azul pastel */
  --accent-light:   #E3EEF8;          /* azul pastel muy suave */
  --accent-dark:    #3A7AB8;          /* azul pastel oscuro */

  --yellow:         #F5C842;          /* amarillo pastel cálido */
  --yellow-light:   #FDF3C0;          /* amarillo muy suave */
  --yellow-dark:    #C9A010;          /* amarillo oscuro para texto */

  --surface:        #FFFFFF;
  --bg:             #FAFAFF;          /* blanco con toque lavanda */
  --bg-alt:         #F3F2FA;          /* lavanda muy suave */
  --bg-deep:        #E8E6F5;          /* lavanda más marcada */

  --text:           #1E1B2E;          /* casi negro con tinte morado */
  --text-soft:      #4A476B;          /* morado grisáceo */
  --text-muted:     #8E8BAB;          /* lila grisáceo */
  --text-white:     #FFFFFF;

  --border:         #DDD9F0;
  --border-hover:   #C4BFE4;

  /* ── Tipografía ── */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font:         'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;

  /* ── Espaciado ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Bordes y sombras ── */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(30,27,46,0.05);
  --shadow-sm: 0 2px 6px rgba(30,27,46,0.07), 0 1px 2px rgba(30,27,46,0.04);
  --shadow:    0 4px 12px rgba(30,27,46,0.07), 0 2px 4px rgba(30,27,46,0.04);
  --shadow-md: 0 12px 32px rgba(30,27,46,0.09), 0 4px 12px rgba(30,27,46,0.05);
  --shadow-lg: 0 24px 48px rgba(30,27,46,0.11), 0 8px 20px rgba(30,27,46,0.06);

  /* ── Transiciones ── */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 220ms;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ============================================================
   LAYOUT
============================================================ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--space-8); }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease);
}

body.home-page .navbar { background: #F0EDE8; box-shadow: none; border-bottom: none; }
body.home-page .navbar.scrolled {
  background: #F0EDE8;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

body:not(.home-page) .navbar {
  background: transparent;
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease);
}
body:not(.home-page) .navbar.scrolled {
  background: rgba(250, 250, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(30,27,46,0.06);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px var(--space-8);
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  cursor: default;
}

.nav-logo-img {
  height: 42px; width: auto;
  transition: filter var(--duration) var(--ease);
  display: none;
}

body.home-page .nav-logo-img { filter: none; }
body.home-page .navbar.scrolled .nav-logo-img { filter: none; }
body:not(.home-page) .nav-logo-img { filter: none; }

/* ============================================================
   LOGO TEASER — ¿Qué será? Muy pronto…
============================================================ */
.nav-logo-teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 12px;
}

.nav-logo-teaser-mark {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  position: relative;
  z-index: 2;
  animation: teaser-mark-bounce 4s ease-in-out infinite;
}

.nav-logo-teaser-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
}

.nav-logo-teaser-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 1px;
  white-space: nowrap;
}

/* Destellos/estrellas */
.nav-logo-teaser::before,
.nav-logo-teaser::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0;
  animation: teaser-sparkle 3s ease-in-out infinite;
}

.nav-logo-teaser::before {
  top: -2px;
  right: -4px;
  animation-delay: 0s;
}

.nav-logo-teaser::after {
  bottom: -2px;
  left: -4px;
  animation-delay: 1.5s;
}

@keyframes teaser-mark-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes teaser-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1); }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .nav-logo-teaser-mark,
  .nav-logo-teaser::before,
  .nav-logo-teaser::after {
    animation: none;
  }
  .nav-logo-teaser-mark {
    transform: none;
  }
  .nav-logo-teaser::before,
  .nav-logo-teaser::after {
    opacity: 0.5;
    transform: scale(1);
  }
}

/* Responsive móvil */
@media (max-width: 600px) {
  .nav-logo-teaser-mark { font-size: 1.5rem; }
  .nav-logo-teaser-sub { font-size: 0.6rem; }
  .nav-logo-teaser-tag { font-size: 0.54rem; }
}

.nav-menu { display: flex; gap: var(--space-1); align-items: center; }

.nav-link {
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  white-space: nowrap;
}

body.home-page .nav-link { color: var(--text); }
body.home-page .nav-link:hover { background: var(--primary-ghost); color: var(--primary); }
body.home-page .nav-link.active {
  background: var(--primary-ghost);
  color: var(--primary);
  border-radius: var(--radius-sm);
}

body.home-page .navbar.scrolled .nav-link { color: var(--text); }
body.home-page .navbar.scrolled .nav-link:hover { background: var(--primary-ghost); color: var(--primary); }
body.home-page .navbar.scrolled .nav-link.active { background: var(--primary-ghost); color: var(--primary); }

body:not(.home-page) .nav-link { color: var(--text); }
body:not(.home-page) .nav-link:hover { background: var(--primary-ghost); color: var(--primary); }
body:not(.home-page) .nav-link.active { background: var(--primary-ghost); color: var(--primary); }

/* Hamburger — oculto en escritorio, visible solo en móvil */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: var(--space-2);
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}

.hamburger {
  display: block; width: 22px; height: 2px;
  border-radius: 1px; position: relative;
  transition: background var(--duration) var(--ease);
}
body.home-page .hamburger { background: var(--text); }
body.home-page .navbar.scrolled .hamburger { background: var(--text); }
body:not(.home-page) .hamburger { background: var(--text); }

.hamburger::before, .hamburger::after {
  content: ''; position: absolute; width: 22px; height: 2px;
  border-radius: 1px;
  transition: transform var(--duration) var(--ease);
}
body.home-page .hamburger::before,
body.home-page .hamburger::after { background: var(--text); }
body.home-page .navbar.scrolled .hamburger::before,
body.home-page .navbar.scrolled .hamburger::after { background: var(--text); }
body:not(.home-page) .hamburger::before,
body:not(.home-page) .hamburger::after { background: var(--text); }

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* ============================================================
   HOME HERO — pantalla completa
============================================================ */
.home-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 15, 40, 0.28) 0%,
    rgba(20, 15, 40, 0.15) 40%,
    rgba(20, 15, 40, 0.65) 100%
  );
  z-index: 1;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(var(--space-8), 6vw, 80px) var(--space-12) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.home-hero-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-5);
  padding-top: 0;
}

.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 20px rgba(20,15,40,0.3);
}

.home-hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: var(--space-8);
  text-align: right;
}

.home-hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,111,196,0.4);
  padding: 0.85rem var(--space-8);
  font-size: var(--text-base);
}
.btn-hero-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 28px rgba(124,111,196,0.5);
}

.btn-hero-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  padding: 0.85rem var(--space-8);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
}

/* Indicador de scroll */
.home-hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 2;
}
.home-hero-scroll span {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7) translateY(-4px); }
  50%       { opacity: 1;   transform: scaleY(1)   translateY(4px); }
}

/* ============================================================
   HOME MOSAICO EDITORIAL
============================================================ */
.home-mosaic-section {
  background: var(--bg);
  padding: var(--space-16) 0 var(--space-20);
}

.home-mosaic-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-6);
}

.home-mosaic-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: var(--space-3);
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.home-mosaic-item {
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}
.home-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.home-mosaic-item:hover img { transform: scale(1.04); }

/* Foto alta: ocupa 2 filas en columna 1 */
.home-mosaic-item--tall {
  grid-column: 1;
  grid-row: 1 / 3;
}
/* Foto ancha: ocupa 2 columnas en fila 2 */
.home-mosaic-item--wide {
  grid-column: 2 / 4;
  grid-row: 2;
}

.home-mosaic-caption {
  display: none;
}
.home-mosaic-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color var(--duration) var(--ease);
}
.home-mosaic-link:hover { color: var(--primary-dark); }

/* ============================================================
   HOME PRESENTACION
============================================================ */
.home-about-section {
  background: var(--bg);
  padding: var(--space-20) var(--space-6);
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.home-about-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-4);
}

.home-about-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.home-about-text p {
  font-size: var(--text-base);
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.home-about-btn { display: inline-flex; }

.home-about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.home-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.home-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.home-stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* ============================================================
   PAGE BANNER
============================================================ */
.page-banner {
  padding: calc(88px + var(--space-16)) var(--space-8) var(--space-16);
  text-align: center;
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 120%, rgba(124,111,196,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 90% -10%, rgba(91,155,213,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), var(--primary), var(--primary-light), transparent);
  opacity: 0.5;
}

.page-banner h1, .page-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
}
.page-banner h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
}

/* ============================================================
   SECCIONES
============================================================ */
.section { padding: var(--space-20) var(--space-6); }
.section-light { background: var(--surface); }
.section-alt   { background: var(--bg-alt); }
.section:first-of-type { padding-top: var(--space-16); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-6);
  font-size: var(--text-lg);
  color: var(--text-soft);
  line-height: 1.8;
}
.section-intro + .section-intro {
  margin-top: calc(var(--space-5) * -1 + var(--space-6));
}

/* ── Decorador de encabezado de sección ── */
.section-header::before,
.section > .container > .section-intro:first-child::before {
  display: none;
}

/* ============================================================
   BOTONES
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease),
              color var(--duration) var(--ease);
  text-align: center;
  line-height: 1.5;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 3px 12px rgba(124,111,196,0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(124,111,196,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}
.btn-ghost:hover { background: var(--primary-ghost); color: var(--primary); }

.link-correo {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color var(--duration) var(--ease);
}
.link-correo:hover { color: var(--primary-dark); }

/* ============================================================
   TARJETAS — sistema unificado
============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 300ms var(--ease),
              box-shadow 300ms var(--ease),
              border-color 300ms var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.card-body { padding: var(--space-6); }

.card-icon {
  font-size: 2.5rem;
  display: block;
  text-align: center;
  margin-bottom: var(--space-3);
  line-height: 1;
}
.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.card p {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.65;
}

/* Valor cards con foto */
.valor-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.valor-card .valor-icon {
  font-size: 1.75rem;
  display: inline-block;
  margin-bottom: var(--space-2);
}

/* Actividad cards */
.actividad-card { text-align: center; }
.actividad-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: var(--space-4);
  line-height: 1;
}

/* ============================================================
   ALIASES — compatibilidad con clases existentes del HTML
============================================================ */
.section-blue, .section-yellow { background: var(--bg-alt); }
.section-pastel { background: var(--bg-alt); }

.valores-grid, .actividades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.valor-card, .actividad-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 300ms var(--ease),
              box-shadow 300ms var(--ease),
              border-color 300ms var(--ease);
  text-align: center;
}
.valor-card:hover, .actividad-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.valor-card-body { padding: var(--space-6) var(--space-6) var(--space-7); }
.card-body { padding: var(--space-6); }

.actividad-card {
  padding: var(--space-8) var(--space-6) var(--space-7);
}

.valor-card h3, .actividad-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.valor-card p, .actividad-card p {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.65;
}

/* Línea de acento en la parte superior de las tarjetas de valor */
.valor-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.valor-card:hover::before { opacity: 1; }

/* ============================================================
   EQUIPO
============================================================ */
.equipo-foto {
  max-width: 820px;
  margin: var(--space-12) auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}
.equipo-foto img { width: 100%; height: auto; display: block; }

/* ============================================================
   GALERÍA
============================================================ */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.galeria-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
  cursor: pointer;
}
.galeria-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }

/* Álbumes */
.albumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.album-card {
  cursor: pointer;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.album-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.album-cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.album-info {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--border);
}
.album-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
}
.album-info p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
  text-align: center;
}
.album-lock-icon { font-size: 0.85rem; opacity: 0.5; }

.album-view-hidden { display: none; }
.album-view-visible { display: block; }

.btn-volver {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: all var(--duration) var(--ease);
  margin-bottom: var(--space-8);
}
.btn-volver:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-ghost); }

.album-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-10);
  letter-spacing: -0.02em;
}

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(28,25,22,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 300ms var(--ease);
}
.modal-overlay.visible { opacity: 1; visibility: visible; }

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  max-width: 400px; width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transform: scale(0.95) translateY(12px);
  transition: transform 300ms var(--ease);
}
.modal-overlay.visible .modal-content { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  background: var(--bg); border: 1px solid var(--border);
  font-size: 1.2rem; cursor: pointer;
  color: var(--text-muted);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.modal-close:hover { color: var(--text); background: var(--bg-deep); }

.modal-icon { font-size: 2.5rem; margin-bottom: var(--space-4); }
.modal-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.modal-desc {
  font-size: var(--text-sm);
  color: var(--text-soft);
  margin-bottom: var(--space-6);
  line-height: 1.65;
}

.input-group {
  display: flex; gap: var(--space-3);
  flex-wrap: wrap; justify-content: center;
}
.input-group input[type="password"] {
  flex: 1; min-width: 160px;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  background: var(--bg);
  color: var(--text);
}
.input-group input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}
.input-group input[type="password"]::placeholder { color: var(--text-muted); }

.modal-error {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: #FEF2F2;
  color: #C62828;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #1E1B2E;
  color: var(--text-white);
  padding: var(--space-16) var(--space-6) var(--space-8);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--primary), var(--primary-light), var(--yellow));
}

.footer-contacto {
  display: flex; justify-content: center; align-items: flex-start;
  gap: var(--space-12); flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.footer-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}
.footer-item span {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.footer-item a {
  color: rgba(255,255,255,0.88);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}
.footer-item a:hover { color: var(--yellow-light); text-decoration-color: var(--yellow-light); }
.footer-item p { line-height: 1.6; }

.redes-sociales-footer { display: flex; gap: var(--space-3); }
.redes-sociales-footer a {
  color: rgba(255,255,255,0.55);
  transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
  display: inline-flex;
}
.redes-sociales-footer a:hover { color: var(--primary-light); transform: translateY(-2px); opacity: 1; }

.footer-copyright {
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE: TABLET
============================================================ */
@media (max-width: 768px) {
  .container { padding-left: var(--space-5); padding-right: var(--space-5); }
  .nav-container { padding: 14px var(--space-5); }

  /* Home hero */
  .home-hero { max-height: 700px; }
  .home-hero-content { padding: 0 var(--space-6) var(--space-10); }
  .home-hero-eyebrow { margin-bottom: var(--space-4); }
  .home-mosaic-header { padding: 0 var(--space-5); }
  .home-mosaic-grid { border-radius: 0; }
  .home-hero-scroll { display: none; }

  /* Mosaico */
  .home-mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
  }
  .home-mosaic-item--tall { grid-column: 1; grid-row: 1 / 3; }
  .home-mosaic-item--wide { grid-column: 2; grid-row: 2; }

  /* Presentación */
  .home-about-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .home-about-cards { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-8);
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform 400ms var(--ease);
    z-index: 999;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-lg);
    text-align: center;
    width: 100%;
  }

  .section { padding: var(--space-14) var(--space-5); }
  .section-intro { font-size: var(--text-base); }

  .card-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }

  .footer-contacto { flex-direction: column; align-items: center; gap: var(--space-6); }
  .input-group { flex-direction: column; align-items: stretch; }
  .input-group input[type="password"] { min-width: auto; }

  .page-banner { padding: calc(68px + var(--space-10)) var(--space-5) var(--space-10); }

  .valores-grid, .actividades-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
  }
}

@media (max-width: 480px) {
  .home-hero { min-height: 480px; max-height: 600px; }
  .home-hero-content { padding: 0 var(--space-5) var(--space-8); }
  .home-hero-eyebrow { margin-bottom: var(--space-3); }
  .home-mosaic-header { padding: 0 var(--space-4); }
  .home-hero-actions { gap: var(--space-3); }
  .btn-hero-primary, .btn-hero-ghost { padding: 0.75rem var(--space-6); font-size: var(--text-sm); }

  .home-mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px;
  }

  .home-about-cards { grid-template-columns: 1fr 1fr; gap: var(--space-3); }

  .card-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .albumes-grid { grid-template-columns: 1fr; }
  .valores-grid, .actividades-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   QUÉ ES ARZOLLA — layout editorial
============================================================ */

/* ── Fondo amarillo en toda la página que-es ── */
body:has(.qs-page) {
  background: #F5C842;
}
body:has(.qs-page) .navbar {
  background: #F5C842 !important;
}
body:has(.qs-page) .navbar.scrolled {
  background: rgba(245, 200, 66, 0.97) !important;
  box-shadow: none;
  backdrop-filter: none;
}

/* ── Sección principal: dos columnas ── */
.qs-page {
  background: #F5C842;
  padding: calc(68px + 56px) 0 80px;
}
.qs-two-col {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* ── Columna izquierda ── */
.qs-headline {
  font-family: var(--font);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #111;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.qs-origen-text {
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.85;
  color: #444;
  margin: 0 0 48px;
}
.qs-origen-text strong { color: #111; font-weight: 700; }
.qs-subsec { margin-bottom: 40px; }
.qs-subsec-title {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
}
.qs-subsec p {
  font-family: var(--font);
  font-size: 0.85rem;
  line-height: 1.85;
  color: #555;
  margin: 0 0 10px;
}
.qs-subsec p:last-child { margin-bottom: 0; }
.qs-subsec em { font-style: italic; }
.qs-subsec strong { color: #111; font-weight: 700; }

/* ── Columna derecha: línea de tiempo ── */
.qs-hito { margin: 0 0 48px; }
.qs-hito:last-child { margin-bottom: 0; }
.qs-year {
  display: block;
  font-family: var(--font);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: #111;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.qs-hito p {
  font-family: var(--font);
  font-size: 0.85rem;
  line-height: 1.85;
  color: #555;
  margin: 0 0 10px;
}
.qs-hito p:last-child { margin-bottom: 0; }
.qs-hito strong { color: #111; font-weight: 700; }
.qs-hito-note { color: #888 !important; }

/* ── Sección de cierre: cita + ilustración ── */
.qs-closing {
  background: #F5C842;  /* igual que el fondo, sin separación visual */
  padding: 80px 48px 72px;
  text-align: center;
}
.qs-closing-text {
  max-width: 680px;
  margin: 0 auto 64px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.7;
  color: #111;
}
.qs-tent {
  display: flex;
  justify-content: center;
  margin: 0;
}
.qs-tent svg {
  width: 260px;
  max-width: 80vw;
}

/* ── Nuestro Equipo ── */
.qs-equipo {
  background: #fff;
  padding: 80px 0 0;
}
.qs-equipo-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px 64px;
}
.qs-equipo-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 56px;
}
.qs-equipo-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: #111;
  letter-spacing: -0.02em;
  margin: 0;
}
.qs-equipo-text p {
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.85;
  color: #555;
  margin: 0 0 16px;
}
.qs-equipo-text p:last-child { margin-bottom: 0; }
.qs-equipo-foto {
  width: 100%;
  overflow: hidden;
}
.qs-equipo-foto img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .qs-two-col {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 32px;
  }
  .qs-page { padding: calc(68px + 40px) 0 56px; }
  .qs-closing { padding: 60px 32px 56px; }
  .qs-equipo { padding: 60px 0 0; }
  .qs-equipo-inner { padding: 0 32px 48px; }
  .qs-equipo-header {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
  }
  .qs-equipo-foto img { height: 300px; }
}
@media (max-width: 480px) {
  .qs-two-col { padding: 0 20px; }
  .qs-page { padding: calc(68px + 28px) 0 40px; }
  .qs-closing { padding: 48px 20px 44px; }
  .qs-headline { margin-bottom: 24px; }
  .qs-equipo-inner { padding: 0 20px 40px; }
  .qs-equipo-foto img { height: 220px; }
}

/* ── LEGACY: clases antiguas ya no usadas (se mantienen por compatibilidad) ── */
.qs-editorial {
  background: #FDF8F0;
  padding-bottom: 96px;
}

/* ── Opener centrado ── */
.qs-opener {
  padding: 80px 32px 72px;
  text-align: center;
  border-bottom: 1px solid rgba(38,38,38,0.1);
  margin-bottom: 0;
}
.qs-opener-kicker {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(38,38,38,0.38);
  margin-bottom: 28px;
}
.qs-opener-quote {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: #1A1A1A;
  letter-spacing: -0.025em;
  max-width: 680px;
  margin: 0 auto 28px;
}
.qs-opener-intro {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(38,38,38,0.62);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Contenedor interior ── */
.qs-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Origen ── */
.qs-origen {
  padding: 64px 0 56px;
  max-width: 680px;
  border-bottom: 1px solid rgba(38,38,38,0.08);
}
.qs-label {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(38,38,38,0.38);
  margin-bottom: 18px;
}
.qs-origen p {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: #2A2A2A;
}
.qs-origen strong { font-weight: 600; }

/* ── Hitos ── */
.qs-hitos { padding-top: 0; }

.qs-hito {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid rgba(38,38,38,0.07);
}
.qs-hito:last-child { border-bottom: none; }

.qs-hito-year {
  font-family: var(--font);
  font-size: clamp(4.8rem, 8.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: #1A1A1A;
  padding-top: 5px;
}

.qs-hito-text p {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: #2A2A2A;
  margin: 0 0 12px;
}
.qs-hito-text p:last-of-type { margin: 0; }
.qs-hito-text strong { font-weight: 600; }
.qs-hito-note {
  color: rgba(38,38,38,0.52) !important;
  font-size: 14.5px !important;
}

/* ── Otras actividades ── */
.qs-act {
  padding: 56px 0;
  border-top: 1px solid rgba(38,38,38,0.08);
}
.qs-section-title {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.qs-act-cols {
  columns: 2;
  column-gap: 48px;
}
.qs-act-cols p {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(38,38,38,0.72);
  margin: 0;
  break-inside: avoid;
}
.qs-act-cols p + p { margin-top: 12px; }
.qs-act-cols em { font-style: italic; }

/* ── Campamentos + tienda SVG ── */
.qs-camp {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  padding: 56px 0 0;
  border-top: 1px solid rgba(38,38,38,0.08);
}
.qs-camp-text .qs-label { margin-bottom: 10px; }
.qs-camp-text .qs-section-title { margin-bottom: 16px; }
.qs-camp-text p {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(38,38,38,0.72);
  margin: 0;
}
.qs-camp-text strong { font-weight: 600; }
.qs-camp-figure {
  margin: 0;
  flex-shrink: 0;
}
.qs-camp-figure svg {
  width: 260px;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .qs-inner { padding: 0 32px; }
  .qs-hito { grid-template-columns: 170px 1fr; gap: 32px; padding: 40px 0; }
  .qs-hito-year { font-size: clamp(3.5rem, 9vw, 5.5rem); }
  .qs-act-cols { columns: 1; }
  .qs-camp { grid-template-columns: 1fr; gap: 36px; }
  .qs-camp-figure { display: flex; justify-content: center; }
  .qs-camp-figure svg { width: 210px; }
}
@media (max-width: 640px) {
  .qs-editorial { padding-bottom: 64px; }
  .qs-opener { padding: 56px 24px 56px; }
  .qs-inner { padding: 0 24px; }
  .qs-origen { padding: 48px 0 44px; }
  .qs-hito { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
  .qs-hito-year { font-size: clamp(3.2rem, 14vw, 4.5rem); line-height: 1; padding-top: 0; }
  .qs-act { padding: 40px 0; }
  .qs-camp { padding: 40px 0 0; gap: 28px; }
  .qs-camp-figure svg { width: 180px; }
}

/* ============================================================
   FORMULARIO DE INSCRIPCIÓN
============================================================ */

/* El documento se mantiene como una superficie clara también cuando el
   navegador o el sistema usan modo oscuro. Así se conservan el contraste de
   los campos, las autorizaciones y, especialmente, la firma negra. */
#inscripcion-form {
  color-scheme: only light;
}

/* ── Contenedor compartido ── */
.inscripcion-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Acordeón de inscripción ── */
.inscripcion-acordeon-section {
  background: var(--bg);
  padding: 48px 0 56px;
}
.inscripcion-selector-intro {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.inscripcion-selector-desc {
  font-family: var(--font);
  font-size: var(--text-lg);
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 28px;
}
.inscripcion-selector-desc strong { color: var(--text); font-weight: 700; }

/* número de paso */
.inscripcion-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.inscripcion-step-num--semanal { background: var(--accent); }

/* badge */
.inscripcion-summary-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inscripcion-badge {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  line-height: 1.4;
  flex-shrink: 0;
}
.inscripcion-badge--required {
  background: rgba(196,97,30,0.14);
  color: var(--primary-dark);
  border: 1px solid rgba(196,97,30,0.25);
}
.inscripcion-details--curso[open] .inscripcion-badge--required {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.inscripcion-badge--optional {
  background: rgba(74,124,89,0.12);
  color: var(--accent);
  border: 1px solid rgba(74,124,89,0.25);
}

/* aviso semanal + botón WhatsApp */
.inscripcion-semanal-aviso {
  margin-top: 4px;
  padding: 14px 18px;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inscripcion-semanal-aviso p {
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}
.inscripcion-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  background: #25D366;
  border-radius: var(--radius-full);
  padding: 9px 18px;
  text-decoration: none;
  width: fit-content;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.inscripcion-whatsapp-btn:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

/* details base */
.inscripcion-details {
  border-radius: var(--radius);
  border: 2px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.inscripcion-details[open] { box-shadow: var(--shadow-md); }
.inscripcion-details--curso { border-color: rgba(196,97,30,0.2); }
.inscripcion-details--curso[open] { border-color: var(--primary); }
.inscripcion-details--semanal { border-color: rgba(74,124,89,0.2); }
.inscripcion-details--semanal[open] { border-color: var(--accent); }

/* Tarjetas de acceso: sustituyen al acordeón en la página de inscripciones. */
.inscripcion-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.inscripcion-link-card:hover { box-shadow: var(--shadow-md); }
.inscripcion-link-card.inscripcion-details--curso:hover { border-color: var(--primary); }
.inscripcion-link-card.inscripcion-details--semanal:hover { border-color: var(--accent); }
.inscripcion-card-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}
.inscripcion-card-button--weekly { background: var(--accent); }

/* La página del curso reutiliza el formulario probado, pero muestra solamente
   esa solicitud: sin selector semanal ni calendario. */
.course-form-page .inscripcion-selector-intro,
.course-form-page .inscripcion-selector-desc,
.course-form-page .inscripcion-details--semanal,
.course-form-page .cal-section { display: none; }
.course-form-page .inscripcion-details--curso { margin-bottom: 0; }
.course-form-page .inscripcion-details--curso > .inscripcion-summary {
  cursor: default;
  pointer-events: none;
}
.course-form-page .inscripcion-details--curso .inscripcion-summary-chevron { display: none; }

/* summary */
.inscripcion-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 30px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--duration) var(--ease);
}
.inscripcion-summary::-webkit-details-marker { display: none; }
.inscripcion-details--curso .inscripcion-summary { background: var(--primary-ghost); }
.inscripcion-details--curso .inscripcion-summary:hover { background: rgba(196,97,30,0.12); }
.inscripcion-details--semanal .inscripcion-summary { background: var(--accent-light); }
.inscripcion-details--semanal .inscripcion-summary:hover { background: rgba(74,124,89,0.12); }

.inscripcion-summary-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}
.inscripcion-details--curso .inscripcion-summary-icon { color: var(--primary); }
.inscripcion-details--semanal .inscripcion-summary-icon { color: var(--accent); }

.inscripcion-summary-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inscripcion-summary-titulo {
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.inscripcion-summary-desc {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text-soft);
  line-height: 1.4;
}
.inscripcion-summary-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}
.inscripcion-details[open] .inscripcion-summary-chevron {
  transform: rotate(180deg);
}

/* contenido desplegado */
.inscripcion-details-content {
  background: var(--bg-alt);
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
}
.inscripcion-details-content--semanal {
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.inscripcion-semanal-texto {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}
.inscripcion-semanal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 13px 28px;
  text-decoration: none;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  box-shadow: 0 4px 14px rgba(74,124,89,0.25);
}
.inscripcion-semanal-btn:hover {
  background: #3a6347;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74,124,89,0.3);
}
.inscripcion-semanal-nota {
  font-family: var(--font);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}
.inscripcion-semanal-nota a { color: var(--accent); text-decoration: none; }
.inscripcion-semanal-nota a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .inscripcion-acordeon-section { padding: 32px 0 40px; }
  .inscripcion-summary { padding: 16px 16px; gap: 12px; }
  .inscripcion-summary-icon { width: 40px; height: 40px; }
  .inscripcion-summary-titulo { font-size: var(--text-sm); }
  .inscripcion-semanal-btn { width: 100%; justify-content: center; }
  .inscripcion-link-card .inscripcion-summary { align-items: flex-start; flex-wrap: wrap; }
  .inscripcion-card-button { width: 100%; justify-content: center; }
}

/* ── Sección formulario ── */
.inscripcion-section {
  background: var(--bg-alt);
  padding: 40px 0 80px;
}

/* ── Membrete ── */
.inscripcion-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 30px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 0;
}
.inscripcion-letterhead-org {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.inscripcion-letterhead-org strong {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.inscripcion-letterhead-org span,
.inscripcion-letterhead-org a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
}
.inscripcion-letterhead-org a:hover { color: var(--primary); }
.inscripcion-letterhead-title {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.inscripcion-doc-title {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.inscripcion-curso {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

/* ── Bloques del formulario ── */
.form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 38px 36px 34px;
}
.form-block:last-of-type {
  border-radius: 0 0 var(--radius) var(--radius);
}
.form-block--legal {
  background: var(--bg-alt);
}

/* Cabecera de bloque */
.form-block-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.form-block-num {
  font-family: var(--font);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  opacity: 0.07;
  flex-shrink: 0;
}
.form-block-title {
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── Grid de campos ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.form-field--full {
  grid-column: 1 / -1;
}

/* ── Campo individual ── */
.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.form-req {
  color: var(--primary);
  font-weight: 700;
}

.form-input {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  -webkit-appearance: none;
  appearance: none;
  color-scheme: light;
}
.form-input::placeholder { color: #77738F; opacity: 1; }
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,97,30,0.12);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: #C0392B;
}

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

/* File input */
.form-input-file {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text-soft);
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  color-scheme: light;
}
.form-input-file::file-selector-button {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  margin-right: 12px;
  cursor: pointer;
}
.form-input-file:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.5;
}
.form-hint a { color: var(--primary); text-decoration: none; }
.form-hint a:hover { text-decoration: underline; }

/* ── Grupo de pregunta + radios ── */
.form-question-group {
  margin-bottom: 20px;
}
.form-question {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 6px;
}

/* ── Radio buttons personalizados ── */
.form-radios {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 12px 0 0;
}
.form-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  user-select: none;
}
.form-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form-radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.form-radio-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.form-radio-label input[type="radio"]:checked + .form-radio-dot {
  border-color: var(--primary);
  background: var(--bg);
}
.form-radio-label input[type="radio"]:checked + .form-radio-dot::after {
  opacity: 1;
  transform: scale(1);
}
.form-radio-label input[type="radio"]:focus-visible + .form-radio-dot {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Texto legal en bloques ── */
.form-legal-text {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-soft);
  margin: 12px 0 0;
}
.form-legal-text--intro {
  margin: 0 0 20px;
  color: var(--text-soft);
}

/* ── Canvas de firma ── */
.form-signature-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.form-signature-block > .form-label {
  display: block;
  margin-bottom: 10px;
}
.form-signature-wrap {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: crosshair;
  color-scheme: only light;
  forced-color-adjust: none;
}
.form-signature-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #FFFFFF;
  touch-action: none;
  forced-color-adjust: none;
}
.form-signature-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: var(--text-base);
  color: #68647D;
  pointer-events: none;
}
.form-signature-clear {
  margin-top: 8px;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  cursor: pointer;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.form-signature-clear:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ── Checkbox LOPD ── */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 16px;
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.5;
  user-select: none;
}
.form-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.form-checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.form-checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: 2.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) scale(0);
  transition: transform var(--duration) var(--ease);
}
.form-checkbox:checked + .form-checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}
.form-checkbox:checked + .form-checkbox-box::after { transform: rotate(45deg) scale(1); }
.form-checkbox:focus-visible + .form-checkbox-box {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Área de envío ── */
.form-submit-area {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.form-submit-btn {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 14px 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  box-shadow: 0 4px 16px rgba(196,97,30,0.25);
}
.form-submit-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,97,30,0.3);
}
.form-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.form-submit-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form-submit-spinner svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-submit-note {
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.form-submit-note strong { color: var(--text-soft); }
.form-submit-note .form-req { color: var(--primary); }

/* ── Mensajes de estado ── */
.form-message {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
}
.form-message--ok {
  background: #EBF5EE;
  border: 1px solid #A8D5B4;
  color: #1D6130;
}
.form-message--ok svg { stroke: #1D6130; flex-shrink: 0; margin-top: 2px; }
.form-success-next-btn {
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.form-success-next-btn:hover { background: var(--accent-dark); color: #fff; }
.form-message--err {
  background: #FDECEC;
  border: 1px solid #F5AAAA;
  color: #8B1A1A;
}
.form-message--err svg { stroke: #8B1A1A; flex-shrink: 0; margin-top: 2px; }
.form-message--err a { color: #8B1A1A; font-weight: 600; }

/* ============================================================
   INSCRIPCIÓN A ACTIVIDADES
============================================================ */
.activity-registration { padding: 42px 0 80px; background: var(--bg); }
.activity-registration .inscripcion-wrap { display: flex; flex-direction: column; }
.activity-back-link { display: inline-block; margin-bottom: 24px; color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.activity-back-link:hover { text-decoration: underline; }
.activity-picker { order: 2; margin-top: 36px; }
.activity-picker h2 { font-family: var(--font-display); font-size: var(--text-2xl); margin-bottom: 18px; }
.activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.activity-choice { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; color: var(--text); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: border-color var(--duration), box-shadow var(--duration); }
.activity-choice:hover, .activity-choice.is-selected { border-color: var(--primary); box-shadow: var(--shadow); }
.activity-choice span:first-child { display: flex; flex-direction: column; gap: 3px; }
.activity-choice strong { font-size: var(--text-base); }
.activity-choice small { color: var(--text-muted); font-size: var(--text-sm); }
.activity-choice-state { flex-shrink: 0; padding: 5px 10px; border-radius: var(--radius-full); background: var(--bg-deep); color: var(--text-soft); font-size: var(--text-xs); font-weight: 700; }
.activity-choice--open .activity-choice-state { background: #E4F4E9; color: #236638; }
.activity-choice--closed { opacity: 0.72; }
.activity-panel { order: 1; padding: 32px 36px 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.activity-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.activity-panel-heading h2 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.2; }
.activity-date { color: var(--primary); font-weight: 800; margin-bottom: 2px; }
.activity-status { padding: 7px 12px; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 800; white-space: nowrap; }
.activity-status--open { background: #E4F4E9; color: #236638; }
.activity-status--upcoming { background: var(--yellow-light); color: #725A00; }
.activity-status--closed { background: #F3E7E7; color: #7A3030; }
.activity-window { margin-bottom: 24px; color: var(--text-soft); }
.activity-closed { padding: 18px 20px; background: var(--bg-alt); border-radius: var(--radius); color: var(--text-soft); font-weight: 700; }
.activity-field-group { display: contents; }
.activity-form-page #activity-form { color-scheme: only light; }
.cal-event--registration { color: inherit; text-decoration: none; cursor: pointer; }
.cal-event--registration:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.cal-event-register { display: inline-block; margin-top: 3px; color: var(--primary-dark); font-size: var(--text-xs); font-weight: 800; }

@media (max-width: 720px) {
  .activity-list { grid-template-columns: 1fr; }
  .activity-choice { align-items: flex-start; }
  .activity-panel { padding: 24px 20px; }
  .activity-panel-heading { flex-direction: column; }
  .activity-status { white-space: normal; }
}

/* ── Responsive formulario ── */
@media (max-width: 640px) {
  .inscripcion-intro-section { padding: 32px 0 24px; }
  .inscripcion-section { padding: 24px 0 56px; }
  .inscripcion-letterhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
  }
  .inscripcion-letterhead-title { align-items: flex-start; }
  .form-block { padding: 24px 20px 20px; }
  .form-block-num { font-size: 2.2rem; }
  .form-block-title { font-size: var(--text-base); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: 1; }
  .form-radios { gap: 14px; }
  .form-submit-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   INICIO — Hero revista + Tagline + Collage
============================================================ */

/* ── Hero ── */
.home-hero {
  position: relative;
  margin: 0 20px;
  border-radius: 20px;
  height: clamp(300px, 48vw, 520px);
  overflow: hidden;
}
.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.home-hero-overlay {
  display: none;
}
.home-hero-brand {
  display: none;
}
.home-hero-brand-sup {
  display: block;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}
.home-hero-brand-name {
  font-family: var(--font);
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 800;
  color: #fff;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

/* ── Tagline ── */
.home-tagline {
  background: #F0EDE8;
  padding: 84px 24px 76px;
}
.home-tagline-inner {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.home-tagline-title {
  font-family: var(--font);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}
.home-tagline-body {
  font-family: var(--font);
  font-size: var(--text-sm);
  line-height: 1.88;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto;
}

/* ── Collage ── */
.home-collage {
  background: transparent;
  padding: 0 0 110px;
}
.home-collage-stage {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  height: 900px;
}
.hc-card {
  position: absolute;
  border-radius: 5px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 1px 6px rgba(0,0,0,0.07);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
}
.hc-card:active { cursor: grabbing; }

/* Card 1: teal, frase arriba derecha */
.hc-card--teal {
  background: #9DC5D4;
  width: 255px;
  padding: 32px 26px 38px;
}
.hc-card--teal p {
  font-family: var(--font);
  font-size: 1.85rem;
  font-style: normal;
  font-weight: 800;
  color: #1A2733;
  line-height: 1.15;
  margin: 0;
}
.hc-card--pos1 {
  top: 0;
  right: 56px;
  transform: rotate(-3.5deg);
  z-index: 2;
}

/* Card 2: nota manuscrita arriba izquierda */
.hc-card--note {
  background: #FEFDF6;
  width: 205px;
  padding: 20px 16px 22px;
  border: 1px solid #EEE;
}
.hc-card--note p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  line-height: 1.75;
  color: #555;
  margin: 0;
}
.hc-card--pos2 {
  top: 28px;
  left: 28px;
  transform: rotate(2deg);
  z-index: 1;
}

/* Card 3: foto paisaje */
.hc-card--photo {
  width: 228px;
  height: 168px;
  padding: 8px;
  background: #fff;
}
.hc-card--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hc-card--pos3 {
  top: 185px;
  right: 36px;
  transform: rotate(2.2deg);
  z-index: 3;
}

/* Card 4: acento naranja */
.hc-card--orange {
  background: #E8963A;
  width: 168px;
  height: 148px;
}
.hc-card--pos4 {
  top: 245px;
  left: 18px;
  transform: rotate(-4deg);
  z-index: 1;
}

/* Card 5: dark, frase inferior */
.hc-card--dark {
  background: #EDD558;
  width: 280px;
  padding: 24px 26px;
}
.hc-card--dark p {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  font-style: italic;
  color: #2A2A14;
  line-height: 1.25;
  margin: 0;
}
.hc-card--pos5 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  z-index: 4;
}

/* Fotos adicionales */
.hc-card--pos6 {
  top: 200px;
  left: 80px;
  transform: rotate(-2deg);
  z-index: 2;
}
.hc-card--pos7 {
  top: 320px;
  right: 50px;
  transform: rotate(3.5deg);
  z-index: 1;
}
.hc-card--pos8 {
  top: 450px;
  left: 160px;
  transform: rotate(-1.5deg);
  z-index: 2;
}
.hc-card--pos9 {
  top: 530px;
  right: 30px;
  transform: rotate(-3deg);
  z-index: 3;
}
.hc-card--pos10 {
  top: 600px;
  left: 20px;
  transform: rotate(2.5deg);
  z-index: 1;
}

/* ── Scallop decorativo ── */
.hc-scallop {
  position: absolute;
  width: 88px;
  height: 88px;
  background: #C03028;
  clip-path: polygon(50% 2%, 54% 9%, 62% 4%, 63% 12%, 72% 9%, 71% 17%, 80% 17%, 77% 25%, 86% 28%, 81% 35%, 89% 41%, 82% 46%, 88% 54%, 80% 57%, 83% 66%, 74% 66%, 74% 76%, 66% 73%, 63% 82%, 55% 77%, 50% 86%, 45% 77%, 37% 82%, 34% 73%, 26% 76%, 26% 66%, 17% 66%, 20% 57%, 12% 54%, 18% 46%, 11% 41%, 19% 35%, 14% 28%, 23% 25%, 20% 17%, 29% 17%, 28% 9%, 37% 12%, 38% 4%, 46% 9%);
  bottom: 100px;
  left: 50px;
  transform: rotate(15deg);
  z-index: 3;
  cursor: grab;
  will-change: transform;
}
.hc-scallop:active { cursor: grabbing; }

/* ── Botón CTA ── */
.home-cta {
  text-align: center;
  padding: 12px 24px 80px;
  background: transparent;
}
.home-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1.5px solid rgba(30,27,46,0.3);
  background: transparent;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  transition: border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.home-cta-btn:hover {
  border-color: var(--text);
  color: var(--text);
  background: rgba(30,27,46,0.04);
}

/* ── Fondo cálido home ── */
body.home-page {
  background: #F0EDE8;
}

/* Eliminar el fondo lavanda global que interfiere con home */
body.home-page .home-tagline,
body.home-page .home-collage,
body.home-page .home-cta {
  background: #F0EDE8;
}

/* ── Responsive collage ── */
@media (max-width: 720px) {
  .home-collage-stage {
    height: 820px;
    margin: 0 20px;
  }
  .hc-card--teal { width: 210px; right: 8px; }
  .hc-card--teal p { font-size: 1.5rem; }
  .hc-card--pos1 { right: 8px; }
  .hc-card--note { width: 172px; }
  .hc-card--pos2 { left: 10px; }
  .hc-card--photo { width: 192px; height: 144px; }
  .hc-card--pos3 { right: 8px; top: 170px; }
  .hc-card--orange { width: 140px; height: 130px; }
  .hc-card--pos4 { left: 10px; }
  .hc-card--dark { width: 290px; }
  .hc-card--dark p { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .home-hero-brand { left: 16px; bottom: 20px; }
  .home-tagline { padding: 56px 20px 48px; }
  .home-collage { padding-bottom: 80px; }
  .home-collage-stage { height: 780px; }
  .hc-card--dark { width: 260px; }
  .hc-card--dark p { font-size: 1.55rem; }
}

/* Portada basada en la composición editorial de la maqueta */
/* Cambio de portada desactivado y conservado solo como referencia interna.
body.home-page {
  background: #f7f7f6;
  color: #222;
}

body.home-page .navbar {
  position: relative;
  inset: auto;
  background: #f7f7f6;
  box-shadow: none;
  border: 0;
}

body.home-page .nav-container {
  width: calc(100% - 70px);
  max-width: none;
  min-height: 134px;
  padding: 20px 48px;
}

body.home-page .nav-logo-teaser { display: none; }
body.home-page .nav-logo-img {
  display: block;
  width: 78px;
  height: 62px;
  object-fit: contain;
}

body.home-page .nav-menu { gap: clamp(28px, 4.4vw, 62px); }
body.home-page .nav-link {
  padding: 8px 0;
  border-radius: 0;
  color: #111;
  font-size: 15px;
  font-weight: 650;
  background: transparent;
}
body.home-page .nav-link:hover,
body.home-page .nav-link.active {
  color: #111;
  background: transparent;
}

body.home-page .home-hero {
  width: calc(100% - 70px);
  height: auto;
  aspect-ratio: 1.92 / 1;
  margin: 0 35px;
  border-radius: 0;
}
body.home-page .home-hero-img {
  object-position: center center;
}

body.home-page .home-tagline {
  padding: 92px 24px 73px;
  background: #f7f7f6;
}
body.home-page .home-tagline-inner { max-width: 720px; }
body.home-page .home-tagline-title {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.55vw, 2.08rem);
  line-height: .98;
  letter-spacing: -.045em;
}
body.home-page .home-tagline-body {
  max-width: 690px;
  color: #303030;
  font-size: clamp(.96rem, 1.55vw, 1.18rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

body.home-page .home-collage {
  padding: 0;
  background: #f7f7f6;
}
body.home-page .home-collage-stage {
  width: min(900px, 88vw);
  max-width: none;
  height: 660px;
  margin: 0 auto;
}
body.home-page .hc-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
  overflow: hidden;
}
body.home-page .hc-card--photo { padding: 0; background: transparent; }
body.home-page .hc-card--photo img { object-fit: cover; }
body.home-page .hc-card--group {
  top: 145px;
  left: 5px;
  z-index: 4;
  width: 440px;
  height: 270px;
  transform: rotate(-4deg);
}
body.home-page .hc-card--group img { object-position: center 50%; }
body.home-page .hc-card--car {
  top: 20px;
  right: 40px;
  z-index: 1;
  width: 410px;
  height: 245px;
  transform: rotate(8deg);
}
body.home-page .hc-card--yellow {
  top: 74px;
  left: 285px;
  z-index: 3;
  width: 455px;
  min-height: 164px;
  padding: 34px 32px;
  overflow: visible;
  background: #fce9a6;
  transform: rotate(2deg);
}
body.home-page .hc-card--yellow::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -15px;
  width: 205px;
  height: 25px;
  background: #fce9a6;
  clip-path: polygon(0 0, 6% 70%, 12% 20%, 18% 85%, 25% 28%, 32% 90%, 39% 24%, 46% 82%, 53% 18%, 60% 86%, 67% 24%, 74% 80%, 81% 16%, 88% 76%, 94% 22%, 100% 65%, 100% 0);
}
body.home-page .hc-card--yellow p {
  margin: 0;
  text-align: center;
  color: #292929;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  line-height: 1.05;
}
body.home-page .hc-card--blue {
  top: 353px;
  left: 222px;
  z-index: 3;
  width: 440px;
  min-height: 240px;
  padding: 43px 30px 34px;
  background: #c9d0e1;
  transform: rotate(-3deg);
}
body.home-page .hc-card--blue p {
  margin: 0;
  text-align: center;
  color: #596783;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 41px;
  line-height: 1.08;
}
body.home-page .hc-card--walk {
  top: 236px;
  right: 7px;
  z-index: 5;
  width: 465px;
  height: 312px;
  transform: rotate(7deg);
  clip-path: polygon(0 0,100% 0,100% 94%,97% 100%,94% 94%,91% 100%,88% 94%,85% 100%,82% 94%,79% 100%,76% 94%,73% 100%,70% 94%,67% 100%,64% 94%,61% 100%,58% 94%,55% 100%,52% 94%,49% 100%,46% 94%,43% 100%,40% 94%,37% 100%,34% 94%,31% 100%,28% 94%,25% 100%,22% 94%,19% 100%,16% 94%,13% 100%,10% 94%,7% 100%,4% 94%,0 100%);
}
body.home-page .hc-card--walk img { object-position: center; }
body.home-page .hc-scallop {
  left: 92px;
  bottom: 54px;
  z-index: 2;
  width: 154px;
  height: 154px;
  background: #b94118;
  cursor: default;
}

body.home-page .home-cta {
  padding: 0 24px 145px;
  background: #f7f7f6;
}
body.home-page .home-cta-btn {
  min-width: 365px;
  justify-content: center;
  padding: 17px 30px;
  border: 0;
  background: #e9e7e2;
  color: #171717;
  font-size: 16px;
  font-weight: 500;
}
body.home-page .home-cta-btn:hover { background: #ddd9d2; color: #111; }

body.home-page .footer {
  padding: 0 0 40px;
  border: 0;
  background: #f7f7f6;
  color: #333;
}
body.home-page .footer::before { display: none; }
body.home-page .footer .container { max-width: none; width: calc(100% - 160px); }
body.home-page .footer-contacto {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 28px;
  margin: 0;
}
body.home-page .footer-item { justify-content: center; color: #333; font-size: 13px; }
body.home-page .footer-item:first-child { justify-content: flex-start; }
body.home-page .footer-item:last-child { justify-content: flex-end; }
body.home-page .footer-item a,
body.home-page .footer-item p { color: #333; font-size: 13px; margin: 0; }
body.home-page .footer-mail-icon {
  width: 28px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
body.home-page .redes-sociales-footer { gap: 10px; }
body.home-page .redes-sociales-footer a { display: flex; color: #333; }
body.home-page .redes-sociales-footer svg { width: 25px; height: 25px; }
body.home-page .footer-copyright { display: none; }

@media (max-width: 760px) {
  body.home-page .nav-container {
    width: 100%;
    min-height: 90px;
    padding: 14px 22px;
  }
  body.home-page .nav-logo-img { width: 65px; height: 52px; }
  body.home-page .nav-menu { gap: 0; }
  body.home-page .home-hero {
    width: calc(100% - 28px);
    margin: 0 14px;
    aspect-ratio: 1.25 / 1;
  }
  body.home-page .home-hero-img { object-position: center; }
  body.home-page .home-tagline { padding: 58px 22px 50px; }
  body.home-page .home-tagline-title { line-height: 1.08; }
  body.home-page .home-tagline-title br { display: none; }
  body.home-page .home-tagline-body { line-height: 1.35; }
  body.home-page .home-collage-stage {
    width: min(520px, 96vw);
    height: 570px;
    transform: scale(.78);
    transform-origin: top center;
    margin-bottom: -125px;
  }
  body.home-page .home-cta { padding-bottom: 95px; }
  body.home-page .home-cta-btn { width: 100%; min-width: 0; }
  body.home-page .footer .container { width: calc(100% - 40px); }
  body.home-page .footer-contacto {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  body.home-page .footer-item,
  body.home-page .footer-item:first-child,
  body.home-page .footer-item:last-child { justify-content: center; }
}

@media (max-width: 520px) {
  body.home-page .home-collage-stage {
    left: 50%;
    width: 520px;
    margin-left: -260px;
    transform: scale(.62);
    margin-bottom: -205px;
  }
}
*/

/* ============================================================
   CALENDARIO DEL CURSO
============================================================ */
.cal-section {
  background: var(--bg);
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}

/* Header */
.cal-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.cal-title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0;
  flex: 1 1 300px;
}
.cal-subtitle {
  width: 100%;
  font-size: var(--text-sm);
  color: var(--text-soft);
  margin: -8px 0 0;
  line-height: 1.6;
}
.cal-download-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-hover);
  background: #fff;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  white-space: nowrap;
  margin-left: auto;
}
.cal-download-all:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ghost);
}

/* Leyenda */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

/* Badges */
.cal-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cal-badge--act  { background: #E8F4E8; color: #2D6A2D; }
.cal-badge--conv { background: #E8EEF8; color: #2A4FA0; }
.cal-badge--exc  { background: #FDF0E0; color: #A05C10; }
.cal-badge--camp { background: #F8EAF0; color: #8A2060; }

/* Grid de meses */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Bloque mes */
.cal-month {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cal-month-name {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

/* Eventos dentro del mes */
.cal-events { padding: 4px 0; }
.cal-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}
.cal-event:last-child { border-bottom: none; }
.cal-event:hover { background: var(--bg); }

/* Colores de fondo según tipo de evento */
.cal-event[data-type="act"] {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.08), rgba(147, 112, 219, 0.04));
  border-left: 3px solid #9370DB;
}
.cal-event[data-type="conv"] {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.08), rgba(100, 149, 237, 0.04));
  border-left: 3px solid #6495ED;
}
.cal-event[data-type="exc"] {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.08), rgba(255, 165, 0, 0.04));
  border-left: 3px solid #FFA500;
}
.cal-event[data-type="camp"] {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.08), rgba(255, 105, 180, 0.04));
  border-left: 3px solid #FF69B4;
}

/* Número de día */
.cal-event-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
  flex-shrink: 0;
}
.cal-event-day {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.cal-event-weekday {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}

/* Cuerpo del evento */
.cal-event-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-event-name {
  font-size: var(--text-sm);
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

/* Botón añadir */
.cal-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.cal-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ghost);
}

/* Responsive */
@media (max-width: 600px) {
  .cal-header { flex-direction: column; }
  .cal-download-all { margin-left: 0; width: 100%; justify-content: center; }
  .cal-grid { grid-template-columns: 1fr; }
  .cal-event { gap: 10px; padding: 10px 14px; }
  .cal-add-btn { padding: 5px 9px; font-size: 0.68rem; }
}

.cal-disclaimer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 32px;
  padding: 0 16px;
  line-height: 1.5;
}

/* ============================================================
   PÁGINA EN CONSTRUCCIÓN
============================================================ */
.construction-content {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.construction-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}
.construction-title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.construction-text {
  font-size: var(--text-base);
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  border: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .construction-content { padding: 40px 20px; }
  .construction-icon { font-size: 3rem; }
}
