:root {
    --color-primario: #FFF5FA; 
    --color-secundario: #D94A8B; 
    --color-acento: #54C5C3; 
    --color-texto: #333333; 
    --fuente-titulos: 'Sacramento', cursive; 
    --fuente-texto: 'Nunito', sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Sacramento&family=Nunito:wght@400;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fuente-texto); background-color: var(--color-primario); color: var(--color-texto); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
h1, h2, h3 { font-family: var(--fuente-titulos); color: var(--color-secundario); font-weight: normal; }
h3 { color: var(--color-acento); font-family: var(--fuente-texto); font-weight: 700; font-size: 1.5rem; }

/* HEADER */
header {
    position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; background: rgba(255, 245, 250, 0.98); backdrop-filter: blur(10px); z-index: 1000;
    border-bottom: 2px solid var(--color-secundario); box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
header .logo img { height: 85px; transition: height 0.3s ease; }

.menu-toggle { display: none; background: none; border: none; font-size: 2rem; color: var(--color-secundario); cursor: pointer; }

.header-right { display: flex; align-items: center; gap: 3rem; transition: all 0.3s ease; }
header nav ul { list-style: none; display: flex; gap: 2.5rem; }
header nav a { text-decoration: none; color: var(--color-secundario); font-family: var(--fuente-texto); font-weight: 700; font-size: 1.3rem; position: relative; padding-bottom: 5px; }
header nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background-color: var(--color-acento); transition: width 0.3s ease; }
header nav a:hover::after { width: 100%; }
.header-socials { display: flex; gap: 15px; align-items: center; }
.header-socials a { color: var(--color-secundario); font-size: 1.5rem; transition: all 0.3s ease; }
.header-socials a:hover { color: var(--color-acento); transform: scale(1.1); }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 140px; padding-bottom: 3rem; background: var(--color-primario); }
.carousel-container { position: relative; width: 98%; max-width: 1800px; height: 75vh; margin: 0 auto 1.5rem auto; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 1; }
.carousel-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.carousel-image.active { opacity: 1; }
.hero-text { position: relative; z-index: 1; max-width: 900px; padding: 0 1rem; }
.hero-text h1 { font-size: 5rem; line-height: 1.2; margin-bottom: 0.5rem; color: var(--color-secundario); }
.hero-text p { font-size: 1.3rem; font-weight: 400; }

/* SABORES */
#sabores { background-color: #ffffff; }
#sabores h2, #contacto h2, #nosotros h2, #videos h2 { text-align: center; margin-bottom: 2rem; font-size: 4rem; }
.filtros { text-align: center; margin-bottom: 2rem; }
.filtro-btn { background: none; border: 2px solid var(--color-acento); border-radius: 25px; color: var(--color-acento); padding: 0.7rem 2rem; margin: 0 0.5rem; cursor: pointer; transition: all 0.3s ease; font-family: var(--fuente-texto); font-weight: 700; font-size: 1rem; }
.filtro-btn.active, .filtro-btn:hover { background: var(--color-acento); color: white; transform: scale(1.05); }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; min-height: 500px; }

.galeria-item { display: none; overflow: hidden; position: relative; cursor: pointer; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); aspect-ratio: 1 / 1; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.galeria-item:hover img { transform: scale(1.1); }

.sabor-nombre {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(217, 74, 139, 0.85); color: white; text-align: center; padding: 10px;
    font-weight: 700; font-size: 1.2rem; transform: translateY(100%); transition: transform 0.3s ease;
}
.galeria-item:hover .sabor-nombre { transform: translateY(0); }
@media (max-width: 768px) {
    .sabor-nombre { transform: translateY(0); padding: 5px; font-size: 1rem; }
}

/* VIDEOS (SCROLL HORIZONTAL UNO POR UNO) */
#videos { background-color: var(--color-primario); text-align: center; }

.video-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Fuerza a detenerse en cada video */
    -webkit-overflow-scrolling: touch; 
    width: 100%;
    max-width: 800px; /* Ancho máximo para desktop */
    margin: 0 auto;
    scrollbar-width: none; /* Oculta barra en Firefox */
}
.video-scroll-container::-webkit-scrollbar { display: none; /* Oculta barra en Chrome/Safari */ }

.video-card {
    flex: 0 0 100%; /* Ocupa el 100% del contenedor */
    scroll-snap-align: center;
    aspect-ratio: 16 / 9; /* Formato Youtube Normal */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #000;
}

.video-card iframe { width: 100%; height: 100%; }

