/* ------------------ GENERAL ------------------ */

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background: #ffffff;
    color: #222;
    overflow-x: hidden;  /* evita scroll horizontal */
}

/* ------------------ BANNER FIJO ------------------ */

.banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 130px;
    background: white;
    padding: 0 24px;

    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    z-index: 100;
    transition: height 0.25s ease, padding 0.25s ease,
                box-shadow 0.25s ease, background 0.25s ease;
}

/* LOGO IZQUIERDA */
.logo-banner {
    width: 210px;
    height: auto;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.25s ease, left 0.25s ease, transform 0.25s ease;
}

/* TEXTO DEL BANNER */
.banner .frase {
    font-size: 2.4rem;
    font-weight: 400;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    transition: font-size 0.25s ease;
}

/* Estado scroll del banner (más compacto, más pro) */
.banner-scrolled {
    height: 100px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 3px 14px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
}

.banner-scrolled .logo-banner {
    width: 160px;
    left: 18px;
}

.banner-scrolled .frase {
    font-size: 1.6rem;
}

/* BOTONES (no usados pero mantenidos) */

.btn-catalogo {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: #000000;
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-catalogo:hover {
    background: #222222;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-volver {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: #000000;
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,108,79,0.3);
}

.btn-volver:hover {
    background: #222222;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,108,79,0.4);
}

/* ------------------ HERO ------------------ */

.hero {
    margin-top: 130px;
    height: 80vh;
    max-height: 820px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;        /* evita espacios raros a la derecha */
}

/* ------------------ ICONOS FLOTANTES ------------------ */

.iconos-flotantes {
    position: fixed;
    right: 20px;
    top: 35%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 200;
}

.iconos-flotantes .icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.25);

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #ffffff;
    font-size: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.icon-lokal {
    background: #006c4f;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-lokal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.icon-wa {
    background: #25d366;
}

.icon-fb {
    background: #1877f2;
}

.icon-ig {
    background: radial-gradient(circle at 30% 30%,
        #fdf497 0,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285AEB 90%);
}

.iconos-flotantes .icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

/* ------------------ SECCIÓN CATÁLOGO ------------------ */

.catalogo {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.catalogo-pagina {
    margin-top: 180px;
}

.catalogo-titulo {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.catalogo-subtitulo {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.catalogo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.catalogo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.card-imagen {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f8f8f8;
}

.card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Ginger Brew un poco más arriba SOLO en teléfono */
.card-imagen--gingerbrew img {
    object-position: center -35px;
}

.catalogo-card:hover .card-imagen img {
    transform: scale(1.08);
}

.card-contenido {
    padding: 24px;
    text-align: center;
}

.card-sabor {
    font-family: "Dancing Script", cursive;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #000000;
}

.card-descripcion {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ------------------ SECCIÓN GALERÍA / RULETA ------------------ */

.galeria {
    width: 100%;
    margin: 40px 0 60px;
    text-align: center;
}

.galeria h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.galeria-subtitulo {
    font-size: 1rem;
    color: #555;
    margin-bottom: 22px;
}

/* Contenedor de la ruleta */
.ruleta {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    background: transparent;
}

/* Pista que se mueve (la animación real la maneja JS) */
.ruleta-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 5px 40px;
    animation: ruleta-scroll 55s linear infinite;
}

/* Cada grupo: bloque rígido (no se encoge) */
.ruleta-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 60px;
}

/* Contenedor de las fotos dentro del grupo (1 o 2) */
.ruleta-group-images {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.ruleta-group-images img {
    height: 380px;
    width: auto;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    background: #fff;
}

/* Texto compartido del grupo */
.ruleta-group-caption {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
}

/* SCOBY */
.caption-marca {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 1.5rem;
}

/* sabor */
.caption-sabor {
    font-family: "Dancing Script", cursive;
    font-weight: 600;
    font-size: 2.2rem;
    margin-top: 4px;
}

/* Animación CSS (fallback) */
@keyframes ruleta-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ruleta:hover .ruleta-track {
    animation-play-state: paused;
}

/* Controles de la ruleta */
.ruleta-controls {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.ruleta-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ruleta-btn i {
    font-size: 16px;
}

.ruleta-btn:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* ------------------ EFECTO REVEAL ------------------ */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------ FOOTER ------------------ */

footer {
    margin-top: 20px;
    padding: 12px 15px;
    background: white;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-whatsapp,
.footer-lokal {
    display: inline-block;
}

.footer-lokal {
    font-weight: 600;
    white-space: nowrap; /* "Puedes comprar por SomosLokal" en una sola línea */
}

.footer-copy {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #777;
}

/* Punto separador entre número WhatsApp y SomosLokal SOLO en web/desktop */
@media (min-width: 769px) {
    .footer-lokal::before {
        content: "•";
        margin: 0 15px 0 6px;
        font-weight: 1000;
        color: #000000;
    }
}

/* ------------------ RESPONSIVE MOBILE ------------------ */

@media (max-width: 768px) {

    .catalogo {
        padding: 0 20px;
        margin: 40px auto;
    }

    .catalogo-titulo {
        font-size: 2.2rem;
    }

    .catalogo-subtitulo {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .catalogo-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .card-imagen {
        height: 280px;
    }

    .card-sabor {
        font-size: 2rem;
    }

    .card-descripcion {
        font-size: 0.9rem;
    }

    /* Ginger Brew con encuadre mejorado SOLO en teléfono */
    .card-imagen--gingerbrew {
        height: 320px; /* un poco más alta que las otras en móvil */
    }

    .card-imagen--gingerbrew img {
        object-position: center -50px; /* sube el encuadre sin achicar la foto */
        transform: none;              /* por si quedó el scale anterior en el CSS */
    }


    .banner {
        height: 90px;
        padding: 0 10px;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    .banner-scrolled {
        justify-content: flex-start;
        padding-top: 6px;
        gap: 6px;
    }

    .logo-banner {
        width: 120px;
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .banner .frase {
        font-size: 0.75rem;
        font-weight: 400;
        padding: 0;
        letter-spacing: 0.08em;
        line-height: 1.2;
    }

    .hero {
        margin-top: 90px;
        height: 60vh;
        max-height: 480px;
    }

    .iconos-flotantes .icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .ruleta-track {
        padding: 5px 24px;
    }

    .ruleta-group {
        margin: 0 36px;
    }

    .ruleta-group-images img {
        height: 300px;
    }

    .caption-marca {
        font-size: 1.3rem;
    }

    .caption-sabor {
        font-size: 1.9rem;
    }

    footer {
        padding: 16px 18px;
        font-size: 1rem;
    }

    .footer-main {
        flex-direction: column;
        gap: 4px;
    }

    .footer-copy {
        margin-top: 10px;
        font-size: 0.9rem;
    }
}
