/* styles.css */

/* ===================== VARIABLES ===================== */
:root {
  --color-bg: #fdf6f0;
  --color-accent: #a3c4bc;
  --color-hover: #e4bad4;
  --text-color: #000000;
  --text-color2:  #e1306c;
}

/* ===================== FUENTES ===================== */
@font-face {
  font-family: 'disneyMinus';
  src: url('fonts/waltograph42.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'disneyMayus';
  src: url('fonts/MICKEY.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===================== RESET ===================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 1vw 20vw;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--color-accent);
  color: var(--text-color);
  overflow-x: hidden;
  box-sizing: border-box;
  padding-bottom: 150px; /* Ajusta este número según la altura real de tu footer */
}

.disney{
  font-family: 'disneyMinus';
  color:#e1306c;
}

h1, h2 {
  text-align: center;
}

div{
  margin: 0px;
}

.caja-inicio{
  display: flex;
  flex-direction: row; /* Alinea los elementos en fila horizontal */
  gap: 20px; /* Espacio entre las cajas */
  justify-content: center; /* Centra las cajas horizontalmente */
  align-items: stretch; /* Alinea verticalmente al alto de la más alta */
  padding: 20px;
}

/*Castillo*/
.logo-svg {
  opacity: 0;
  animation: revelarLogo 1.5s ease-out forwards;
  position: relative;
  width: 7vw;
  height: auto;
}

.disney-container {
  display: flex;
  justify-content:center;
  align-items: center;
  gap: 2rem; /* Espacio entre logo y texto */
}

.logo-svg::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 0%, transparent 70%),
                    radial-gradient(circle, #fff 0%, transparent 70%),
                    radial-gradient(circle, #fff 0%, transparent 70%);
  background-size: 15px 15px;
  background-position: 10% 20%, 50% 50%, 80% 30%;
  background-repeat: no-repeat;
  animation: destellos 1.5s infinite ease-in-out;
}



/* ===================== ANIMACIONES ===================== */
/* Animación opcional para fondo */
@keyframes fade {
  0%, 100% { opacity: 1; }
  33% { opacity: 0.7; }
  66% { opacity: 0.4; }
}

/* Animación vueltas */
@keyframes spin {
  0% {
    transform: scale(1.5) rotate(0deg);
  }
  100% {
    transform: scale(1.5) rotate(360deg);
  }
}

/* Animación de entrada */
@keyframes entrada {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* Efecto de revelado horizontal */
@keyframes revelarLogo {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0); /* Oculto desde la derecha */
  }
  50% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0); /* Totalmente visible */
    opacity: 1;
  }
}

/*Efecto chispitas*/
@keyframes destellos {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
/* ===================== SLIDER DE FONDO ===================== */
.background-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* detrás del contenido */
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Para mostrar una imagen activa */
.bg-slide.active {
  opacity: 1;
}

/* ===================== SLIDER DE OFERTAS ===================== */
.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.slider-container {
  display: flex;
  flex-direction: row; /* ← Asegura que los slides estén en fila */
  gap: 20px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: 10px;
}

.ofertas-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Cada slide con marco glass + efecto tilt */
.slide {
  flex: 0 0 auto; /* ← No se encogen ni crecen */
  width: 300px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1); /* glass base */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* 🎯 Zoom + tilt al pasar el ratón */
.slide:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Imagen dentro del slide */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.slide:hover img {
  transform: scale(1.08); /* Zoom solo a la imagen */
}

/* Texto inferior */
.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* ===================== BOTONES DE NAVEGACIÓN ===================== */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.9);
}

.nav-button.left {
  left: 2px;  /* ← Pegada al borde izquierdo */
}

.nav-button.right {
  right: 2px; /* ← Pegada al borde derecho */
}

/* ===================== SCROLL PERSONALIZADO ===================== */
.ofertas-slider::-webkit-scrollbar {
  height: 8px;
}

.ofertas-slider::-webkit-scrollbar-track {
  background: transparent;
}

.ofertas-slider::-webkit-scrollbar-thumb {
  background-color: #e1306c;
  border-radius: 4px;
}


/* ===================== BOTÓN DEL LOGO ===================== */
/* Botón de menú con efecto glass */
.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img {
  width: 63px;
  height: 63px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

#logoB {
  animation: entrada 1s ease-in-out;
}

#logoB:hover {
  animation: spin 1.5s linear infinite;
  filter: drop-shadow(0 0 5px #e1306c) drop-shadow(0 0 10px #e1306c);
}

