@font-face {
    font-family: 'Shadow Brush';
    src: url('assets/Shadow_Brush.otf?v=3') format('opentype'),
         url('assets/Shadow_Brush.otf?v=3');
    font-weight: normal;
    font-style: normal;
}

.custom-slogan {
    font-family: 'Shadow Brush', 'Caveat', cursive !important;
    font-weight: normal !important;
    font-variant-ligatures: none !important;
    -webkit-font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "dlig" 0, "hlig" 0 !important;
    font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "dlig" 0, "hlig" 0 !important;
    text-transform: none !important;
}

:root {
    --chicha-bg: #802bb1;
    --chicha-primary: #ffffff;
    --maracuya-bg: #f9d423;
    --maracuya-primary: #ffffff;
    --camu-bg: #ff4e50;
    --camu-primary: #ffffff;
    
    --brand-green: #7AC151;
    --brand-yellow: #FFCC29;
    --brand-black: #1f2937;
    --brand-blue: #0171D3;
    --brand-grey: #EDE9E6;

    --text-dark: #1f2937;
    --white: #ffffff;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.4;
    background-color: var(--white);
}

/* Custom Scrollbar for better UI */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: 90px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Rosario', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--chicha-bg);
}

/* Botón global */
.btn-cta {
    background-color: var(--brand-green);
    color: #ffffff !important;
    font-family: 'Rosario', sans-serif;
    font-weight: 800;
    padding: 0.8rem 1.8rem;
    border-radius: 5px; /* Bordes más rectos, estilo marca */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-cta:hover {
    transform: scale(1.05);
}

/* Intro Section */
.intro-section {
    height: calc(100vh - 120px);
    width: 100%;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.intro-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.intro-logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideLogo 1s ease forwards 1s; /* wait 1s, then slide */
}

.intro-logo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    object-fit: cover;
}

.intro-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    opacity: 0;
    width: 600px;
    padding-left: 20px;
    animation: fadeText 1.5s ease forwards 1.5s; /* fade in after slide */
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.intro-text h2.custom-slogan {
    font-family: 'Shadow Brush', 'Caveat', cursive !important;
    font-weight: normal !important;
    font-variant-ligatures: none !important;
    -webkit-font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "dlig" 0, "hlig" 0 !important;
    font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "dlig" 0, "hlig" 0 !important;
    text-transform: none !important;
    font-size: 4.5rem;
    color: var(--brand-green);
    margin: 0;
    line-height: 1.1;
}

.intro-text .intro-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
}

.intro-text .intro-details {
    font-size: 1.2rem;
    color: #4b5563;
    margin-top: 0.5rem;
    font-weight: 600;
}

.slogan {
    font-family: 'Shadow Brush', 'Caveat', cursive;
    font-size: 2.8rem;
    font-weight: normal;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.sub-slogan {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 600;
}

@keyframes slideLogo {
    from { left: 50%; transform: translate(-50%, -50%); }
    to { left: calc(50% - 250px); transform: translate(-50%, -50%); }
}

@keyframes fadeText {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(-50%); }
}

/* Hero Sections Generales */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 20px 5%; /* Minimal top/bottom padding to fit 100vh */
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

/* Flavor Specific Styling */
.flavor-chicha {
    background-color: var(--chicha-bg);
    color: var(--white);
}
.flavor-chicha .btn-primary, .flavor-chicha .badge { background-color: var(--chicha-primary); color: var(--text-dark); }
.flavor-chicha .hero-content h1, .flavor-chicha .hero-content p { color: var(--white); }

.flavor-maracuya {
    background-color: var(--maracuya-bg);
    color: var(--text-dark);
}
.flavor-maracuya .btn-primary, .flavor-maracuya .badge { background-color: var(--maracuya-primary); color: var(--text-dark); }
.flavor-maracuya .hero-content h1, .flavor-maracuya .hero-content p { color: var(--text-dark); }

.flavor-camu {
    background-color: var(--camu-bg);
    color: var(--text-dark);
}
.flavor-camu .btn-primary, .flavor-camu .badge { background-color: var(--camu-primary); color: var(--text-dark); }
.flavor-camu .hero-content h1, .flavor-camu .hero-content p { color: var(--text-dark); }


/* Layout Alternatives */
@media (min-width: 1025px) {
    .flavor-maracuya {
        flex-direction: row-reverse;
    }
}

.hero-content {
    flex: 1;
    max-width: 800px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-family: 'Rosario', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    /* Forma tipo banderín */
    clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    font-size: clamp(3rem, 6vw + 1rem, 5rem);
    line-height: 1.05;
    margin-bottom: 0.8rem;
    font-weight: 400;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    max-width: 550px;
    font-weight: 500;
}

