@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --ink:#111111;
  --paper:#ffffff;
  --paper-soft:#f6f5f2;
  --line:rgba(17,17,17,.14);
  --line-soft:rgba(17,17,17,.08);
  --muted:#5c5c58;
  --error:#a5433a;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.65;
}
h1,h2,h3{ font-family:'Fraunces', Georgia, serif; font-weight:500; letter-spacing:-.01em; margin:0; }
a{ color:var(--ink); }
img{ max-width:100%; }

/* ===== Buttons ===== */
.btn, button{
  display:inline-block;
  background:var(--ink);
  color:#fff;
  border:1px solid var(--ink);
  padding:.9rem 1.9rem;
  font-family:'Inter', sans-serif;
  font-size:.76rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-decoration:none;
  border-radius:0;
  cursor:pointer;
  transition:.25s ease;
}
.btn:hover, button:hover{ background:#fff; color:var(--ink); }
.btn:disabled, button:disabled{ background:#bdbdbb; border-color:#bdbdbb; color:#fff; cursor:not-allowed; }
.btn-outline{
  display:inline-block;
  background:transparent;
  color:var(--ink);
  border:1px solid var(--ink);
  padding:.9rem 1.9rem;
  font-size:.76rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-decoration:none;
  transition:.25s ease;
  cursor:pointer;
}
.btn-outline:hover{ background:var(--ink); color:#fff; }

/* ===== Simple site header/footer (legal pages) ===== */
.site-header{
  background:var(--ink);
  color:#fff;
  padding:1.6rem 1.5rem;
  text-align:center;
}
.site-header .back-link{
  display:inline-block;
  margin-bottom:1rem;
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.7);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.3);
}
.site-header .back-link:hover{ color:#fff; border-color:#fff; }
.site-header h1{ color:#fff; font-size:clamp(1.5rem,3.4vw,2.1rem); }

.site-footer{
  background:var(--ink);
  color:rgba(255,255,255,.8);
  text-align:center;
  padding:2.2rem 1.5rem;
  margin-top:3rem;
  border-top:1px solid rgba(255,255,255,.12);
}
.site-footer p{ font-size:.85rem; margin:.4rem 0; }
.site-footer a{ color:rgba(255,255,255,.8); text-decoration:none; border-bottom:1px solid rgba(255,255,255,.3); }
.site-footer a:hover{ color:#fff; border-color:#fff; }

/* ===== Legal document pages ===== */
body.legal main{
  max-width:760px;
  margin:0 auto;
  padding:3.5rem 1.5rem 1rem;
}
body.legal h2{ font-size:1.3rem; margin-top:2.4rem; margin-bottom:.8rem; }
body.legal p, body.legal li{ color:var(--muted); font-size:.98rem; }
body.legal p{ margin:1rem 0; }
body.legal ul{ padding-left:1.2rem; }
body.legal strong{ color:var(--ink); font-weight:600; }
body.legal a{ border-bottom:1px solid var(--line); }
body.legal a:hover{ border-color:var(--ink); }

/* ===== Funnel / step pages (registro, apuntarse, gracias...) ===== */
body.funnel{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:3rem 1.5rem;
  text-align:center;
}
.funnel-card{ width:100%; max-width:460px; }
.fade-container{ opacity:0; animation:fadeIn 1.2s forwards; }
@keyframes fadeIn{ to{ opacity:1; } }
@keyframes fadeOut{ to{ opacity:0; } }
.logo{ margin-bottom:2.2rem; }
.logo img{ max-width:150px; height:auto; }
body.funnel h1{ font-size:clamp(1.7rem,4.4vw,2.4rem); margin-bottom:2rem; line-height:1.15; }

body.funnel input[type="text"],
body.funnel input[type="email"],
body.funnel input[type="tel"],
body.funnel input[type="password"]{
  display:block;
  width:100%;
  max-width:360px;
  margin:0 auto;
  padding:.9rem .5rem;
  font-family:'Inter', sans-serif;
  font-size:1.05rem;
  color:var(--ink);
  background:transparent;
  border:none;
  border-bottom:1px solid var(--line);
  border-radius:0;
  text-align:center;
  outline:none;
  transition:border-color .25s;
}
body.funnel input:focus{ border-bottom-color:var(--ink); }
body.funnel input::placeholder{ color:#9a9a95; }
.input-group{ display:flex; flex-direction:column; align-items:center; gap:1.1rem; margin-bottom:.5rem; }

body.funnel #error, body.funnel p#error, body.funnel .error{
  color:var(--error);
  font-size:.85rem;
  margin-top:1rem;
  display:none;
}
body.funnel button{ margin-top:2.2rem; }

/* Option cards (registro-final, elegir-clase) */
.options, .clases-container{
  display:flex;
  flex-direction:column;
  flex-wrap:wrap;
  justify-content:center;
  gap:0;
  width:100%;
  max-width:960px;
  border:1px solid var(--line);
}
@media (min-width:600px){
  .options, .clases-container{ flex-direction:row; flex-wrap:nowrap; }
}
.card, .clase-card{
  flex:1 1 280px;
  background:var(--paper);
  padding:2.4rem 1.8rem;
  text-align:center;
  border-radius:0;
  box-shadow:none;
  border-top:1px solid var(--line);
  cursor:pointer;
  transition:background .2s;
}
.card:first-child, .clase-card:first-child{ border-top:none; }
@media (min-width:600px){
  .card, .clase-card{ border-top:none; border-left:1px solid var(--line); }
  .card:first-child, .clase-card:first-child{ border-left:none; }
}
.card:hover, .clase-card:hover{ background:var(--paper-soft); transform:none; box-shadow:none; }
.card h2{ font-size:1.3rem; margin-bottom:.9rem; }
.card p, .clase-card p{ color:var(--muted); font-size:.95rem; margin-bottom:1.6rem; }
.clase-card img{ width:64px; margin-bottom:1.2rem; }
.clase-card h3{ font-family:'Fraunces', serif; font-weight:500; font-size:1.2rem; margin-bottom:.6rem; }

/* Modal (elegir-clase.html) */
.modal-overlay{ position:fixed; inset:0; background:rgba(17,17,17,.6); display:flex; align-items:center; justify-content:center; z-index:999; padding:1rem; }
.modal-box{ background:#fff; padding:2.4rem; max-width:480px; width:100%; border:1px solid var(--ink); border-radius:0; text-align:center; box-shadow:none; animation:fadeIn .4s ease-out; }
.modal-box h2{ font-size:1.4rem; margin-bottom:1rem; }
.modal-box p{ color:var(--muted); margin-bottom:1.8rem; }

/* Resumen (registro-comprobar.html) */
.resumen{ width:100%; max-width:440px; background:var(--paper-soft); border:1px solid var(--line); border-radius:0; padding:1.8rem; box-shadow:none; margin-bottom:2rem; text-align:left; }
.resumen p{ font-size:.98rem; margin-bottom:.7rem; }
.botones{ display:flex; gap:1rem; flex-wrap:wrap; justify-content:center; }

/* Términos scroll box (registro-terminos.html) */
.terminos-box{ width:100%; max-width:600px; height:280px; overflow-y:auto; border:1px solid var(--line); border-radius:0; padding:1.2rem; text-align:left; margin:0 auto 1.4rem; box-shadow:none; font-size:.9rem; color:var(--muted); }
.checkbox-area{ display:none; margin-bottom:1.4rem; font-size:.9rem; }
.checkbox-area input{ width:auto; margin-right:.5rem; }

/* Card-app (gracias.html) */
.card-app{ background:var(--paper-soft); border:1px solid var(--line); border-radius:0; padding:2.2rem; box-shadow:none; max-width:380px; width:100%; margin:2.2rem auto 0; display:flex; flex-direction:column; align-items:center; }
.card-app img{ width:52px; margin-bottom:1.1rem; }
.card-app h2{ font-size:1.2rem; margin-bottom:1.2rem; }

body.funnel .status{ font-size:1.05rem; color:var(--muted); margin-top:.5rem; }
body.funnel .subtext{ color:var(--muted); font-size:1rem; max-width:520px; margin:0 auto 1rem; }
