/* Formulario público de registro */

.cabecera {
  background: var(--negro); color: #fff;
  padding: 18px 20px;
}
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; }
.cabecera .marca-texto small { color: var(--rojo-texto); }

.hero {
  background: var(--negro); color: #fff;
  padding: 18px 20px 92px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 9vw, 58px);
  line-height: 1; margin: 6px 0 14px; letter-spacing: -.01em;
}
.hero h1 em { font-style: italic; color: var(--rojo-texto); font-weight: 500; }
.hero p { color: var(--suave); margin: 0; max-width: 520px; font-size: 16px; }
.hero .sobre { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--rojo-texto); font-weight: 700; }

.contenedor { max-width: 680px; margin: 0 auto; }

.tarjeta {
  background: var(--papel); border-radius: 20px; box-shadow: var(--sombra);
  border: 1px solid var(--linea);
  margin: -64px 16px 40px; padding: 26px 20px 24px;
  position: relative;
}
@media (min-width: 720px) {
  .tarjeta { margin: -64px auto 56px; padding: 36px 40px 32px; max-width: 680px; }
}

/* Progreso */
.progreso { margin-bottom: 26px; }
.progreso-barras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.progreso-barras i {
  height: 4px; border-radius: 4px; background: var(--linea); transition: background .3s;
}
.progreso-barras i.hecho { background: var(--texto); }
.progreso-barras i.actual { background: var(--rojo); }
.progreso-texto {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-size: 13px; color: var(--suave); font-weight: 600;
}
.progreso-texto b { color: var(--texto); }

.paso h2 {
  font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1;
  margin: 0 0 6px;
}
.paso .intro { color: var(--suave); margin: 0 0 26px; font-size: 15px; }

.edad-calculada {
  font-size: 13.5px; font-weight: 700; color: var(--ok);
}
.edad-calculada.menor { color: var(--rojo-texto); }

/* Fotos */
.fotos-requeridas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fotos-extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }

.ranura {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px;
  border: 1.5px dashed var(--linea-fuerte); background: var(--papel-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 8px; cursor: pointer; overflow: hidden;
  color: var(--suave); font-size: 12.5px; font-weight: 600; line-height: 1.25;
  transition: border-color .15s, background .15s;
}
.ranura:hover { border-color: var(--texto); color: var(--texto); }
.ranura svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.ranura input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ranura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ranura.llena { border-style: solid; border-color: var(--linea); }
.ranura .etiqueta-foto {
  position: absolute; left: 6px; bottom: 6px; right: 6px; z-index: 2;
  background: rgba(17,16,16,.72); color: #fff; font-size: 11px; padding: 3px 6px;
  border-radius: 6px; text-align: center; backdrop-filter: blur(4px);
}
.ranura .quitar {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.95); color: #0a0909;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ranura .quitar svg { width: 14px; height: 14px; stroke-width: 2.2; }
.ranura.procesando::after {
  content: ""; position: absolute; inset: 0; background: rgba(10,9,9,.7);
}

.subtitulo-seccion {
  font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--suave); margin: 4px 0 10px; display: flex; justify-content: space-between;
}
.subtitulo-seccion span { letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--tenue); }

/* Audios */
.audio-acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.audio-acciones .btn { flex: 1 1 180px; }
.audio-subir { position: relative; overflow: hidden; }
.audio-subir input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.grabando {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radio-sm); background: var(--rojo-suave); border: 1px solid rgba(240,100,107,.4);
  margin-top: 10px;
}
.grabando .punto {
  width: 12px; height: 12px; border-radius: 50%; background: var(--rojo);
  animation: latir 1.2s ease-in-out infinite; flex: none;
}
@keyframes latir { 50% { opacity: .3; } }
.grabando .tiempo { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--rojo-texto); }
.grabando .btn { margin-left: auto; }

.lista-audios { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.item-audio {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px;
  border: 1px solid var(--linea); border-radius: var(--radio-sm); background: var(--papel-2);
}
.item-audio .nombre { font-size: 13px; font-weight: 700; min-width: 70px; }
.item-audio audio { flex: 1; min-width: 0; height: 40px; }
.item-audio button {
  border: 0; background: transparent; cursor: pointer; color: var(--suave);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
}
.item-audio button:hover { background: var(--rojo-suave); color: var(--rojo-texto); }
.item-audio svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Resumen */
.resumen {
  border: 1px solid var(--linea); border-radius: var(--radio-sm); background: var(--papel-2);
  padding: 6px 16px; margin-bottom: 22px;
}
.resumen dl { margin: 0; }
.resumen div {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-bottom: 1px solid var(--linea); font-size: 14.5px;
}
.resumen div:last-child { border-bottom: 0; }
.resumen dt { color: var(--suave); }
.resumen dd { margin: 0; font-weight: 700; text-align: right; }
.resumen .mini-fotos { display: flex; gap: 4px; justify-content: flex-end; }
.resumen .mini-fotos img { width: 30px; height: 40px; object-fit: cover; border-radius: 4px; }

/* Navegación */
.navegacion {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--linea);
}
.navegacion .btn-primario, .navegacion .btn-rojo { flex: 0 1 220px; }
@media (max-width: 420px) { .navegacion .btn-primario, .navegacion .btn-rojo { flex: 1; } }

