/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fondo de página blanco para que coincida con las diapositivas */
html, body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff; /* Fondo blanco */
  overflow-x: hidden;
  user-select: none;
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: antialiased;
}

.movil {
    display: none;
}


/* BARRA NEGRA PEGADA ARRIBA */
header.barraNegra {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  background-color: #000;
  margin-top: 0 !important;
  padding: 0.5rem 0;
  animation: fadeInDown 0.8s ease forwards;
  transition: transform 0.3s ease-in-out;
}

.navCentro {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logoFlova {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logoFlova img {
  height: 2.2rem;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logoFlova img:hover {
  transform: scale(1.1);
}

.contenedorNav {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.navegador {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.headerOculto {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

/* BARRA DE PROGRESO (NO FIJA) */
.barra-contenedor {
  position: relative; 
  width: 20%;
  margin: 1rem auto; /* 1rem arriba/abajo, centrado auto */
  height: 1.2rem;
  background-color: #ddd;
  border-radius: 1rem;
  overflow: hidden;
}

.barra-azul {
  height: 100%;
  width: 20%;
  background-color: #007bff;
  position: relative;
  transition: width 0.4s ease-in-out;
}

.bolita {
  width: 6rem;
  height: 2.6rem;
  background-color: #007bff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  transition: right 0.4s ease-in-out;
}

/* FORMULARIO MULTIPASO */
.formulario {
  display: flex;
  width: 1300vw;
  transition: transform 0.6s ease-in-out;
}

/* PANTALLA - CORREGIDO */
.pantalla {
  min-width: 100vw;
  min-height: 100vh;
  padding: 1rem 2rem 3rem 2rem; /* Padding-top (1rem) + barra (1rem) = 2rem espacio */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Cambiado de 'center' para alinear arriba */
  align-items: center;
  background-color: #fff;
}

.contenedorPresentacion {
  max-width: 50%;
  text-align: center;
  margin-bottom: 2rem;
}

.contenedorPregunta {
  max-width: 50%;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

p {
  color: rgb(136, 136, 136);
}

input[type="text"],
input[type="email"],
select,
textarea {
  padding: 0.8rem;
  font-size: 1rem;
  width: 80%;
  max-width: 400px;
  margin-bottom: 1rem;
  border: 2px solid #ccc;
  border-radius: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

select option[disabled]:first-child {
  color: #ccc;
}

select:focus option[disabled]:first-child {
  display: none;
}

.botones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0rem;
}

button {
  padding: 0.8rem 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  background-color: #007bff;
  color: #000;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

.error {
  color: red;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* TESTIMONIOS */
.testimonial-carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  padding: 1rem 0;
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.testimonial {
  flex: 0 0 380px;
  margin-right: 30px;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-weight: 300;
}

.testimonial p {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-style: italic;
  color: #333;
}

.testimonial h4 {
  margin: 0;
  font-weight: bold;
  font-size: 1rem;
  color: #007bff;
}

.testimonial small {
  color: #777;
  font-size: 0.9rem;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-380px * 3 - 30px * 3)); }
}

.testimonial-carousel-container::before,
.testimonial-carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.testimonial-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.testimonial-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

/* CHECKBOXES Y BOTONES */
.btn-siguiente {
  transition: all 0.3s ease;
  background-color: #007bff;
  color: black;
  transform: none;
}

.btn-siguiente.inactivo {
  opacity: 0.5;
  cursor: pointer;
  background-color: #007bff;
}

.btn-siguiente.error {
  background-color: #dc3545 !important;
  color: black !important;
  opacity: 1;
  animation: shake 0.5s ease;
  cursor: pointer;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.btn-checkbox {
  display: inline-block;
  margin: 6px 4px;
}

.btn-checkbox input[type="checkbox"],
.btn-radio input[type="radio"] {
  display: none;
}

.btn-checkbox span {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-checkbox.with-image span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-checkbox.with-image img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn-checkbox input[type="checkbox"]:checked + span,
.btn-radio input[type="radio"]:checked + span {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* PANTALLA FINAL */
.exito {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s ease-in-out;
  max-width: 600px;
  margin: 0 auto;
}

.check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #28a745;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: white;
  animation: scaleUp 0.6s ease-out;
  margin-bottom: 1rem;
}

@keyframes scaleUp {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FORMULARIO ADICIONAL */
.formulario-adicional {
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
}

.formulario-adicional input,
.formulario-adicional select {
  padding: 0.8rem;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 1rem;
  border: 2px solid #ccc;
  border-radius: 0.5rem;
  display: block;
}

.telefono-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.telefono-input select {
  flex: 0 0 80px;
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 0.5rem;
}

.telefono-input input {
  flex: 1;
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 0.5rem;
  min-width: 0;
}

/* LAYOUT FINAL */
.contenedor-final {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 2rem;
  margin: 0 auto;
}

.calendario-container {
  flex: 1;
  padding: 1rem;
}

.formulario-container {
  flex: 1;
  padding: 1rem;
}

.formulario-container h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

/* NUEVOS ESTILOS PARA BOTONES DE RADIO */
.btn-radio {
  display: block;
  margin: 10px auto;
  width: 80%;
  max-width: 400px;
}

.btn-radio span {
  display: block;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  font-size: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-radio input[type="radio"]:checked + span {
  border-color: #007bff;
  background-color: #007bff;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* ESTILOS ESPECÍFICOS PARA PANTALLA 12 */
.pantalla:nth-child(12) .btn-radio {
  width: 60%;
  max-width: 300px;
}

.pantalla:nth-child(12) .btn-radio span {
  padding: 12px 20px;
  font-size: 1.1rem;
}

/* OCULTAR BOTÓN ATRÁS */
.botones button[onclick="pasoAnterior()"] {
  display: none;
}


/* --- Responsive para Laptops "cortas" --- */
@media (min-width: 1025px) and (max-height: 900px) {
  h2 {
    font-size: 2.5rem !important; /* Reducir título */
    margin-bottom: 0.3rem;
  }

  .pantalla {
    padding: 1rem 2rem !important; /* Reducir padding vertical */
  }

  .contenedorPregunta {
    margin-bottom: 0.5rem;
  }

  input[type="text"],
  input[type="email"],
  select,
  textarea {
    padding: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  button {
    font-size: 1.2rem;
    padding: 0.6rem 0.8rem;
  }

  .btn-radio span {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .btn-radio {
    margin: 8px auto;
  }
}
/* --- FIN CORRECCIÓN --- */


/* RESPONSIVE: TABLET */
@media (max-width: 1024px) {
  h2 {
    font-size: 2.5rem !important;
  }
  
  .contenedorPresentacion,
  .contenedorPregunta {
    max-width: 70% !important;
  }
  
  .formulario-adicional {
    max-width: 100% !important;
  }
  
  .contenedor-final {
    flex-direction: column;
    gap: 1rem;
  }
  
  .testimonial {
    flex: 0 0 300px !important;
  }

  /* Ajustes para última pantalla en tablet */
  .pantalla:last-child {
    padding-top: 1rem !important;
    justify-content: flex-start;
  }
}

/* RESPONSIVE: MÓVIL */
@media (max-width: 767px) {
  h2 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }
  
  .formulario-container h2 {
    font-size: 1.5rem !important;
  }
  
  .barra-contenedor {
    width: 50% !important;
    margin: 1.5rem auto !important;
  }
  
  .contenedorPresentacion,
  .contenedorPregunta {
    max-width: 90% !important;
    padding: 0 1rem;
  }
  
  input[type="text"],
  input[type="email"],
  select,
  textarea {
    width: 100% !important;
  }
  
  .botones {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .botones button {
    width: 100%;
  }
  
  .btn-checkbox.with-image span {
    padding: 8px !important;
    font-size: 0.9rem;
  }
  
  .btn-checkbox.with-image img {
    width: 16px !important;
    height: 16px !important;
  }
  
  .testimonial-carousel-container {
    display: none;
  }
  
  .pantalla {
    padding: 1rem 1rem 3rem 1rem !important; /* Padding-top ajustado */
    justify-content: center; /* Centrar en móvil */
  }
  
  .contenedor-final {
    flex-direction: column;
  }
  
  .calendario-container,
  .formulario-container {
    width: 100%;
    padding: 0;
  }
  
  .calendario-container iframe {
    height: 400px;
  }

  /* Ajustes para móviles en botones de radio */
  .btn-radio {
    width: 100%;
  }
  
  .pantalla:nth-child(12) .btn-radio {
    width: 80%;
  }

  /* Ajustes para última pantalla en móviles */
  .pantalla:last-child {
    padding: 2rem 1rem !important;
    justify-content: flex-start; /* Empezar desde arriba por el formulario largo */
  }

  .formulario-additional {
    padding-bottom: 2rem;
  }
}

/* Agrega estos estilos al final del archivo CSS */
.contenedor-final {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.formulario-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.formulario-adicional {
  width: 100%;
  margin-top: 2rem;
}

.formulario-adicional input,
.formulario-adicional select {
  width: 100%;
  margin-bottom: 1rem;
}

.telefono-input {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.telefono-input select {
  flex: 0 0 100px;
}

.telefono-input input {
  flex: 1;
}

/* Ajustes para móviles */
@media (max-width: 767px) {
  .formulario-container {
    padding: 1rem;
  }
  
  .contenedorPregunta {
    max-width: 100% !important;
  }
}

.contenedorPregunta > p {
  margin-bottom: 1.5rem;
  display: block;
  width: 100%;
}


.formulario-container h2 {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.btn-checkbox.disabled {
    opacity: 0.5;
    pointer-events: none;
}