/* Melcochómetro — estilos funcionales (copy lúdico estilo Melcochita).
   Sigue siendo un frontend de referencia, no el diseño final. */

* {
    box-sizing: border-box;    
    font-style: normal;
    font-weight: normal;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
  color: #241d15;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

@font-face {
    font-family: 'LiquidAmber';
    src: url('../fonts/LiquidAmber-Regular.woff2') format('woff2'),
        url('../fonts/LiquidAmber-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Isidora Sans Medium';
    src: url('../fonts/IsidoraSans-Medium.woff2') format('woff2'),
        url('../fonts/IsidoraSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Isidora Sans Semibold';
    src: url('../fonts/IsidoraSans-SemiBold.woff2') format('woff2'),
        url('../fonts/IsidoraSans-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Isidora Sans Bold';
    src: url('../fonts/IsidoraSans-Bold.woff2') format('woff2'),
        url('../fonts/IsidoraSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


.contenedor {
  width: 100%;
  max-width: 480px;
}

h1 {
  display: none;
  text-align: center;
  margin-bottom: 2px;
  color: #b3401f;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
}

.subtitulo {
  display: none;
  text-align: center;
  color: #6b6255;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 18px;
}

/* ---- Intro ---- */
.intro {
  display: none;
  text-align: center;
  color: #4c453b;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 auto 22px;
  max-width: 420px;
}

.intro p {
  margin: 0 0 6px 0;
}

.intro-hook {
  font-weight: 800;
  font-size: 1.1rem;
  color: #b3401f;
}

.tarjeta {
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- Pasos del formulario ---- */
.paso {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paso-titulo {
  color: #F5E30D;
  margin: 0;
  font: 1.6rem/1.1'LiquidAmber';
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

label {
  color: #fff;
  font: 1.6rem/1.1'LiquidAmber';
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}

.ayuda {
  margin: 0 0 4px 0;
  font-size: 0.82rem;
  font-style: italic;
  color: #8a8171;
  display: none;
}

input[type="text"],
select {
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  color: #fff;
  background: #313131;
}

input[type="text"]:focus,
select:focus {
  font: 1rem/1.3 'Isidora Sans Medium';
  outline: none;
  border-color: #b3401f;
}

/* ---- Nota de privacidad ---- */
.nota-privacidad {
  background: #faf6ef;
  border: 1px dashed #e0d6c4;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #6b6255;
  line-height: 1.4;
}

.nota-privacidad p {
  margin: 0;
}

.nota-privacidad-titulo {
  font-weight: 700;
  color: #4c453b;
  margin-bottom: 2px !important;
}

.mensaje-validacion {
  font-size: 0.85rem;
  color: #c0392b;
  background: #fdecea;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0;
}

button {
    padding: 14px 16px;
    border: none;
    background: #F5E30D;
    color: #000;
    cursor: pointer;
    font: 2rem / 1.1 'LiquidAmber';
    max-width: 250px;
    border-radius: 36px;
    display: block;
    margin: 0 auto;
    width: 100%;
}

button:hover:not(:disabled) {

}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secundario {
  background: #ffffff;
  color: #000;
  font-size: 1.3rem;
}

.btn-secundario:hover:not(:disabled) {
  background: #fbeee9;
}

/* ---- Cargando ---- */
#estado-cargando {
  text-align: center;
  margin-top: 28px;
}

#texto-cargando {
  margin: 0;
  font: 2rem/1.1 'LiquidAmber';
  color: #F5E30D;
}

.gif-cargando {
  display: block;
  margin: 20px auto 0;
  max-width: 240px;
  width: 66%;
}

/* Barra de progreso de generación (bajo el gif) */
.barra-carga {
  width: 82%;
  max-width: 320px;
  height: 12px;
  margin: 22px auto 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}
  .barra-carga-fill {
    height: 100%;
    width: 0%;
    background: #F5E30D;
    border-radius: 999px;
  }

/* ================= SKIN DEL RESULTADO ================= */
#tarjeta-resultado {
  gap: 22px;
  padding: 30px 24px 32px;
  text-align: center;
}

.etiqueta-resultado {
  display: none;
}

/* Chapa (título grande, blanco) */
#tarjeta-resultado .texto-chapa {
  color: #f5e40f;
  font: 4rem/1.05 'LiquidAmber';
  letter-spacing: 0.01em;
  margin: 4px 0 2px;
  text-align: center;
  text-transform: uppercase;
}

/* Remate */
#tarjeta-resultado .remate {
  color: #fff;
  font: 1.25rem/1.25 'LiquidAmber';
  margin: 6px 0;
  text-align: center;
  text-transform: uppercase;
}

/* Fila de botones de audio (amarillos) */
.fila-audio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
  #tarjeta-resultado .btn-audio {
    border: 1px solid #fff;
    align-items: center;
    background: #000;
    border-radius: 40px;
    color: #fff;
    display: flex;
    flex: 1 1 190px;
    font: 1.2rem/1 'LiquidAmber';
    gap: 8px;
    justify-content: center;
    margin: 0;
    max-width: none;
    padding: 15px 18px;
    text-transform: uppercase;
    width: auto;
  }
    #tarjeta-resultado .btn-audio:hover:not(:disabled) {
      filter: brightness(1.05);
      transform: translateY(-1px);
    }
    #tarjeta-resultado .btn-audio[hidden] { display: none; }
    .btn-audio .ico { font-size: 1.05rem; }
    .btn-audio .ico img{
          max-width: 20px;
    }
    .btn-audio .ico-svg {
      fill: none;
      height: 18px;
      stroke: #fff;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 2;
      width: 18px;
    }

/* Feedback: solo emojis */
#tarjeta-resultado .fila-feedback {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin: 0;
}
  #tarjeta-resultado .btn-feedback {
    background: none;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 2rem;
    line-height: 1;
    margin: 0;
    max-width: none;
    padding: 6px;
    transition: transform 0.12s ease, filter 0.15s ease;
    width: auto;
  }
    #tarjeta-resultado .btn-feedback:hover:not(:disabled) { transform: scale(1.18); }
    #tarjeta-resultado .btn-feedback.votado {
      filter: drop-shadow(0 0 7px rgba(245, 227, 13, 0.75));
      transform: scale(1.2);
    }
    #tarjeta-resultado .btn-feedback:disabled { cursor: default; opacity: 1; }

