:root {
  --azul: #00247c;
  --azul-osc: #001652;
  --celeste: #3ec8ee;
  --celeste-suave: #e6f7fd;
  --tinta: #0a0f1a;
  --gris: #5b6478;
  --linea: #e3e7f0;
  --fondo-gris: #f4f6fb;
  --blanco: #fff;
  --radio: 16px;
  --sombra: 0 10px 30px -12px rgba(0, 22, 82, .25);
  --titulo: "Space Grotesk", system-ui, sans-serif;
  --texto: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--texto);
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--titulo); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); color: var(--azul-osc); }
h3 { font-size: 20px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--celeste); margin-bottom: 14px;
}
.eyebrow-azul { color: var(--azul); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s, background .15s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-celeste { background: var(--celeste); color: var(--azul-osc); }
.btn-celeste:hover { background: #6fd6f3; box-shadow: 0 8px 24px -8px rgba(62, 200, 238, .7); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-osc); }
.btn-borde { background: #fff; color: var(--azul); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  transition: background .25s, box-shadow .25s;
}
.nav.solida { background: rgba(0, 22, 82, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(62,200,238,.22), transparent 60%),
    linear-gradient(160deg, var(--azul) 0%, var(--azul-osc) 70%);
  color: #fff; overflow: hidden;
  padding: 130px 0 90px;
}
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); letter-spacing: -.035em; }
.hero h1 span { color: var(--celeste); }
.hero-sub { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,.82); margin: 22px 0 32px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.85);
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08);
}
.hero-tags strong { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.hero-fotos { position: relative; height: 440px; }
.foto { position: absolute; overflow: hidden; border-radius: 18px; transform: skewX(-12deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.foto img { width: 100%; height: 100%; object-fit: cover; transform: skewX(12deg) scale(1.25); }
.foto-a { width: 54%; height: 78%; left: 4%; top: 0; }
.foto-b { width: 46%; height: 70%; right: 2%; bottom: 0; border: 4px solid var(--azul-osc); }
.foto-a img { object-position: 45% 30%; }

/* Datos clave */
.claves { background: var(--azul-osc); color: #fff; padding: 0 0 56px; }
.claves-lista {
  list-style: none; max-width: 640px; margin-inline: auto;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radio);
}
.claves-lista li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px; font-size: 17px; font-weight: 500; color: #fff;
}
.claves-lista li + li { border-top: 1px solid rgba(255,255,255,.1); }
.ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(62,200,238,.14);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--celeste); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Secciones */
.sec { padding: 96px 0; }
.sec-gris { background: var(--fondo-gris); }
.sec-sub { color: var(--gris); font-size: 17px; max-width: 40em; margin-top: 14px; }
.nota { color: var(--gris); font-size: 13px; margin-top: 18px; }

.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.pilar {
  padding: 30px 26px; border-radius: var(--radio); border: 1px solid var(--linea); background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.pilar-n { font-family: var(--titulo); font-weight: 700; font-size: 14px; color: var(--celeste); }
.pilar h3 { margin: 10px 0 10px; color: var(--azul-osc); font-size: 22px; }
.pilar p { color: var(--gris); font-size: 15px; }

.extras { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.extras-tit { font-size: 13px; font-weight: 600; color: var(--gris); margin-right: 4px; }
.extra-chip { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: var(--celeste-suave); color: var(--azul); }

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.cal-mes h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); margin-bottom: 12px; }
.cal-semanas { display: grid; gap: 10px; }
.semana {
  width: 100%; text-align: left; border: 1.5px solid var(--linea); background: #fff; border-radius: 14px;
  padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.semana:hover { border-color: var(--celeste); box-shadow: var(--sombra); transform: translateY(-2px); }
.semana-n {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--titulo); font-weight: 700; font-size: 18px; background: var(--celeste-suave); color: var(--azul);
}
.semana-tit { font-weight: 600; font-size: 14px; color: var(--azul-osc); }
.semana-dias { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--gris); }
.semana-dias .feriado { text-decoration: line-through; opacity: .6; }
.dia-nota {
  font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px;
  background: var(--celeste-suave); color: var(--azul); align-self: center;
}
.semana[aria-pressed="true"] .dia-nota { background: rgba(62,200,238,.22); color: var(--celeste); }

