/* ===== BODY ===== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  padding: 40px 0; /* Espacio para poder hacer scroll si el contenido es más alto que la pantalla del móvil */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: url("fondo.jpg"); /* Ahora busca la imagen localmente */
  background-size: cover;
  background-position: center;
}

/* ===== CAJA CENTRAL (GLASSMORPHISM) ===== */
.container {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 50px 30px;
  border-radius: 24px;
  text-align: center;
  max-width: 400px;
  width: 85%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* ===== LOGO ===== */
.logo img {
  width: 160px;
  margin-bottom: 25px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

/* ===== TEXTOS ===== */
h1 {
  color: #fbbf24;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 10px;
}

p {
  opacity: 0.8;
  margin-bottom: 35px;
  font-size: 15px;
  line-height: 1.5;
}

/* ===== BOTONES ===== */
.botones {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

/* Solo aplicamos los efectos 'Hover' (amarillo y blanco) si usamos un ratón (ordenador), 
   así evitamos que en los móviles táctiles el color se quede bloqueado pegado tras hacer click */
@media (hover: hover) {
  .btn:hover {
    background: #fbbf24;
    color: black;
    border-color: #fbbf24;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  }

  .btn.btn-yellow:hover {
    background: white;
    transform: scale(1.05);
  }
}

/* Efecto super breve SOLO mientras el dedo presiona (para evitar que se quede fijo) */
.btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.15); /* Se enciende blanco sutil y vuelve a transparente */
}

/* ===== SLIDER DE RESEÑAS ===== */
.reviews-wrapper {
  margin-top: 35px;
  position: relative;
  height: 100px; /* Altura reservada para que no empuje el diseño al cambiar */
  width: 100%;
}

.review {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s ease;
  pointer-events: none;
}

.review.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.review div {
  color: #fbbf24;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.review p {
  font-size: 13px;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 6px;
  line-height: 1.4;
  opacity: 0.9;
}

.review .author {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SLIDER DE FOTOS ===== */
.photo-slider {
  margin-top: 10px;
  position: relative;
  width: 100%;
  height: 160px; /* Altura del marco de fotos */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

.photo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la foto para que encaje perfecta sin achatarse */
  opacity: 0;
  transition: opacity 1.2s ease-in-out; /* Fundido suave */
  z-index: 1;
}

.photo-slide.active {
  opacity: 1;
  z-index: 2;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px 20px 0 20px;
  margin-top: 25px;
}

.footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  transition: 0.3s;
}

.footer a:hover {
  color: #fbbf24;
}

.footer img {
  height: 20px;
  width: auto;
  border-radius: 4px;
  opacity: 0.8;
}