.mensaje-feedback {
  color: #9a9a9a;
  font: 0.85rem/1.3 'Isidora Sans Medium';
  margin: 0;
  text-align: center;
}

/* Botón principal amarillo con sombra roja 3D */
#tarjeta-resultado .btn-otra-victima {
  background: #F5E30D;
  border-radius: 40px;
  color: #111;
  font: 1.8rem/1 'LiquidAmber';
  margin: 12px auto 0;
  max-width: 360px;
  padding: 17px 24px;
  text-transform: uppercase;
  width: 100%;
  box-shadow: 0 7px 0 0 #e4002b;
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
}
  #tarjeta-resultado .btn-otra-victima:hover:not(:disabled) {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 8px 0 0 #e4002b;
  }
  #tarjeta-resultado .btn-otra-victima:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 3px 0 0 #e4002b;
  }

/* "Otra chapa" (mismo pata): secundario sutil */
#tarjeta-resultado .btn-otra-chapa-link {
  background: none;
  color: #bdbdbd;
  font: 0.9rem/1 'Isidora Sans Semibold';
  margin: 0 auto;
  max-width: none;
  padding: 4px 8px;
  text-decoration: underline;
  text-transform: uppercase;
  width: auto;
  display: none;
}
  #tarjeta-resultado .btn-otra-chapa-link:hover:not(:disabled) { color: #F5E30D; }

/* ===== Rediseño tarjeta de resultado ===== */
#tarjeta-resultado .etiqueta-resultado {
  display: block;
  color: #fff;
  font: 1.5rem/1 'LiquidAmber';
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

/* Separadores con líneas: "Otras acciones", "¿Te gustó?" */
.divisor-seccion {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font: 1.5rem/1 'LiquidAmber';
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 2px 0;
}
  .divisor-seccion::before,
  .divisor-seccion::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
  }

/* Feedback en círculos de color */
#tarjeta-resultado .btn-feedback {
  align-items: center;
  background: #5fd63f;
  border-radius: 50%;
  display: flex;
  font-size: 1.9rem;
  height: 62px;
  justify-content: center;
  padding: 0;
  width: 62px;
}
  #tarjeta-resultado #btn-me-gusta { background: #5fd63f; }
  #tarjeta-resultado #btn-no-me-gusta { background: #e8306e; }

.tarjeta.error {
  border: 1px solid #c0392b;
  text-align: center;
}

.tarjeta.error p {
  color: #c0392b;
  margin: 0 0 4px 0;
}

.oculto {
  display: none;
}