/* Envío */
.envio {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,9,9,.94);
  display: grid; place-items: center; padding: 24px; backdrop-filter: blur(6px);
}
.envio-caja { width: 100%; max-width: 360px; text-align: center; }
.envio-caja h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0 0 6px; }
.envio-caja p { color: var(--suave); margin: 0 0 20px; font-size: 14.5px; }
.barra-envio { height: 6px; border-radius: 6px; background: var(--linea); overflow: hidden; }
.barra-envio i { display: block; height: 100%; width: 0; background: var(--rojo); transition: width .2s; }
.porcentaje { margin-top: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Gracias */
.gracias { text-align: center; padding: 20px 4px 8px; }
.gracias .sello {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--rojo); display: grid; place-items: center;
}
.gracias .sello svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2.2; }
.gracias h2 { font-family: var(--serif); font-size: 40px; font-weight: 600; margin: 0 0 10px; line-height: 1.05; }
.gracias p { color: var(--suave); max-width: 380px; margin: 0 auto; }

.pie { text-align: center; color: var(--tenue); font-size: 12.5px; padding: 0 20px 36px; }

/* Disponibilidad por día */
.lista-dias { display: flex; flex-direction: column; gap: 10px; }
.dia {
  border: 1px solid var(--linea-fuerte); border-radius: var(--radio-sm); background: var(--papel-2);
  transition: border-color .15s, box-shadow .15s;
}
.dia.activo { border-color: var(--rojo); box-shadow: inset 0 0 0 1px var(--rojo); }
.dia-cabecera {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; padding: 14px 16px; cursor: pointer; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.dia-cabecera input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dia-check {
  grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 7px;
  border: 1.5px solid var(--linea-fuerte); display: grid; place-items: center; background: transparent;
}
.dia-check svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.6; opacity: 0; }
.dia.activo .dia-check { background: var(--rojo); border-color: var(--rojo); }
.dia.activo .dia-check svg { opacity: 1; }
.dia-cabecera input:focus-visible ~ .dia-check { outline: 2px solid var(--rojo); outline-offset: 2px; }
.dia-nombre { font-weight: 800; letter-spacing: .08em; font-size: 14.5px; }
.dia-resumen { font-size: 12.5px; color: var(--tenue); line-height: 1.35; }
.dia.activo .dia-resumen { color: var(--suave); }

.dia-cuerpo { padding: 0 16px 14px; border-top: 1px solid var(--linea); padding-top: 14px; }
.rango-hora {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
  font-size: 14px; font-weight: 600; color: var(--suave);
}
.rango-hora select.input.hora {
  width: auto; flex: 1 1 110px; min-width: 0; max-width: 150px; min-height: 44px;
  padding: 8px 32px 8px 12px; font-size: 15px; background-position: right 10px center;
}
.rango-hora.no-disp {
  background: var(--rojo-suave); border-radius: 10px; padding: 10px; gap: 6px 8px;
}
.rango-hora .etq-no { color: var(--rojo-texto); width: 100%; font-size: 12.5px; font-weight: 700; }
@media (min-width: 560px) { .rango-hora .etq-no { width: auto; } }
.quitar-nd {
  border: 0; background: transparent; color: var(--rojo-texto); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; flex: none; margin-left: auto;
}
.quitar-nd:hover { background: rgba(240, 100, 107, .14); }
.quitar-nd svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.dia-acciones { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.enlace-mini {
  background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 700; font-size: 13.5px;
  color: var(--texto); text-decoration: underline; text-underline-offset: 3px; text-align: left;
}
.enlace-mini:hover { color: var(--rojo-texto); }
.campo.con-error .dia:not(.activo) { border-color: var(--rojo); }
.resumen dd { line-height: 1.5; }

/* Tamaños para Poppins */
.hero h1 { font-size: clamp(30px, 8vw, 46px); font-weight: 700; line-height: 1.08; }
.hero h1 em { font-weight: 600; }
.paso h2 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.envio-caja h3 { font-size: 22px; font-weight: 700; }
.gracias h2 { font-size: 32px; font-weight: 700; }
.cabecera .logo-img { height: 54px; }
