body {
  margin: 0;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

h1 {
  font-size: 39px;
  font-weight: 300;
  line-height: 46.8px;
}

.seccion {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Asegura que el contenido y el footer se apilen verticalmente */
  justify-content: center;
  align-items: center;
  height: 85vh;
  padding: 2rem;
  color: white;
  text-align: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.impar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.par {
  background-color: #333;
}

.imagenNombre {
  width: 50%;
  animation: fadeIn 2s ease-in forwards;
}

.fondo1 {
  background-image: url('data/fondo53Light.jpg');
  background-color: rgba(0, 0, 0, 0.5);
  background-size: cover;
  background-position: 0% 15%;
  background-repeat: no-repeat;
   animation: fadeIn 4s ease-in forwards;
}

.seccion-pastel {
  width: 100%;
  background-color: #b5a2b2;
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 25px;
  z-index: 2;
}

.fondo2 {
  background-image: url('data/carrusel4.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 33vh;
  background-position: 100% 45%;
}

.fondo3 {
  background-image: url('data/Valeria.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 33vh;
  background-position: 0% 17%;
}

.contenido {
  font-size: 20px;
  font-weight: 00;
  letter-spacing: 1px;
  line-height: 24px;
  z-index: 2;
}

.seccion-blanco {
  background-color: #ffffff;
  /* Fondo blanco */
  color: #b5a2b2;
  /* Lavanda pastel */
  padding: 1rem 2rem;
  text-align: center;
}

.contenido-pastel {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* .cuenta-regresiva {
  background-color: #ffffff;
  color: #b5a2b2;
  text-align: center;
  padding: 4rem 2rem;
} */

.contador {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.unidad {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.5rem;
}

.unidad span {
  font-weight: bold;
}

.unidad label {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #b5a2b2;
}

.boton-pastel {
  background-color: #b5a2b2;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 2rem;
  /* 👈 Separación desde el elemento anterior */
}

.boton-pastel:hover {
  background-color: #9c849a;
  /* Un tono más oscuro al pasar el mouse */
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-contenido {
  background-color: #fff;
  margin: 10% auto;
  padding: 1rem;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  position: relative;
  color: #b5a2b2;
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.modal-contenido iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: white;
  color: black;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  /* 🔵 Círculo perfecto */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.cerrar:hover {
  transform: scale(1.1);
  /* Efecto sutil al pasar el mouse */
}

a {
  text-decoration: none;
  color: #fff;
}

b {
  font-size: 25px;
}

svg {
  width: 75px;
  height: 75px;
}

.icono-vestido {
  width: 40px;
  /* 10% del ancho de la pantalla */
  max-width: 60px;
  /* Tamaño máximo */
  height: auto;
  /* Mantiene proporción */
}

.imagen-animada {
  z-index: 1;
  width: 40px;
  opacity: 0;
  position: relative;
  animation: aparecerMoverDesaparecer 3s ease-in-out infinite;
}

@keyframes aparecerMoverDesaparecer {
  0% {
    opacity: 0;
    top: 0;
  }

  30% {
    opacity: 1;
    top: 20px;
  }

  70% {
    opacity: 1;
    top: 60px;
  }

  100% {
    opacity: 0;
    top: 100px;
  }
}

.imagen-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.imagen-estilizada {
  width: 200px;
  border-radius: 15px;
  /* Bordes redondeados */
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.imagen-estilizada:hover {
  opacity: 0.7;
  /* Se opaca */
  transform: scale(1.1);
  /* Zoom suave */
}

.modal-imagen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  /* evita clics cuando está oculto */
  transition: opacity 0.5s ease;
  display: flex;
  object-fit: contain;
  overflow-y: auto;
  /* 👈 Esto permite scroll vertical si el contenido se desborda */
  /* padding: 20px; */
}

.modal-imagen.active {
  opacity: 1;
  pointer-events: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* formulario */
.formulario {
  display: grid !important;
  grid-template-columns: 1fr 2fr;
  /* label ocupa 1 parte, input 2 partes */
  gap: 10px 20px;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
}

.campo {
  display: contents;
  /* permite que label e input se alineen en la grid */
}

label {
  text-align: left;
  /* padding-right: 10px; */
}

.formulario input {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  /* background-color: #f9f9f9; */
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.formulario input:not([type="submit"]):not([type="button"]):not([type="reset"]):focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
  outline: none;
  background-color: #fff;
}


.button {
  grid-column: span 2;
  /* el botón ocupa ambas columnas */
  padding: 10px 20px;
  margin-top: 10px;
  border: none !important;
}


/* respuesta formulario */
#respuestaConfirmar {
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  display: none;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

#respuestaConfirmar.exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#respuestaConfirmar.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

/* .contenedor {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #f0f0f0;
      padding: 10px 20px;
      border-radius: 8px;
      max-width: 400px;
      margin: 20px auto;
      font-family: Arial, sans-serif;
    } */

.izquierda {
  flex: 1;
  font-size: 16px;
}

.derecha {
  font-size: 20px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  padding-left: 20px;
  cursor: pointer;
}

/* Botón flotante */
#controlMusica {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background-color: #b5a2b2;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#controlMusica:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

#controlMusica:active {
  transform: scale(0.95);
}



/* 📱 Diseño responsivo */
/* @media screen and (max-width: 360px) and (max-height: 800px) { */
@media (max-width: 768px) {
  .seccion {
    height: auto;
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .fondo1 {
    /*background-image: url('data/fondoS.png');*/
    background-color: rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: 65% 50%;
    background-repeat: no-repeat;
    min-height: 70vh;
  }

  .fondo2 {
    background-position: 100% 100%;
  }

  .fondo3 {
    background-position: 100% 75%;
  }

  .footer-seccion {
    font-size: 0.8rem;
    padding: 0.75rem 0;
  }

  .contenido {
    padding: 1rem;
  }

  .unidad {
    font-size: 2rem;
  }

  .unidad label {
    font-size: 0.9rem;
  }

  .icono-vestido {
    width: 15vw;
    /* Un poco más grande en pantallas pequeñas */
  }

  .imagen-animada {
    width: 5vw;
  }

  .imagen-container {
    flex-direction: column;
    /* Apila verticalmente */
    align-items: center;
    /* Centra horizontalmente */

  }

  .cerrar {
    font-size: 26px;
    top: 15px;
    right: 15px;
  }

}

  /* Estilos específicos para 1536x864 */ 
@media screen and (min-width: 1281px) and (max-width: 1536px) and (min-height: 721px) and (max-height: 864px) {
  .seccion {
    height: 75vh;
  }

  .imagenNombre {
    width: 30%;
  }

  .imagen-animada {
    width: 1vw;
  }

}

/* laptop pequeña */
@media screen and (min-width: 1280px) and (max-height: 720px) {
  .seccion {
    height: 70vh;
  }

  .imagenNombre {
    width: 30%;
  }

  .imagen-animada {
    width: 1vw;
  }

}

/* telefono */
@media screen and (max-width: 800px) and (max-height: 360px) {
  .seccion {
    height: 75vh;
  }

  .imagenNombre {
    width: 20%;
  }

  .imagen-animada {
    width: 2vw;
  }


  .fondo1 {
    /*background-image: url('data/fondoS.png');*/
    background-position: 0% 15%;
  }


  .fondo2 {
    background-position: 100% 60%;
  }

  .fondo3 {
    background-position: 0% 35%;
  }
}



@media (hover: none) {
  .imagen-estilizada:hover {
    opacity: 1;
    transform: none;
  }
}


/*  x720 */
