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

:root {
  --fondo:    #f2ece0;
  --fondo2:   #e8e0d0;
  --card:     #ffffff;
  --texto:    #1c1a15;
  --texto2:   #6b6456;
  --rojo:     #b91c1c;
  --rojo-dk:  #991b1b;
  --verde:    #2d6b27;
  --borde:    rgba(28,26,21,0.14);
  --input-bg: #faf8f3;
  --paso-inactivo: rgba(28,26,21,0.10);
}

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 80px;
}

/* ── Encabezado ── */
.logo-area { text-align: center; margin-bottom: 36px; }
.logo-area a { text-decoration: none; }
.logo-area .club {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: .06em;
  color: var(--texto);
}
.logo-area .subtitulo {
  font-size: .85rem;
  color: var(--texto2);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(28,26,21,.07);
  width: 100%;
  padding: 36px 32px;
}
@media (max-width: 500px) { .card { padding: 24px 18px; } }

/* ── Stepper ── */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  height: 1px;
  background: var(--borde);
  z-index: 0;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.step-dot .circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paso-inactivo);
  border: 1px solid var(--borde);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--texto2);
  transition: background .2s, border-color .2s;
}
.step-dot.active .circle  { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.step-dot.done   .circle  { background: var(--verde); border-color: var(--verde); color: #fff; }
.step-dot .label {
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texto2);
  white-space: nowrap;
}
.step-dot.active .label { color: var(--texto); font-weight: 400; }

/* ── Títulos de paso ── */
.paso-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.paso-desc {
  font-size: .85rem;
  color: var(--texto2);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Formulario ── */
.fila { display: flex; gap: 14px; }
.fila .fgrupo { flex: 1; }
@media (max-width: 440px) { .fila { flex-direction: column; } }

.fgrupo { margin-bottom: 18px; }
.fgrupo label {
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texto2);
  margin-bottom: 6px;
}
.fgrupo label .req { color: var(--rojo); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--borde);
  border-radius: 4px;
  color: var(--texto);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .95rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--rojo); }
input.error, select.error, textarea.error { border-color: #dc2626; }
select option { background: #fff; }
textarea { resize: vertical; min-height: 72px; line-height: 1.5; }

.sel-wrap { position: relative; }
.sel-wrap::after {
  content: '▾';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--texto2);
  pointer-events: none;
}

/* ── Familiar card ── */
.familiar-card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
}
.familiar-card .familiar-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .05em;
  margin-bottom: 16px;
  color: var(--texto2);
}
.btn-quitar {
  position: absolute; top: 14px; right: 14px;
  background: none;
  border: 1px solid var(--borde);
  border-radius: 4px;
  color: var(--texto2);
  font-size: .75rem;
  padding: 3px 8px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-quitar:hover { border-color: var(--rojo); color: var(--rojo); }

.btn-agregar {
  width: 100%;
  background: none;
  border: 1px dashed var(--borde);
  border-radius: 6px;
  color: var(--texto2);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .9rem;
  padding: 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  margin-top: 4px;
}
.btn-agregar:hover { border-color: var(--texto2); color: var(--texto); }

/* ── Resumen confirmación ── */
.resumen-bloque {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.resumen-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--texto2);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.resumen-fila {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--borde);
}
.resumen-fila:last-child { border-bottom: none; }
.resumen-fila span:first-child { color: var(--texto2); min-width: 100px; }
.resumen-fila span:last-child { text-align: right; }

/* ── Botones de navegación ── */
.nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

/* ── Botones generales ── */
.btn {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .08em;
  font-size: 1rem;
  border-radius: 4px;
  padding: 11px 28px;
  cursor: pointer;
  border: 1px solid var(--borde);
  background: none;
  color: var(--texto);
  transition: background .2s, border-color .2s, color .2s;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { border-color: var(--texto2); }
.btn-primario {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}
.btn-primario:hover { background: var(--rojo-dk); border-color: var(--rojo-dk); }
.btn-primario:disabled { opacity: .5; cursor: not-allowed; }
.btn-bloque { width: 100%; text-align: center; }

/* ── Mensajes de error ── */
.msg-err {
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.30);
  border-radius: 6px;
  color: #991b1b;
  font-size: .85rem;
  padding: 12px 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Estado final / éxito ── */
.estado-final {
  text-align: center;
  padding: 20px 0 10px;
}
.estado-final .icono { font-size: 3rem; margin-bottom: 16px; }
.estado-final h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.estado-final p { color: var(--texto2); line-height: 1.6; font-size: .95rem; }
.estado-final a { color: var(--texto); }

/* ── Badge de estado ── */
.badge {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 10px;
  font-family: 'Bebas Neue', sans-serif;
}
.badge-activo   { background: rgba(45,107,39,.12); color: #2d6b27; border: 1px solid rgba(45,107,39,.25); }
.badge-inactivo { background: rgba(220,38,38,.08); color: #991b1b; border: 1px solid rgba(220,38,38,.25); }
