/* ═══════════════════════════════════════════════════════════
   Aula Aprende y Practica — Design System 1.0
   Premium redesign · Preserves all JS/PHP contracts
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Design tokens ── */
:root {
  /* Brand */
  --navy:        #1B3C60;
  --navy-deep:   #0A2142;
  --navy-soft:   #2A4E77;
  --cyan:        #00B4D8;
  --cyan-soft:   #48CAE4;
  --cyan-ghost:  #E0F7FC;
  --orange:      #E84A2F;
  --orange-dark: #C73B22;
  --orange-soft: #FFE4DE;
  --gold:        #F4B740;

  /* Neutrals */
  --ink:         #0F172A;
  --ink-2:       #1E293B;
  --muted:       #475569;
  --muted-2:     #64748B;
  --faint:       #94A3B8;
  --line:        #E2E8F0;
  --line-soft:   #EEF2F6;
  --surface:     #FFFFFF;
  --surface-2:   #F8FAFC;
  --surface-3:   #F1F5F9;

  /* Effects */
  --shadow-sm:   0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md:   0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:   0 20px 40px -12px rgba(15,23,42,0.14), 0 8px 16px -4px rgba(15,23,42,0.06);
  --shadow-xl:   0 30px 60px -20px rgba(15,23,42,0.25);
  --shadow-brand:0 18px 40px -14px rgba(27,60,96,0.45);
  --ring:        0 0 0 4px rgba(0,180,216,0.22);

  /* Radius */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Layout */
  --max:  1180px;
  --page: clamp(16px, 4vw, 40px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--cyan); color: #fff; }

/* Utility: focus ring */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════════ */
.topbar {
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 10px var(--page);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.topbar::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,180,216,0.12), transparent);
  animation: shimmer 6s linear infinite;
}
.topbar strong { color: var(--cyan-soft); font-weight: 600; }
.topbar-inner { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,180,216,0.22); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0,180,216,0); } }
@keyframes shimmer { 0% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--page);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { height: 42px; transition: transform .3s var(--ease); }
.logo:hover { transform: scale(1.02); }

nav { display: flex; align-items: center; gap: 28px; }
nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
nav a:not(.btn-nav):hover { color: var(--navy); }
nav a:not(.btn-nav)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
nav a:not(.btn-nav):hover::after { transform: scaleX(1); }

.btn-nav {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(232,74,47,0.5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  letter-spacing: 0.2px;
}
.btn-nav:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(232,74,47,0.6);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--page) clamp(64px, 8vw, 112px);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,180,216,0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px; left: -140px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(232,74,47,0.10), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

/* Texto hero - ahora primero en desktop, quedará a la izquierda */
.hero-texto {
  display: flex;
  flex-direction: column;
  gap: 22px;
  order: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--cyan-ghost), #fff);
  border: 1px solid rgba(0,180,216,0.3);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232,74,47,0.22);
}

.hero-texto h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-texto h1 span {
  background: linear-gradient(135deg, var(--orange) 0%, #FF7043 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}
.hero-texto h1 span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: rgba(232,74,47,0.15);
  z-index: -1;
  border-radius: 2px;
}

.hero-desc {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  max-width: 540px;
}

.hero-puntos {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-top: 4px;
}
.hero-puntos li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding-left: 28px;
  position: relative;
  line-height: 1.4;
}
.hero-puntos li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cyan-ghost);
}
.hero-puntos li::after {
  content: "";
  position: absolute;
  left: 5px; top: 6px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 16px 32px -12px rgba(232,74,47,0.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  letter-spacing: 0.2px;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px -14px rgba(232,74,47,0.7);
  color: #fff;
}
.btn-cta::after {
  content: "→";
  font-size: 18px;
  transition: transform .3s var(--ease);
}
.btn-cta:hover::after { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: all .25s var(--ease);
}
.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Calendario */
.hero-calendario {
  order: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-calendario::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, var(--cyan-ghost), var(--orange-soft));
  border-radius: var(--r-xl);
  z-index: -1;
  transform: rotate(-1.5deg);
  opacity: 0.6;
}

.cal-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  cursor: zoom-in;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cal-wrap:hover {
  transform: translateY(-6px) rotate(0.3deg);
  box-shadow: 0 40px 70px -20px rgba(15,23,42,0.28);
}
.cal-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  pointer-events: none;
}
.cal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(15,23,42,0.35), transparent 50%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.cal-wrap:hover .cal-overlay { opacity: 1; }
.cal-hint {
  background: rgba(15,23,42,0.85);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.cal-badge {
  position: absolute;
  top: -14px; left: -14px;
  background: linear-gradient(135deg, var(--orange), #FF7043);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-brand);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }

.pdf-fallback {
  display: none;
  padding: 16px 0 0;
  font-size: 13px;
  text-align: center;
}
.pdf-fallback a { color: var(--orange); font-weight: 600; }

/* LIGHTBOX */
#cal-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,33,66,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadein .25s var(--ease);
}
#cal-lightbox.visible { display: flex; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.cal-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 88vh;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cal-lightbox-cerrar {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  background: rgba(15,23,42,0.85);
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cal-lightbox-cerrar:hover { background: var(--orange); transform: rotate(90deg); }
.cal-lightbox-img { width: 100%; height: 100%; object-fit: contain; }

/* ═══════════════════════════════════════
   TRUST STRIP (stats)
   ═══════════════════════════════════════ */
.trust {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, #13325A 100%);
  color: #fff;
  padding: clamp(36px, 5vw, 56px) var(--page);
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(0,180,216,0.18), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(232,74,47,0.12), transparent 60%);
  pointer-events: none;
}
.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.trust-item {
  text-align: left;
  padding: 4px 8px;
  border-left: 2px solid rgba(0,180,216,0.35);
  padding-left: 18px;
}
.trust-icon {
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0,180,216,0.35));
}
.trust-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.trust-label {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  font-weight: 400;
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--page);
}
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 14px;
  padding: 6px 14px;
  background: var(--orange-soft);
  border-radius: 999px;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   CURSOS
   ═══════════════════════════════════════ */
