/* Variables de Color */
:root {
    --primary: #007d7d; /* Cian Oscuro / Jerky BKUS */
    --secondary: #2c3e50; /* Azul oscuro noche */
    --accent: #b93500;
    --logo-color: #007d7d;
    --text-light: #ecf0f1;
    --text-dark: #2d3436;
    --bg-dark: #1a1a1a;
    --bg-light: #f4f4f4;
    --font-logo: 'Bree Serif', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header Transparente */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}

header.scrolled {
    background: rgba(26, 26, 26, 0.95); /* Fondo oscuro al scrollear */
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    font-family: var(--font-logo);
    color: var(--logo-color);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.highlight {
    color: var(--text-light);
    font-size: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.titulo-oscuro {
    color: var(--text-dark);
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

#login-btn {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

#login-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section (Video) */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Oscurecer video */
    z-index: -1;
}

.hero-content h1 {
    font-family: var(--font-logo);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: scale(1.05);
    background: var(--accent);
}

/* Secciones Generales */
.content-section {
    padding: 80px 20px;
    min-height: 80vh; /* Para dar sensación de infinito/grande */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

h2 {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Catálogo */
.store-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

#search-bar {
    padding: 10px;
    border-radius: 5px;
    border: none;
    width: 300px;
    box-shadow: var(--primary);
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: black;
    padding: 8px 15px;
    margin-left: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-dark);
    /*background: rgba(173, 172, 172, 0.651);*/
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    color: #ecf0f1;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin: 10px 0;
}

.add-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: white;
    color: black;
}

/* Wheel Progress Indicator & Scroll Top */
#scroll-progress-container {
    position: fixed;
    right: 30px;
    bottom: 50%; /* Centrado verticalmente a la derecha */
    transform: translateY(50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.progress-ring__circle {
    transition: 0.35s stroke-dashoffset;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke: var(--primary);
    pointer-events: none;
}

.scroll-icon {
    position: absolute;
    color: white;
    font-size: 1.2rem;
    pointer-events: none;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Oculto al inicio */
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.whatsapp-float.visible {
    opacity: 1;
    pointer-events: all;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

.whatsapp-float img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    color: black;
    position: absolute;
    transition: all 0.3s;
}

.right-slide {
    right: 0;
    top: 0;
    height: 100%;
    width: 400px;
    max-width: 80%;
}

.center-box {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border-radius: 10px;
}

.close-modal {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    #scroll-progress-container { display: none; } /* Ocultar rueda en móvil por espacio */
    .whatsapp-float { left: 20px; bottom: 20px; }
    header { padding: 15px 20px; }
    nav { display: none; } /* Aquí deberías agregar un menú hamburguesa */
}





/* ESTILOS PARA LA SECCIÓN CON EL MAPA INTEGRADO */
.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    border: 2px solid var(--primary); /* Un toque de color en el borde */
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
}

.map-container iframe {
    width: 100%;
    display: block; /* Elimina un pequeño espacio blanco por defecto */
}

.locations-grid {
    display: grid;
    /* Esto crea las columnas automáticamente y las pasa a 1 sola en celulares */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.location-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #eaeaea;
}

.location-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary);
}

.location-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.location-card h3 {
    font-family: var(--font-logo);
    margin-bottom: 10px;
    color: var(--secondary);
}

.location-card p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.location-card strong {
    color: var(--primary);
}

#ubicaciones {
    position: relative;
    overflow: hidden;
}

#ubicaciones video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(6px);
}

#ubicaciones .container {
    position: relative;
    z-index: 2;
}

#titulo-maps {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: black;
    text-shadow: 2px 2px 5px white;
}




/*++++++++++++ SLIDER ++++++++++++*/
/* --- Carrusel Estilo Apple (Solución Horizontal) --- */
.apple-slider-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
    color: var(--text-light);
    text-align: center;
    width: 100%;
    overflow: hidden; /* Evita que nada ensanche la página */
}

.slider-wrapper {
    display: flex;
    gap: 30px;
    /* Padding mágico: ayuda a que la primera tarjeta quede centrada */
    padding: 40px calc(50vw - 30vw); 
    overflow-x: auto; /* Permite el deslizamiento horizontal */
    scroll-snap-type: x mandatory; /* Efecto "imán" de Apple al deslizar */
    scroll-behavior: smooth;
    
    /* Ocultamos la barra de desplazamiento inferior para un look limpio */
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 60%; /* Cada tarjeta ocupa exactamente el 60% del ancho */
    height: 500px;
    position: relative !important; /* CRUCIAL: Encierra la tipografía aquí adentro */
    border-radius: 30px;
    overflow: hidden;
    scroll-snap-align: center; /* Se frena justo en el medio de la pantalla */
    
    /* Efecto de lejanía para las tarjetas inactivas */
    transform: scale(0.85); 
    opacity: 0.4;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-item.active {
    transform: scale(1); /* Tarjeta central en tamaño real */
    opacity: 1;
}

.slider-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; /* Evita que fotos o videos se deformen */
    z-index: 1;
}

