/* ============================= */
/* 🎨 VARIABLES DE MARCA */
/* ============================= */
:root {
    --primary: #1BB6C9;      /* Turquesa H2O */
    --primary-dark: #0077B6; /* Hover turquesa */
    --secondary: #0D3B66;    /* Azul corporativo */
    --light-bg: #F4F7F9;     /* Fondo claro */
    --white: #FFFFFF;
}


/* ============================= */
/* GENERAL */
/* ============================= */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--secondary);
}

h1, h2, h3, .nav-link, .qs-btn {
    font-family: 'Poppins', sans-serif;
}

/* ============================= */
/* NAVBAR */
/* ============================= */
.custom-navbar {
    background: transparent;
    transition: 0.4s ease;
}

.custom-navbar.scrolled {
    background: rgba(13, 59, 102, 0.95); /* Azul corporativo */
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.8);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
    /* Fondo solo cuando el menú está abierto */
    .custom-navbar:has(.navbar-collapse.show) {
        background: rgba(13, 59, 102, 0.95);
    }

    /* Contenido del menú desplegable siempre oscuro al mostrarse */
    .navbar-collapse.show {
        background: rgba(13, 59, 102, 0.95);
    }

    /* Links equitativos en móvil */
    .nav-link,
    .qs-btn {
        font-size: 0.82rem !important;
        letter-spacing: 0.5px;
        padding: 0.6rem 1rem !important;
        height: auto;
        line-height: 1.5;
        text-align: center;
        justify-content: center;
    }

    .qs-item {
        font-size: 0.82rem;
        padding: 10px 18px;
    }
}

/* ============================= */
/* LOGO cápsula */
/* ============================= */
.logo-container {
    background: var(--white);
    padding: 12px 40px;
    border-radius: 0 70px 70px 0;
    display: flex;
    align-items: center;
    height: 80px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.logo-container img {
    height: 50px;
}

/* ============================= */
/* LINKS */
/* ============================= */
.nav-link {
    color: var(--white) !important;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

/* Línea animada debajo */
.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -5px;
    background-color: var(--primary);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* ============================= */
/* QUIÉNES SOMOS - Dropdown */
/* ============================= */
.dropdown-custom {
    position: relative;
}

.qs-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* Ajuste para igualar altura y padding de .nav-link */
    padding: 0.5rem 1rem;
    height: 40px;
    font-size: 1rem;
    line-height: 1.5;
    vertical-align: middle;
}

.qs-btn:focus {
    outline: none;
}

.dots {
    font-size: 0.9rem;
    opacity: 0.9;
}

.qs-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: linear-gradient(180deg,var(--primary),var(--primary-dark));
    border-radius: 12px;
    padding: 12px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: none;
    z-index: 1200;
}

.qs-menu.show {
    display: block;
}

.qs-item {
    display: block;
    color: var(--white);
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 600;
}



.qs-item + .qs-item {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.qs-item:hover {
    background: rgba(0,0,0,0.15);
}

.qs-item:active, 
.qs-item.active {
    background: var(--secondary);
    border-radius: 8px;
}

/* ============================= */
/* BOTÓN CONTACTO */
/* ============================= */
.btn-contact {
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-contact::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-contact:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(27, 182, 201, 0.35);
}

.btn-contact:hover::after { left: 140%; }

/* ============================= */
/* HERO */
/* ============================= */
.hero-section {
    position: relative;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100vh;
}

.hero-img {
    height: 100vh;
    object-fit: cover;
    display: block;
    filter: brightness(0.65);
}

/* Caption por slide */
.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 6% 60px;
    background: linear-gradient(to top, rgba(5,20,40,0.80) 0%, rgba(5,20,40,0.30) 70%, transparent 100%);
    z-index: 5;
    color: #fff;
}