.benefit-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255,255,255,0.2);
    padding: 1rem 1.5rem; /* Reducido */
    border-radius: 20px;
    margin-bottom: 1.5rem; /* Reducido */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
    max-width: 450px;
}

.benefit-icon { font-size: 1.5rem; } /* Más pequeño */
.benefit-box p { 
    font-size: 1rem !important; /* Más pequeño */
    margin-bottom: 0 !important;
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 5px; /* Más recto */
    text-decoration: none;
    font-family: 'Rosario', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.product-frame {
    position: relative;
    width: 100%;
    max-width: 480px; /* Aumentado */
    aspect-ratio: 1/1;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.product-frame video, .product-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-section {
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
    background-color: var(--brand-black);
    color: var(--white);
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.contact-item h3, .contact-card h2 {
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: var(--brand-yellow);
}

.social-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Rosario', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Product Banner styling */
.product-banner {
    text-align: center;
    padding: 4rem 2rem 2rem 2rem;
    background: var(--white);
}

.product-banner-title {
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem);
    font-weight: 400;
    color: var(--brand-green);
    max-width: 800px;
    margin: 0 auto;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
}

.contact-email {
    color: var(--brand-green);
    font-weight: 700;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-icon {
    color: var(--brand-yellow);
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05) translateY(-3px);
}

footer {
    padding: 3rem 5%;
    text-align: center;
    background-color: var(--brand-black);
    color: var(--white);
    border-top: 1px dashed rgba(255,255,255,0.2);
}

footer p {
    opacity: 0.4;
    font-size: 0.9rem;
    font-weight: 700;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 10000; /* Siempre arriba */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* Inner Pages Base */
.page-header {
    padding: 160px 5% 60px;
    background-color: var(--chicha-bg);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    font-size: clamp(3.5rem, 6vw + 1rem, 5rem);
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--brand-yellow);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 6rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white);
    color: var(--text-dark);
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #4b5563;
}

.content-section h2 {
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--brand-green);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.product-card {
    background-color: #f9fafb;
    border-radius: 30px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-wrapper {
    overflow: hidden;
    max-width: 220px;
    margin: 0 auto 1.5rem auto;
    border-radius: 20px;
    aspect-ratio: 3/4;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card h3 {
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.product-card.chicha h3 { color: var(--chicha-bg); }
.product-card.maracuya h3 { color: #d4a700; }
.product-card.camu h3 { color: var(--camu-bg); }

/* ====== OPTIMIZACIÓN MÓVIL Y TABLET CRÍTICA ====== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.8rem 5%;
    }
    .logo-img {
        height: 50px;
        width: 50px;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(31, 41, 55, 0.98);
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: -1;
        pointer-events: none;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a {
        font-size: 1.2rem;
        color: var(--white);
    }
    .nav-links a:hover {
        color: var(--brand-green);
    }
    
    /* Intro section móvil y tablet */
    .intro-logo {
        width: 250px;
        height: 250px;
    }
    .intro-text {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        padding-left: 0;
        text-align: center;
        align-items: center; /* Centrar elementos en móvil/tablet */
    }
    .intro-text h2.custom-slogan {
        font-size: clamp(2rem, 6vw, 3.2rem) !important;
    }
    .intro-text .intro-subtitle {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    .intro-text .intro-details {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }
    @keyframes slideLogo {
        from { top: 50%; transform: translate(-50%, -50%); }
        to { top: 30%; transform: translate(-50%, -50%); } /* Mueve hacia arriba en vez de a la izq */
    }
    @keyframes fadeText {
        from { opacity: 0; top: 75%; }
        to { opacity: 1; top: 65%; } /* Fade in below logo */
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 150px 5% 30px 5%; /* Suficiente padding para no tapar el badge */
        gap: 1rem; /* Gap reducido */
        min-height: auto; /* Permite que crezca si el contenido lo requiere */
    }
    
    .hero-image-container {
        width: 100%;
        order: 1; /* Imagen arriba */
    }
    
    .product-frame {
        max-width: 330px; /* Aumentado */
        border-radius: 30px;
    }
    
    .hero-content {
        order: 2; /* Texto abajo */
        margin: 0;
    }
    
    .badge {
        margin-bottom: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.8rem); /* Texto más pequeño */
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 1.05rem; /* Texto descriptivo más pequeño */
        margin-bottom: 1rem;
    }
    
    .benefit-box {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem; /* Menor margen inferior */
        border-radius: 15px;
    }
    
    .benefit-icon { font-size: 1.5rem; }
    
    .benefit-box p {
        font-size: 1rem !important;
    }
    
    .btn-primary {
        padding: 1rem 2.5rem; /* Botón ligeramente más ajustado */
    }
    
    .contact-section {
        padding: 4rem 5%;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .page-header {
        padding: 120px 5% 40px;
    }
}
