/* ================================
   Estilo general
================================ */
body {
  font-family: Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background: #000;
  color: white;
}

/* ================================
   Fondos y contenedores
================================ */
.pantalla, .pantalla-bienvenida {
  background-image: url('../img/fondo-humo.jpg');
  background-size: cover;
  background-position: center right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 60px;
  animation: fadeIn 1s ease-in;
}

.contenido,
.formulario-wrapper {
  max-width: 750px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ================================
   Logo
================================ */
.logo {
  width: 140px;
  opacity: 0;
  animation: fadeUp 0.8s ease-in-out 0.1s forwards;
}

/* ================================
   Preguntas y descripción
================================ */
.descripcion {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-top: 100px;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.8s ease-in-out 0.3s forwards;
}

.pregunta {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 0 0 !important;
  opacity: 0;
  animation: fadeUp 0.8s ease-in-out 0.3s forwards;
}

/* ================================
   Campo con ícono
================================ */
.campo-con-icono {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
}

.icono-campo {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
}

.campo {
  padding: 12px;
  padding-left: 40px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  color: black;
  width: 100%;
  max-width: 800px;
  height: 48px;
  box-sizing: border-box;
  opacity: 0;
  animation: fadeUp 0.8s ease-in-out 0.5s forwards;
}

.campo.is-invalid {
  height: 48px;
  box-sizing: border-box;
  border: 2px solid #dc3545;
}

.campo::placeholder {
  color: #999;
}

.campo:focus::placeholder {
  color: transparent;
}

/* ================================
   Mensajes de error
================================}*/

.invalid-feedback {
  display: block !important;
  color: red !important;
  font-size: 1rem !important;
  padding: 5px;
}


/* ================================
   Botones
================================ */
.btn-continuar,
.btn-siguiente,
.btn-navegacion {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  transition: black 0.3s ease;
  min-width: 140px;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.8s ease-in-out 0.7s forwards;
  border: 2px solid #fff;         /* Borde blanco visible */
  box-shadow: 0 0 10px rgba(0,0,0,0.3); /* Sombra suave */
}

.btn-continuar {
  width: fit-content;
}

.btn-siguiente {
  width: 100%;
  margin-top: 30px;
}

.btn-navegacion:hover,
.btn-siguiente:hover,
.btn-continuar:hover {
  background-color: black;
  color: white;
}

/* ================================
   Barra de progreso
================================ */
.barra-progreso {
  width: 100%;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-top: 100px;
  margin-bottom: 0px;
  overflow: hidden;
}

.barra {
  height: 100%;
  background-color: white;
  width: 0%;
  transition: width 0.3s ease-in-out;
}

/* ================================
   Aviso legal
================================ */
.aviso-legal {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 150px;
  opacity: 0;
  animation: fadeIn 1s ease-in 0.8s forwards;
}

.aviso-legal a {
  color: white;
  text-decoration: underline;
  font-weight: bold;
}

/* ================================
   Modal
================================ */
.modal-content {
  color: black;
}

/* ================================
   Animaciones
================================ */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================
   Responsive general
================================ */
@media (max-width: 768px) {
  .pantalla,
  .pantalla-bienvenida {
    padding: 40px 20px;
    align-items: center;
    text-align: center;
    background-position: 60% center;
  }

  .logo {
    width: 100px;
    margin: 0 auto;
  }

  .descripcion,
  .pregunta {
    font-size: 1.2rem;
    margin-top: 100px;
    line-height: 1.4;
  }

  .contenido,
  .formulario-wrapper {
    align-items: center;
    max-width: 100%;
  }

  .campo {
    width: 250px;
  }

  .btn-navegacion {
    width: 100%;
    max-width: 300px;
  }

  .d-flex {
    flex-direction: column !important;
    gap: 10px;
    align-items: center;
  }

  .aviso-legal {
    font-size: 0.75rem;
    padding: 0 10px;
    text-align: center;
    margin-top: 220px;
  }

  .barra-progreso {
    margin-top: 50px;
    margin-bottom: 10px;
  }
}


/* ================================
   Paso 5 – Estilo exclusivo TELÉFONO
================================ */
#telefono-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 750px;
  flex-wrap: nowrap;
  margin-top: 20px;
  position: relative;
}

.select-prefijo {
  max-width: 110px;
  min-width: 95px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 1rem;
  height: 48px;
}

.campo-telefonico {
  width: 100%;
  height: 48px;
  line-height: 48px; /* ✅ Centra visualmente el texto */
  padding-left: 40px;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  outline: none;
  color: black;
  box-sizing: border-box;
}

.campo-telefonico.is-invalid {
  border-color: #dc3545;
}

#telefono-container .icono-campo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
}

#error-telefono {
  margin-top: 10px !important;
  margin-left: 4px;
}