.hero-caption .hero-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.hero-caption h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 560px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-caption p {
    font-size: 1rem;
    max-width: 460px;
    opacity: 0.9;
    margin-bottom: 22px;
    line-height: 1.6;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
    background: linear-gradient(135deg, #0d3b66 0%, #051f35 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 100px;
    border-top: 4px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.footer-section a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(0,168,232,0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(0,168,232,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: bold;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================= */
/* BOTÓN HERO */
/* ============================= */
.btn-h2o {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-h2o::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.30), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-h2o:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(27, 182, 201, 0.45);
}

.btn-h2o:hover::after { left: 140%; }

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 992px) {

    .logo-container {
        padding: 10px 20px;
        height: 70px;
        border-radius: 0 50px 50px 0;
    }

    .logo-container img {
        height: 40px;
    }

    .contact-btn {
        display: none;
    }

    .hero-caption h1 {
        font-size: 1.5rem;
    }

    .hero-caption p {
        font-size: 0.9rem;
    }

    .hero-caption {
        padding: 40px 5% 40px;
    }
}

/* Footer mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================= */
/* PRODUCTOS - CARDS Y CARRUSEL */
/* ============================= */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(13,59,102,0.05);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    margin-bottom: 14px;
    background: white;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(13,59,102,0.07);
}

/* Product carousel image: contain to avoid cropping, balanced height */
.product-carousel .carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.product-carousel .carousel-item img {
    width: auto;
    max-width: 100%;
    height: 220px; /* larger product image to improve balance */
    object-fit: contain;
    display: block;
}

/* Layout: logo left, product right (balanced) */
.product-card .row {
    align-items: center;
}

/* Ensure product carousels don't inherit full-page carousel height */
.product-carousel,
.product-carousel .carousel-inner,
.product-carousel .carousel-item {
    height: auto !important;
}

.product-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(245,248,250,1));
    min-height: 240px;
}
.product-logo img {
    width: auto;
    max-width: 95%; /* leave space so logo doesn't get cut off */
    height: 160px; /* smaller so landscape logos fit without cropping */
    object-fit: contain;
}

.product-info {
    position: relative;
    padding: 0;
}

/* Badges: display below carousel instead of overlay */
.carousel-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0 6px 0; /* place below carousel */
    justify-content: flex-start;
}
.carousel-badge {
    background: rgba(0,0,0,0.56);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Reserve space so cards align nicely */
.product-info .product-carousel {
    min-height: 240px; /* reserve more space for larger images */
}

.product-carousel .carousel-inner {
    border-left: none;
}

.product-body {
    padding: 8px 10px 12px 10px;
}

.product-title {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
    font-size: 1rem;
}
.product-desc {
    font-size: 0.88rem;
    color: rgba(13,59,102,0.75);
    margin-bottom: 6px;
}
.badge-flavor {
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .product-carousel .carousel-item img {
        height: 160px;
    }
}

/* ============================= */
/* WHATSAPP FLOTANTE */
/* ============================= */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}


/* ========================================= */
/* SCROLL REVEAL — animaciones de entrada    */
/* ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(56px);
    transition: opacity 1.0s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 1.0s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.reveal-left  { transform: translateX(-64px); }
.reveal.reveal-right { transform: translateX(64px);  }
.reveal.reveal-scale { transform: scale(0.88) translateY(28px); }

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Hover en estadísticas (aplica a todas las páginas) ── */
.stat-item {
    cursor: default;
    transition: transform 0.3s ease;
}
.stat-item:hover { transform: translateY(-8px); }
.stat-item h4 { transition: color 0.3s ease, text-shadow 0.3s ease; }
.stat-item:hover h4 {
    color: var(--primary);
    text-shadow: 0 0 18px rgba(27, 182, 201, 0.35);
}

/* En móvil, las variantes laterales se convierten en slide-up */
@media (max-width: 991px) {
    .reveal.reveal-left,
    .reveal.reveal-right {
        transform: translateY(36px);
    }
}

/* Respeta preferencia del usuario por menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: opacity 0.35s ease;
        transform: none !important;
    }
}