/* ===================== MENÚ DESPLEGABLE ===================== */
.menu-blur {
  position: fixed;
  top: 0;
  left: -250px;
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 80px 20px;
  box-sizing: border-box;
  transition: left 0.4s ease;
  z-index: 999;
}

.menu-blur.active {
  left: 0;
}

.menu-blur ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-blur li {
  margin: 20px 0;
  font-size: 1rem; /* Escalable */
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5em 1em;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.menu-blur a {
  color: var(--text-color2);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40px;
}

/* Texto del menú */
.menu-text {
  transition: opacity 0.3s ease;
}

/* Icono que aparece al hacer hover */
.menu-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ===================== NOSOTROS BOX ===================== */
.glass-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  margin: 2rem auto;
  max-width: auto;
  color: white;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: entrada 1s ease-in-out;
}

/* ===================== FORMULARIO ===================== */
.contact-form-section {
  background-image: url('img/contacto/libro.jpeg'); /* ← tu imagen local */
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  background: rgba(255, 255, 255, 0.8); /* fondo translúcido */
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.form-container textarea {
  resize: vertical;
  min-height: 100px;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background-color: #ff5a5f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-container button:hover {
  background-color: #e0484d;
}

/* --- ESTILOS CORREGIDOS PARA EL PRICE RANGE SLIDER --- */

/* Contenedor principal del filtro */
.price-filter-container {
    width: 80%;
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.price-filter-container h2 {
    margin-top: 0;
    color: #333;
}

/* Contenedor para mostrar los precios seleccionados */
.price-display-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

/* Contenedor para los dos inputs range */
.slider-control-container {
    position: relative;
    height: 30px; /* Damos un poco más de altura para que quepan bien los manejadores */
}

.slider-control-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    outline: none;
    position: absolute;
    margin: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* CORRECCIÓN CLAVE: El fondo de la barra es transparente */
    pointer-events: none; /* La barra no intercepta el ratón */
}

/* Solo el slider de MAX (el que está al fondo) tendrá una barra gris visible */
#max-price-slider {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
}

/* Estilo del "pulgar" o manejador (thumb) para Chrome, Safari, etc. */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #007BFF;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
    pointer-events: all; /* CORRECCIÓN CLAVE: El manejador SÍ es interactivo */
    position: relative;
    z-index: 1; /* Nos aseguramos que esté por encima de todo */
}

/* Estilo del "pulgar" o manejador (thumb) para Firefox */
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #007BFF;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
    pointer-events: all; /* CORRECCIÓN CLAVE: El manejador SÍ es interactivo */
    position: relative;
    z-index: 1;
}

/* --- FIN DE ESTILOS DEL SLIDER --- */



/* ===================== FOOTER ===================== */
.footer {
  position: fixed;
  bottom: 10px;
  left: 0;
  width: 100%;
  max-width: 100vw;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px 0px;
  font-size: 1rem;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.footer-copy p {
  font-size: 0.8rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.05);
  color: #e1306c;
}

.social-icon {
  width: 3vw;
  height: 3vw;
  transition: filter 0.3s ease;
}

.social-link:hover .social-icon {
  filter: drop-shadow(0 0 5px #ffffff);
}


/* ======================================================= */
/* ===================== RESPONSIVE DESIGN ===================== */
/* ======================================================= */

/* Para tabletas y dispositivos más pequeños (hasta 992px) */
@media (max-width: 992px) {
  body {
    padding: 2vw 10vw; /* Reducimos el padding lateral */
  }

  .caja-inicio {
    flex-direction: column; /* Apila las cajas verticalmente */
    gap: 20px;
  }
  
  .logo-svg {
    width: 12vw; /* Hacemos el logo un poco más grande en proporción */
  }

  .disney-container h1 {
    font-size: 1.5rem; /* Ajustamos tamaño de la fuente */
  }
}


/* Para móviles (hasta 768px) */
@media (max-width: 768px) {
  body {
    padding: 4vw 5vw; /* Reducimos aún más el padding */
  }

  h1 {
    font-size: 1.5rem;
  }
  
  .glass-box {
    padding: 1rem;
    margin: 1rem auto;
  }
  
  .disney-container {
      flex-direction: column; /* Apila el logo y el texto en móvil */
      gap: 0.5rem;
  }
  
  .logo-svg {
    width: 80px; /* Tamaño fijo para el logo en móviles */
  }
  
  .footer-social {
      flex-direction: column; /* Apila los links sociales */
      gap: 15px;
  }
  
  .social-link span {
      font-size: 0.9rem; /* Texto de redes sociales más pequeño */
  }
}