@media (max-width: 768px) {
  #telefono-container {
    display: flex;
    flex-direction: column;       /* 🔥 Uno debajo del otro */
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .select-prefijo {
    width: 300px;
    max-width: 100%;
    height: 44px;
    font-size: 1rem;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .campo-con-icono {
    width: 250px;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #6c757d;
  }
}


.input-con-icono .icono-campo {
  position: absolute;
  left: 12px;
  top: 12px; /* ✅ Ícono fijo sin depender del borde del input */
  font-size: 1.2rem;
  color: #999;
  z-index: 2;
  pointer-events: none;
}

#telefono:focus::placeholder {
  color: transparent;
}

/* === Ajuste para mensaje de error en correo === */
#email {
  display: block;
}

#email.is-invalid {
  height: 48px;
}

#email + .invalid-feedback {
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 250px !important;
  margin-left: 4px;
  position: relative;
  display: block !important;
}

#email:focus::placeholder {
  color: transparent;
}

/* ================================
   Paso 7 – Ocasión del outfit
================================ */

/* Reutiliza .pantalla y .formulario-wrapper tal como en pasos anteriores */

.barra-progreso-asesoria {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.barra-progreso-asesoria .barra {
  height: 100%;
  background-color: white;
  width: 0;
  transition: width 0.3s ease;
}

/* Opciones circulares */
.opcion-outfit {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  color: white;
}

.opcion-outfit input[type="radio"] {
  display: none;
}

.opcion-outfit .img-wrap {
  width: 120px;
  height: 120px;
  margin: auto;
  border-radius: 0;
  overflow: hidden;
  border: 4px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opcion-outfit input[type="radio"]:checked ~ .img-wrap {
  border-color: #00ff00;
}

.opcion-outfit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.etiqueta-opcion {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  font-size: 16px;
  color: white;
}

/* Alineación de botones con misma clase usada antes */
.botones-navegacion {
  opacity: 0;
  animation: fadeUp 0.8s ease-in-out 0.7s forwards;
}

.img-circle-boda {
  width: 200px;
  height: 200px;
  border: 4px solid white;
  border-radius: 50%;
  overflow: hidden;
  margin: 20px auto;
}

.img-circle-boda img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.campo.is-invalid {
  border: 2px solid #dc3545;
}

/* ================================
   Responsive para Paso 8
================================ */
@media (max-width: 768px) {
  .formulario-wrapper {
    align-items: center;
    text-align: center;
  }

  .row.g-2.mb-4 {
    flex-direction: column;
    align-items: center;
  }

  .row.g-2.mb-4 .col-12,
  .row.g-2.mb-4 .col-6,
  .row.g-2.mb-4 .col-md-4 {
    width: 100%;
    max-width: 400px;
  }

  .campo {
    width: 100% !important;
  }

  .form-select.campo {
    text-align: center;
  }

  .clima-evento-opciones {
    flex-direction: column !important;
    align-items: center;
    gap: 20px;
  }

  .opcion-outfit {
    width: 100%;
  }

  .botones-navegacion {
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
  }

  .botones-navegacion .btn-navegacion {
    max-width: 300px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .formulario-wrapper .row.g-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .formulario-wrapper .row.g-3 .col-4,
  .formulario-wrapper .row.g-3 .col-md-2 {
    flex: 0 0 8%;
    max-width: 48%;
  }

  .formulario-wrapper .img-wrap {
    width: 100px;
    height: 100px;
    margin: auto;
  }

  .formulario-wrapper .etiqueta-opcion {
    font-size: 0.9rem;
    display: block;
    margin-top: 8px;
  }

  #campoOtro {
    margin-top: 40px;
    text-align: center;
  }

  #campoOtro .campo {
    max-width: 100%;
    width: 100%;
  }

  .botones-navegacion {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* Cambia orden de botones en móvil */
@media (max-width: 768px) {
  .botones-navegacion {
    flex-direction: column-reverse !important;
    gap: 10px;
    align-items: center;
  }
}

#primer_nombre,
#segundo_nombre,
#primer_apellido,
#segundo_apellido {
  text-align: center;
}

/* ================================
   🔧 Ajuste para ícono en TELÉFONO cuando hay error
================================ */

.input-con-icono {
  position: relative;
  width: 100%;
  height: 48px; /* ✅ Altura fija para evitar empuje por errores */
}

.input-con-icono .campo-telefonico {
  height: 100%; /* ✅ Ocupa la altura del contenedor fijo */
  line-height: 48px;
  padding-left: 40px;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  outline: none;
  color: black;
  width: 100%;
  box-sizing: border-box;
}

.input-con-icono .campo-telefonico.is-invalid {
  border: 2px solid #dc3545;
}

.input-con-icono .icono-campo {
  position: absolute;
  top: 12px;  /* ✅ Fijo desde el top, sin transform */
  left: 12px;
  font-size: 1.2rem;
  color: #999;
  pointer-events: none;
  z-index: 2;
}