.slider-content {
    position: absolute;
    bottom: 40px; 
    left: 40px;
    z-index: 3; /* Por encima de la imagen */
    text-align: left;
    max-width: 80%;
}

.slider-content h3 {
    font-family: var(--font-logo);
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Sombra para que se lea siempre */
}

.slider-content p {
    font-size: 1.1rem;
    color: #f1f1f1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Indicadores (Puntos) */
.slider-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 10px; height: 10px;
    background: rgba(5, 3, 3, 0.507);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 30px; /* Se estira como una píldora */
    border-radius: 10px;
}

/* Ajuste Responsivo para Celulares */
@media (max-width: 768px) {
    .slider-wrapper {
        padding: 20px calc(50vw - 42.5vw);
    }
    .slider-item {
        flex: 0 0 85%; /* Más ancha en el celu */
        height: 400px;
    }
}




/* +++++++++++++++++ BENTO BOX +++++++++++++++++ */
/* --- Sección Bento Box (Estilo Apple) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 24px; /* Un poco más de separación entre cajas */
    max-width: 1200px; /* Centramos el contenido para que no se desparrame en pantallas grandes */
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    /* PREPARACIÓN PARA LA ANIMACIÓN */
    opacity: 0; 
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05); /* Un borde casi invisible para dar definición */
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); /* Sombra más suave y moderna */
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1); /* Una curva de movimiento mucho más elegante */
}

/* ESTADO CUANDO YA ES VISIBLE */
.bento-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mantenemos el efecto hover de Apple, pero solo funciona cuando ya está visible */
.bento-item.show:hover {
    transform: scale(1.02);
}

/* Tamaños especiales para las tarjetas */
.item-large {
    grid-column: span 2; /* Ocupa 2 columnas */
    grid-row: span 2;    /* Ocupa 2 filas (más alta) */
}

.item-wide {
    grid-column: span 2; /* Ocupa 2 columnas a lo ancho */
}

/* Fondos (Videos o Imágenes) */
.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Sombreado oscuro para que el texto sea legible siempre */
.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);*/
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
}

/* Tarjeta sin foto (solo color) */
.solid-bg {
    background-color: var(--bg-dark);
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Contenido de los textos */
.bento-content {
    position: relative;
    z-index: 3;
    color: white;
    font-weight: 600;
    letter-spacing: -0.02em; /* Tipografía más apretada estilo iPhone */
    font-size: 2rem;
}

.bento-content h3 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.bento-content p {
    font-size: 1rem;
    line-height: 1.4;
    color: #e0e0e0;
}

/* Responsivo: En celulares, todo pasa a 1 sola columna */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr; /* 1 sola columna */
        grid-auto-rows: 400px;
    }
    
    .item-large, .item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

#que-es-jerky {
    padding: 100px 0; /* Más espacio arriba y abajo para que la sección respire */
    background-color: #f5f5f7; /* El gris ultra claro clásico de Apple */
}

/*  CONFIGURACIÓN PARA REPRODUCCIÓN AUTOMATICA DE VIDEO EN LA SECCIÓN DEL MAPA*/
.ubicaciones-video {
    position: relative;
    overflow: hidden;
}

.ubicaciones-video .video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(4px);
}

.ubicaciones-video .container {
    position: relative;
    z-index: 2;
}

.ubicaciones-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}





/* =========================================
   FOOTER PREMIUM (Fondo Claro)
========================================= */
.site-footer {
    background-color: #f5f5f7;
    padding: 60px 0 20px 0; /* Ajustamos el padding para hacerle lugar al copyright */
    border-top: 1px solid #e5e5ea;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%; /* 🔥 Antes era 1200px. Al poner 95%, el logo se va bien a la izquierda */
    margin: 0 auto;
    padding: 0 15px;
    flex-wrap: wrap;
    gap: 30px;
}

/* --- LOGO --- */
.footer-brand .footer-logo {
    height: 125px; /* 🔥 Aumentamos drásticamente el tamaño del logo */
    width: auto;
    display: block;
}

/* --- ENLACES DEL CENTRO --- */
.footer-links {
    display: flex;
    gap: 30px; /* Un poquito más de espacio entre links */
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #000;
}

/* --- BOTÓN DE INSTAGRAM --- */
.instagram-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.instagram-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* --- COPYRIGHT LEYENDA --- */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e5e5ea; /* Una línea sutil separadora */
    color: #888;
    font-size: 0.85rem;
}

/* +++++++++++++++++++ NUEVO, CON LA ADICION DE EL EMAIL ++++++++++++++++++++++ */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

/* =========================================
   FOOTER RESPONSIVO (Para Celulares)
========================================= */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-brand .footer-logo {
        height: 70px; /* En celulares lo achicamos un poco para que no ocupe media pantalla */
        margin-bottom: 20px;
    }
}