/* Planes */
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 30px 26px; border-radius: 20px; border: 1.5px solid var(--linea); background: #fff;
}
.plan-dest { background: linear-gradient(160deg, var(--azul), var(--azul-osc)); color: #fff; border-color: transparent; box-shadow: var(--sombra); }
.plan-badge {
  position: absolute; top: -12px; left: 26px; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; background: var(--celeste); color: var(--azul-osc);
}
.plan-nom { font-family: var(--titulo); font-weight: 600; font-size: 22px; }
.plan-det { font-size: 14px; color: var(--gris); }
.plan-dest .plan-det { color: rgba(255,255,255,.7); }
.plan-precio { font-family: var(--titulo); font-weight: 700; font-size: 40px; letter-spacing: -.02em; margin-top: 14px; color: var(--azul-osc); }
.plan-dest .plan-precio { color: #fff; }
.plan-por { font-size: 13px; color: var(--gris); margin-bottom: 20px; }
.plan-dest .plan-por { color: var(--celeste); }
.plan .btn { margin-top: auto; }

.planes-extras {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; padding: 18px 22px;
  border-radius: 14px; background: var(--fondo-gris); font-size: 15px;
}
.planes-extras span { color: var(--gris); }
.planes-extras strong { color: var(--azul-osc); margin-left: 6px; }
.planes-extras .tit { font-weight: 600; color: var(--azul-osc); }

/* Final */
.final { background: linear-gradient(160deg, var(--azul), var(--azul-osc)); color: #fff; text-align: center; padding: 90px 0; }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-mosca { width: 64px; opacity: .9; }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.8); max-width: 34em; }
.lugar { font-size: 14px; color: var(--celeste); text-decoration: none; margin-top: 8px; }
.lugar:hover { text-decoration: underline; }

.pie { padding: 34px 0 40px; }
.pie-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pie img { height: 28px; width: auto; }
.pie-links { display: flex; gap: 22px; font-size: 14px; }
.pie-links a { color: var(--gris); text-decoration: none; }
.pie-links a:hover { color: var(--azul); }

.barra-movil { display: none; }

/* ---------- Inscripción ---------- */
.insc {
  margin: auto; border: 0; padding: 0; border-radius: 22px;
  width: min(760px, 100% - 32px); max-height: min(860px, 100% - 40px);
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 10, 40, .5);
  color: var(--tinta);
}
.insc[open] { display: flex; animation: entra .25s ease-out; }
.insc:focus { outline: none; }
.insc::backdrop { background: rgba(0, 12, 40, .6); backdrop-filter: blur(4px); }
@keyframes entra { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.insc-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 28px 16px; }
.insc-paso { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: 6px; }
.insc-head h2 { font-size: 28px; }
.insc-cerrar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fondo-gris); color: var(--gris); font-size: 15px; }
.insc-cerrar:hover { background: var(--linea); color: var(--tinta); }
.insc-prog { height: 4px; background: var(--fondo-gris); margin: 0 28px; border-radius: 4px; overflow: hidden; }
.insc-prog span { display: block; height: 100%; width: 25%; background: var(--celeste); transition: width .3s; }

.insc-body { padding: 22px 28px; overflow-y: auto; flex: 1; }
.insc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px; border-top: 1px solid var(--linea); background: #fff;
}
.total { display: flex; flex-direction: column; min-width: 0; }
.total-det { font-size: 13px; color: var(--gris); }
.total-num { font-family: var(--titulo); font-size: 28px; color: var(--azul-osc); line-height: 1.1; }
.insc-btns { display: flex; gap: 10px; }

.atajos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.atajos button {
  border: 1.5px solid var(--linea); background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 500; color: var(--azul);
}
.atajos button:hover { border-color: var(--celeste); }
.atajos .atajo-limpiar { color: var(--gris); }