.cursos-section { background: var(--surface-2); }
.cursos-section > .cursos-header { /* legacy support */ display: none; }

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* CARD */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::after { opacity: 1; }

.card-img {
  position: relative;
  height: 200px;
  background: var(--navy);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-img img { transform: scale(1.06); }
.card-img-placeholder {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--cyan) 140%);
  position: relative;
}
.card-img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}
.card-img-placeholder img { display: none; }

.card-duracion {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(15,23,42,0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-duracion::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}

.card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-categoria {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  font-weight: 700;
}
.card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.card-detalles {
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-detalles li {
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.card-detalles li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  background: var(--cyan-ghost);
  border-radius: 50%;
}
.card-detalles li::after {
  content: "";
  position: absolute;
  left: 3px; top: 8px;
  width: 7px; height: 3px;
  border-left: 1.8px solid var(--cyan);
  border-bottom: 1.8px solid var(--cyan);
  transform: rotate(-45deg);
}
.card-detalles li strong { color: var(--navy); font-weight: 600; }

.btn-inscribir {
  margin-top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  width: 100%;
  letter-spacing: 0.2px;
  transition: background .3s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-inscribir::after {
  content: "→";
  transition: transform .3s var(--ease);
}
.btn-inscribir:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(232,74,47,0.55);
}
.btn-inscribir:hover::after { transform: translateX(4px); }

/* ═══════════════════════════════════════
   PROCESS (pasos)
   ═══════════════════════════════════════ */
.process {
  background: var(--surface-2);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.process-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.process-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.process-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */
.faq { background: var(--surface-2); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item[open] {
  border-color: var(--cyan);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--cyan);
  font-weight: 400;
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cyan); }
.faq-body {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 48px var(--page) 28px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.logo-footer {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
footer p {
  font-size: 13px;
  flex: 1;
  min-width: 220px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--cyan-soft); }

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,33,66,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadein .25s var(--ease);
}
#modal-overlay.visible { display: flex; }

#modal-caja {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 38px 34px 32px;
  position: relative;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  max-height: 92vh;
  overflow-y: auto;
  animation: slideup .35s var(--ease);
}
@keyframes slideup {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#modal-caja::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

#modal-cerrar {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--muted);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
}
#modal-cerrar:hover {
  background: var(--orange);
  color: #fff;
  transform: rotate(90deg);
}

.modal-logo { height: 32px; margin-bottom: 18px; }
#modal-caja h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
#modal-nombre-curso {
  font-size: 13.5px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

#form-inscripcion label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
#form-inscripcion input[type="text"],
#form-inscripcion input[type="email"],
#form-inscripcion input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-2);
  transition: all .2s var(--ease);
}
#form-inscripcion input::placeholder { color: var(--faint); }
#form-inscripcion input:focus {
  outline: none;
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,180,216,0.15);
}

.label-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
  transition: background .2s var(--ease);
}
.label-check:hover { background: var(--cyan-ghost); }
.label-check input { margin-top: 2px; flex-shrink: 0; accent-color: var(--cyan); }

#btn-enviar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 28px -10px rgba(232,74,47,0.55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s;
}
#btn-enviar:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(232,74,47,0.7);
}
#btn-enviar:disabled { opacity: 0.65; cursor: default; transform: none; }

.error { display: block; font-size: 12px; color: #DC2626; margin-top: 4px; min-height: 16px; font-weight: 500; }
.oculto { display: none; }

#paso-exito { text-align: center; padding: 12px 0 8px; }
.exito-icono {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  box-shadow: 0 16px 32px -8px rgba(0,180,216,0.5);
  animation: scalein .4s var(--ease);
}
@keyframes scalein {
  from { opacity: 0; transform: scale(0.5) rotate(-180deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
#paso-exito h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: var(--navy-deep);
  margin-bottom: 10px;
}
#paso-exito p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.55;
}
#exito-curso {
  font-weight: 600;
  color: var(--orange);
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--orange-soft);
  border-radius: var(--r-sm);
  display: inline-block;
}
#paso-exito button {
  margin-top: 22px;
  padding: 12px 32px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: background .25s var(--ease);
}
#paso-exito button:hover { background: var(--navy); }

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-bottom: 64px; }
  .hero-calendario { order: 2; }
  .hero-texto { order: 1; }
  .hero-puntos { grid-template-columns: 1fr 1fr; }
  .cursos-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .process-grid { grid-template-columns: 1fr; }
  nav { gap: 18px; }
}
@media (max-width: 640px) {
  nav a:not(.btn-nav) { display: none; }
  .btn-nav { padding: 9px 16px; font-size: 13px; }
  .logo { height: 36px; }
  .hero-puntos { grid-template-columns: 1fr; }
  .hero-cta-group .btn-secondary { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  #modal-caja { padding: 30px 22px 24px; }
  .topbar { font-size: 12px; }
  .cal-badge { top: -10px; left: -10px; padding: 8px 12px; font-size: 11px; }
}
@media (max-width: 420px) {
  .trust-inner { grid-template-columns: 1fr; gap: 20px; }
  .trust-item { border-left-width: 3px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