/* Controles de puntos (Dots) */
.video-dots-container { display: flex; justify-content: center; gap: 12px; margin-top: 15px; }
.video-dot { width: 12px; height: 12px; background-color: #ddd; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.video-dot:hover { background-color: var(--color-acento); }
.video-dot.active { background-color: var(--color-secundario); transform: scale(1.3); }


/* NOSOTROS & CONTACTO */
.about-container { display: flex; align-items: center; gap: 3rem; }
.about-texto { flex: 2; text-align: left; }
.about-imagen { flex: 1; text-align: center; }
.about-imagen img { max-width: 100%; border-radius: 15px; }

#contacto { background-color: #ffffff; text-align: center; }
.form-container { max-width: 600px; margin: 0 auto; padding: 20px; background: var(--color-primario); border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.contact-form { display: flex; flex-direction: column; gap: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--color-secundario); }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 2px solid #ddd; border-radius: 8px; font-family: var(--fuente-texto); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-acento); outline: none; }
.links-contacto { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 0; margin-bottom: 2rem; }
.link-item { padding: 1rem 2rem; border: 2px solid var(--color-secundario); border-radius: 30px; text-decoration: none; color: var(--color-secundario); font-weight: 700; transition: all 0.3s ease; }
.link-item:hover { background-color: var(--color-secundario); color: white; transform: scale(1.05); }

/* FOOTER */
footer { text-align: center; padding: 2rem; background: var(--color-secundario); color: white; }
footer p { font-size: 0.9rem; margin: 0; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; padding: 10px; }
.lightbox-wrapper { position: relative; max-width: 95%; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; align-items: center; background: transparent; border-radius: 10px; padding: 10px; scrollbar-width: thin; scrollbar-color: var(--color-secundario) transparent; }
.lightbox-contenido { max-width: 100%; max-height: 50vh; object-fit: contain; border-radius: 10px; }
.info-producto { background: white; width: 100%; max-width: 400px; margin-top: 15px; padding: 15px; border-radius: 10px; text-align: center; color: var(--color-texto); box-shadow: 0 5px 20px rgba(0,0,0,0.5); }

.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 2rem; cursor: pointer; padding: 20px; z-index: 10001; transition: transform 0.2s; background: rgba(0,0,0,0.3); border-radius: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; }
.lightbox-nav:hover { background: rgba(217, 74, 139, 0.8); transform: translateY(-50%) scale(1.1); }
.nav-prev { left: 10px; }
.nav-next { right: 10px; }

@media (max-width: 600px) {
    .lightbox-nav { font-size: 1.5rem; width: 40px; height: 40px; padding: 10px; top: unset; bottom: 20px; transform: none; }
    .nav-prev { left: 20px; }
    .nav-next { right: 20px; }
    .lightbox-contenido { max-height: 40vh; }
}

/* CARRITO */
.carrito-flotante { position: fixed; bottom: 30px; right: 30px; background: var(--color-secundario); color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; cursor: pointer; z-index: 2000; box-shadow: 0 4px 15px rgba(217, 74, 139, 0.5); transition: transform 0.3s; }
.carrito-flotante:hover { transform: scale(1.1); }
#carrito-contador { position: absolute; top: -5px; right: -5px; background: var(--color-acento); font-size: 14px; font-weight: bold; width: 25px; height: 25px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid white; }
.modal-carrito { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 3000; justify-content: center; align-items: center; }
.modal-contenido { background: white; padding: 2rem; border-radius: 15px; width: 90%; max-width: 450px; position: relative; text-align: center; max-height: 85vh; overflow-y: auto; }
.cerrar-carrito { position: absolute; top: 10px; right: 20px; font-size: 30px; cursor: pointer; color: #aaa; }
.cerrar-carrito:hover { color: var(--color-secundario); }
.total-texto { font-size: 1.2rem; font-weight: bold; margin: 1rem 0; color: var(--color-secundario); }
.btn-enviar { display: block; width: 100%; padding: 1rem; background-color: var(--color-secundario); color: white; border: none; border-radius: 10px; font-family: var(--fuente-texto); font-weight: 700; font-size: 1.2rem; cursor: pointer; transition: background-color 0.3s ease; }
.btn-enviar:disabled { background-color: #ccc; cursor: not-allowed; }
.btn-enviar:hover:not(:disabled) { background-color: #c5377a; }

/* RESPONSIVE MENU */
@media (max-width: 768px) {
    .menu-toggle { display: block; z-index: 1001; }
    .header-right { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: white; flex-direction: column; justify-content: center; box-shadow: -5px 0 15px rgba(0,0,0,0.1); padding: 2rem; }
    .header-right.nav-active { right: 0; }
    header nav ul { flex-direction: column; gap: 2rem; text-align: center; }
    header .logo img { height: 60px; }
    .hero { padding-top: 150px; }
    .carousel-container { height: 50vh; }
    .hero-text h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem !important; }
    .about-container { flex-direction: column; }
}