.sel-semanas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sel-semanas .cal-mes h3 { font-size: 12px; margin-bottom: 8px; }
.sel-semanas .semana { padding: 10px 12px; gap: 2px 10px; position: relative; }
.sel-semanas .semana:hover { transform: none; box-shadow: none; }
.sel-semanas .semana-n { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
.sel-semanas .semana-dias { font-size: 12px; gap: 2px 8px; }
.semana[aria-pressed="true"] { border-color: var(--azul); background: var(--azul); }
.semana[aria-pressed="true"] .semana-n { background: var(--celeste); color: var(--azul-osc); }
.semana[aria-pressed="true"] .semana-tit { color: #fff; }
.semana[aria-pressed="true"] .semana-dias { color: rgba(255,255,255,.75); }

.aviso {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--celeste-suave);
  color: var(--azul-osc); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.aviso button { border: 0; background: var(--azul); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; }

.paso-tit { font-family: var(--texto); font-size: 14px; font-weight: 600; color: var(--azul-osc); margin: 4px 0 12px; letter-spacing: 0; }
.paso-tit small { color: var(--gris); font-weight: 400; }
.opciones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.opcion { position: relative; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; }
.opcion > span {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px;
  border: 1.5px solid var(--linea); transition: border-color .15s, background .15s;
}
.opcion strong { font-size: 16px; color: var(--azul-osc); display: flex; justify-content: space-between; gap: 8px; }
.opcion small { font-size: 13px; color: var(--gris); }
.opcion:hover > span { border-color: var(--celeste); }
.opcion input:checked + span { border-color: var(--azul); background: var(--celeste-suave); box-shadow: inset 0 0 0 1px var(--azul); }
.opcion input:focus-visible + span { outline: 2px solid var(--celeste); outline-offset: 2px; }

.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--azul-osc); }
.campo small { font-weight: 400; color: var(--gris); }
.campo-full { grid-column: 1 / -1; }
.campo input, .campo select, .campo textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--tinta);
  border: 1.5px solid var(--linea); border-radius: 12px; padding: 12px 14px; background: #fff; resize: vertical;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); }
.campo .error { border-color: #e5484d; }

.resumen { border: 1.5px solid var(--linea); border-radius: 16px; overflow: hidden; }
.res-fila { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 18px; font-size: 14px; }
.res-fila + .res-fila { border-top: 1px solid var(--linea); }
.res-fila dt { color: var(--gris); }
.res-fila dd { color: var(--tinta); font-weight: 500; }
.res-total { background: var(--fondo-gris); }
.res-total dd { font-family: var(--titulo); font-size: 20px; color: var(--azul-osc); }
.pago { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--azul-osc); color: #fff; font-size: 14px; }
.pago p + p { margin-top: 8px; }
.pago strong { color: var(--celeste); }
.pago .falta { color: #ffcf6e; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-fotos { height: 300px; max-width: 520px; }
  .pilares, .planes, .cal { grid-template-columns: 1fr; }
  .planes { gap: 24px; }
  .sel-semanas { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding: 100px 0 60px; }
  .hero-fotos { height: 240px; }
  .sec { padding: 68px 0; }
  .claves-lista li { padding: 14px 16px; font-size: 16px; gap: 14px; }
  .ico { width: 36px; height: 36px; }
  .barra-movil {
    display: block; position: fixed; inset: auto 0 0; z-index: 15; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--linea);
    transform: translateY(110%); transition: transform .25s;
  }
  .barra-movil.visible { transform: none; }
  .barra-movil .btn { width: 100%; }
  .pie { padding-bottom: 100px; }

  .insc { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .insc-head { padding: 18px 18px 12px; }
  .insc-head h2 { font-size: 24px; }
  .insc-prog { margin: 0 18px; }
  .insc-body { padding: 18px; }
  .insc-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .insc-foot .btn { padding: 0 20px; }
  .total-num { font-size: 22px; }
  .opciones { grid-template-columns: 1fr; }
  .datos { grid-template-columns: 1fr; }
  .res-fila { grid-template-columns: 1fr; gap: 2px; }
}
