:root {
    --primary-bg: #ed1c24;
    /* Bold Red */
    --accent: #fff200;
    /* Electric Yellow */
    --text-white: #ffffff;
    --dark-section: #8b0000;
    /* Deep Red */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-thickness: 6px;
    --font-primary: 'Riffic', sans-serif;
    /* Using custom font Riffic */
    --font-body: 'Outfit', sans-serif;
}

@font-face {
    font-family: 'Riffic';
    src: url('recursos/Riffic.woff2') format('woff2'),
         url('recursos/Riffic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-white);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    cursor: default;
}

h1,
h2,
h3,
.logo,
.card-number {
    font-family: var(--font-primary);
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text-white);
    -webkit-text-stroke: 2px var(--dark-section);
    text-shadow: 4px 4px 0px var(--dark-section);
}

/* Títulos en secciones con fondo BLANCO: rojo, sin stroke */
.historia-teaser h2,
.historia-teaser .section-title,
.vende-teaser h2,
.vende-teaser .section-title {
    color: var(--primary-bg);
    -webkit-text-stroke: 0;
    text-shadow: none;
}

h1 {
    font-size: clamp(2.8rem, 10vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 8vw, 3.8rem);
}

h3 {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
}

section {
    position: relative;
    padding: 80px 5%;
    background-color: var(--text-white);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-bg);
    border-bottom: 8px solid var(--accent);
    z-index: 1000;
}

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

.nav-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(2px 2px 0 var(--dark-section));
}

.nav-links.desktop-only {
    display: flex;
    list-style: none;
    /* Removes bullets */
    gap: 40px;
    /* Space between links */
}

.nav-links.desktop-only a {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: 0.3s;
    -webkit-text-stroke: 1px var(--dark-section);
}

.nav-links.desktop-only a:hover {
    color: var(--accent);
    transform: scale(1.1) rotate(-2deg);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 35px;
    height: 5px;
    background-color: var(--accent);
    border-radius: 5px;
    transition: 0.3s;
}

/* --- MOBILE BOTTOM SHEET MENU --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dimmed background */
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: flex;
    align-items: flex-end;
    /* Align sheet to bottom */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--dark-section) 100%);
    /* Bold red to dark red gradient */
    width: 100%;
    border-radius: 40px 40px 0 0;
    padding: 20px 20px 40px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.4);
    border-top: 5px solid var(--accent);
    /* Electric yellow top border */
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
}

.drawer-handle {
    width: 60px;
    height: 6px;
    background-color: var(--accent);
    /* Highlighted handle */
    border-radius: 10px;
    margin: 0 auto 30px;
    box-shadow: 0 0 10px rgba(255, 242, 0, 0.5);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    border-radius: 20px;
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    text-transform: uppercase;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid var(--accent);
    box-shadow: 6px 6px 0 var(--dark-section);
}

.mobile-nav-links li a i {
    margin-right: 20px;
    width: 30px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.mobile-nav-links li a:active {
    background-color: var(--accent);
    color: var(--dark-section);
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--dark-section);
}

.mobile-nav-links li a:active {
    background-color: var(--accent);
    color: var(--dark-section);
}

/* Specific WhatsApp Button Style */
.whatsapp-mobile-btn {
    margin-top: 10px;
    background-color: #25d366 !important;
    border: none !important;
    gap: 0;
    /* Let icon-margin handle it */
}

.whatsapp-mobile-btn i {
    color: white !important;
    /* White icon for better contrast on green */
}

.close-menu {
    display: none;
    /* Removed the X button for a cleaner sheet look */
}




/* --- HERO SECTION --- */
.hero {
    background: radial-gradient(circle at center, #ff4d54 0%, var(--primary-bg) 60%, var(--dark-section) 100%);
    overflow: hidden;
    /* Prevent horizontal scroll from snacks and waves */
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    /* Let hero-content handle padding if needed */
    box-sizing: border-box;
}

/* Global Secondary Hero (for all pages except Home) */
.global-hero {
    width: 100% !important;
    height: 400px !important;
    min-height: 0 !important;
    padding: 0 20px !important;
    margin: 108px 0 0 0 !important; /* Starts exactly where the navbar ends */
    text-align: center;
    background: radial-gradient(circle at center, #ff4d54 0%, var(--primary-bg) 60%, var(--dark-section) 100%);
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden;
    z-index: 1;
}

.global-hero h1 {
    width: 100%;
    margin: 0;
    padding: 0 15px !important;
    font-size: clamp(2.8rem, 9vw, 5rem) !important;
    position: relative;
    z-index: 2;
    color: var(--accent);
    /* Re-enforce global heavy style for prominence */
    -webkit-text-stroke: 2px var(--dark-section) !important;
    text-shadow: 4px 4px 0px var(--dark-section) !important;
}

.global-hero p {
    color: var(--text-white);
    max-width: 600px;
    margin: 12px auto 0 !important;
    font-size: 1.2rem !important;
    position: relative;
    z-index: 2;
    font-family: var(--font-body);
}

.global-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px !important;
    /* Diagonal 'Giro' Wave - Synchronized with Footer Curve */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,50 C400,100 1000,0 1440,50 L1440,110 L0,110 Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    padding: 0 5%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    margin-top: -50px;
    /* Nudge up to balance space between Nav and Wave */
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.speech-bubble {
    background-color: var(--accent);
    color: var(--dark-section);
    padding: 15px 30px;
    border-radius: 50px;
    border: 3px solid var(--dark-section);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    -webkit-text-stroke: 0;
    text-shadow: none;
    box-shadow: 6px 6px 0 var(--dark-section), 10px 10px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(-3deg);
    animation: floating-product 4s infinite ease-in-out;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    border-width: 20px 20px 0 0;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
    filter: drop-shadow(3px 3px 0 var(--dark-section));
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.5rem;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 242, 0, 0.4) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 1;
    animation: pulse-glow-backdrop 3s infinite alternate;
}

@keyframes pulse-glow-backdrop {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.product-image {
    width: 90%;
    /* Smaller bag to let snacks shine */
    max-width: 500px;
    height: auto;
    transform: rotate(10deg);
    filter: drop-shadow(15px 15px 25px rgba(0, 0, 0, 0.5)) drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 2;
}

.floating-snack {
    position: absolute;
    width: 200px;
    /* Bigger floating snacks */
    height: auto;
    z-index: 3;
    filter: drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.4)) drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2));
}

.snack-1 {
    top: -10%;
    left: -20%;
    animation: float-rotate 6s infinite ease-in-out;
}

.snack-2 {
    top: 60%;
    left: -10%;
    animation: float-rotate 8s infinite ease-in-out reverse;
}

.snack-3 {
    top: -15%;
    right: 0%;
    animation: float-bounce 5s infinite ease-in-out;
}

.snack-4 {
    top: 40%;
    right: -20%;
    animation: float-rotate 7s infinite ease-in-out;
}

.snack-5 {
    bottom: -10%;
    right: 10%;
    animation: float-bounce 9s infinite ease-in-out reverse;
}


.wave-container-exact {
    position: absolute;
    bottom: -1px;
    /* Anchor closely to bottom */
    left: 0;
    width: 100.2%;
    /* Slightly overshoot to avoid sub-pixel gaps at edges */
    margin-left: -0.1%;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}

.wave-svg-precision {
    display: block;
    width: 100%;
    height: 220px;
    /* Balanced height for double curves */
}

/* Remove precision logo styles as requested */

/* --- BUTTONS --- */
.cta-button {
    background: linear-gradient(to bottom, #fff866, var(--accent));
    color: var(--dark-section);
    border: 4px solid var(--dark-section);
    border-radius: 50px;
    padding: 15px 40px;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 8px 0 var(--dark-section), 0 15px 20px rgba(0, 0, 0, 0.3);
    text-shadow: none;
    -webkit-text-stroke: 0;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 13px 0 var(--dark-section), 0 20px 25px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 0 4px 0 var(--dark-section), 0 5px 10px rgba(0, 0, 0, 0.3);
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 242, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 242, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 242, 0, 0);
    }
}

/* --- FLOATING SHAPES --- */
.shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.8;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 40px;
    height: 40px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float-rotate 8s infinite linear;
}

.shape-2 {
    top: 20%;
    right: 10%;
    width: 50px;
    height: 50px;
    background: var(--dark-section);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float-bounce 6s infinite ease-in-out;
}

.shape-3 {
    bottom: 15%;
    left: 8%;
    width: 60px;
    height: 20px;
    background: var(--accent);
    clip-path: polygon(0 50%, 25% 0, 50% 50%, 75% 0, 100% 50%, 100% 100%, 75% 50%, 50% 100%, 25% 50%, 0 100%);
    animation: float-rotate 10s infinite linear reverse;
}

.shape-4 {
    top: 40%;
    left: 45%;
    width: 35px;
    height: 35px;
    background: var(--text-white);
    opacity: 0.3;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float-bounce 12s infinite ease-in-out;
}

.shape-5 {
    bottom: 30%;
    right: 5%;
    width: 45px;
    height: 45px;
    background: var(--dark-section);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float-rotate 15s infinite linear;
}

@keyframes float-rotate {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -20px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* --- CATEGORIES SECTION --- */
.categories {
    background-color: var(--dark-section);
    padding: 140px 5% 80px;
    position: relative;
    z-index: 5;
    text-align: center;
    min-height: auto;
    margin-top: -60px;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1300px;
    width: 100%;
    margin: 40px auto 0;
}

.category-card {
    position: relative;
    height: 200px;
    width: 200px;
    /* Consistent width to maintain columns */
    flex-shrink: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5), 0 12px 28px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    text-decoration: none;
    cursor: pointer;
    background-color: #ffffff;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 14px 0 rgba(0, 0, 0, 0.4), 0 28px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.category-card.card-large {
    width: 280px !important;
    height: 280px !important;
    border-width: 5px;
}

.category-card.card-large h3 {
    font-size: 1.5rem;
}

.category-card.card-small {
    width: 170px !important;
    height: 170px !important;
    opacity: 0.9;
}

.category-card.card-small h3 {
    font-size: 0.9rem;
}

/* Product image floats center-bottom */
.card-product-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transition: transform 0.4s ease;
    z-index: 1;
}

.category-card:hover .card-product-img {
    transform: scale(1.06);
}

/* gradient overlay for text readability */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(255, 255, 255, 0.0) 40%,
            rgba(139, 0, 0, 0.88) 72%,
            rgba(80, 0, 0, 0.97) 100%);
    z-index: 2;
}

/* Text and badge row at bottom */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-info h3 {
    font-family: var(--font-primary);
    color: var(--text-white);
    font-size: 1.15rem;
    margin: 0;
    text-align: center;
    line-height: 1.1;
    -webkit-text-stroke: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    flex: 1;
}

.card-badge {
    background-color: var(--accent);
    color: var(--dark-section);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 2px 2px 0 var(--dark-section);
}

/* 'Ver todo' pill that slides in on hover */
.card-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: var(--dark-section);
    font-size: 0.65rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 var(--dark-section);
    white-space: nowrap;
}

.category-card:hover .card-arrow {
    opacity: 1;
    transform: translateY(0);
}

@keyframes chipAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PUNTOS DE VENTA --- */
.puntos-venta {
    background-color: var(--primary-bg);
    /* Matches branding */
    padding: 80px 5%;
    min-height: auto;
    text-align: center;
    overflow: hidden; /* Hide horizontal scroll */
}

.puntos-venta .section-title {
    margin-bottom: 20px;
}

.logos-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
    width: max-content;
    margin: 40px auto 0;
    animation: scroll-left-marquee 40s linear infinite;
}

.logos-container:hover {
    animation-play-state: paused;
}

@keyframes scroll-left-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.vendedor-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* White background with drop shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    flex-shrink: 0;
}

.vendedor-logo:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- HISTORIA TEASER --- */
.historia-teaser {
    background: var(--text-white);
    padding: 80px 5% 140px; /* Increased bottom padding to compensate for overlap */
    min-height: auto;
    /* Keep compact but with standard padding */
    position: relative;
    overflow: hidden;
}

.historia-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.historia-visual {
    position: relative;
}

.historia-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 25px 25px 0 var(--accent), 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 8px solid #fff;
    transform: rotate(-3deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.historia-visual:hover .historia-img {
    transform: rotate(0) scale(1.03);
    box-shadow: 15px 15px 0 var(--accent), 0 35px 70px rgba(0, 0, 0, 0.2);
}

.historia-badge {
    position: absolute;
    bottom: -15px;
    right: -10px;
    background: var(--primary-bg);
    color: var(--text-white);
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1.3rem;
    box-shadow: 6px 6px 0 var(--dark-section);
    transform: rotate(5deg);
    z-index: 10;
    text-transform: uppercase;
    -webkit-text-stroke: 1px var(--dark-section);
}

.historia-text {
    text-align: left;
}

.historia-subtitle {
    font-family: var(--font-primary);
    color: var(--accent);
    font-size: 1.3rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    -webkit-text-stroke: 1.5px var(--dark-section);
    text-shadow: 2px 2px 0 var(--dark-section);
}

.historia-text .section-title {
    text-align: left;
    font-size: 3.8rem;
    margin: 0 0 20px;
    line-height: 1;
}

.historia-text p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    /* Slightly smaller for compactness */
    color: #444;
    line-height: 1.6;
    margin-bottom: 35px;
}


@keyframes float-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* --- TIPS SECTION --- */
.tips {
    background-color: var(--dark-section);
    /* Matches the bottom of our new wavy SVG */
    overflow: visible;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Remove tips-inner-bg as the SVG now handles the wavy transition */

.section-title {
    font-size: clamp(2rem, 7vw, 3.8rem);
    /* Dynamically scales font */
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.card {
    background-color: var(--text-white);
    color: var(--dark-section);
    padding: 60px 30px 40px;
    border-top: 20px solid var(--primary-bg);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.card:hover {
    transform: rotate(3deg) scale(1.05);
}

.card-number {
    position: absolute;
    top: -40px;
    left: 20px;
    background-color: var(--accent);
    color: var(--dark-section);
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--dark-section);
    transform: rotate(-10deg);
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-bg);
}

.card-icon {
    font-size: 4rem;
    position: absolute;
    bottom: -20px;
    right: 10px;
    filter: grayscale(1);
    opacity: 0.1;
    transform: rotate(20deg);
}

/* --- FEATURE SECTION --- */
.feature {
    background-color: var(--primary-bg);
    padding: 0;
}

.diagonal-path {
    background-color: var(--accent);
    width: 100%;
    padding: 100px 20px;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-content {
    text-align: center;
}

.massive-text {
    font-size: 7rem;
    color: var(--primary-bg);
    margin-bottom: 20px;
    -webkit-text-stroke: 3px var(--dark-section);
}

.feature-content p {
    color: var(--dark-section);
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.secondary-btn {
    background-color: var(--primary-bg);
    color: var(--text-white);
    border-color: var(--dark-section);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--dark-section);
    position: relative;
    padding: 60px 0 30px; /* Added top padding to accommodate the integrated wave */
    z-index: 10;
    margin-top: 0;
}

.footer-wave-container {
    height: 60px;
    width: 100%;
    position: absolute;
    top: 0; /* Integrated inside the footer */
    left: 0;
    line-height: 0;
}

.footer-wave {
    height: 60px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: row;
    /* Horizontal on desktop */
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.3));
    margin-bottom: 15px;
}

.footer-slogan {
    height: 50px;
    width: auto;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2));
}

/* Socials Compact */
.footer-socials,
.footer-links {
    flex: 1;
    min-width: 220px;
    text-align: center;
}

.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 8px;
}

.link-list li a {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: 0.3s;
}

.link-list li a:hover {
    color: var(--accent);
}

.social-title {
    font-size: 1.3rem !important;
    /* Smaller */
    margin-bottom: 15px;
    color: var(--text-white);
    -webkit-text-stroke: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--primary-bg);
    border: 3px solid var(--accent);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 4px 4px 0 var(--dark-section);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--accent);
    transition: height 0.3s ease;
    z-index: 1;
}

.social-link i {
    z-index: 2;
    transition: 0.3s;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 8px 8px 0 var(--dark-section);
    color: var(--dark-section);
}

.social-link:hover::before {
    height: 100%;
}

.social-link:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 0 var(--dark-section);
}

/* Details Compact */
.footer-details {
    flex: 1.5;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* Reduced from 60px for better balance */
    text-align: left;
}

.detail-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.detail-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 10px !important;
    width: 100%;
}

.detail-header i {
    font-size: 1.4rem !important;
    color: var(--accent) !important;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.3)) !important;
    margin: 0 !important;
    display: inline-block !important;
}

.detail-header h4 {
    font-family: var(--font-primary) !important;
    font-size: 1.2rem !important;
    color: var(--text-white) !important;
    margin: 0 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

.detail-item p,
.detail-item a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.waze-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: var(--text-white) !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
}

.waze-btn i {
    font-size: 1rem;
    color: var(--text-white);
    margin: 0;
}

.waze-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-info {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.9;
    color: var(--text-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    width: 100%;
}

.footer-info p {
    margin-bottom: 8px;
}

#current-year {
    font-weight: 800;
}

/* Form Styles Removal (Not needed anymore based on design) */
.signup-form {
    display: none;
}

/* --- ANIMATIONS --- */
.bounce-in {
    animation: bounce-in 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.floating {
    animation: floating-product 4s infinite ease-in-out;
}

@keyframes floating-product {

    0%,
    100% {
        transform: translateY(0) rotate(10deg);
    }

    50% {
        transform: translateY(-20px) rotate(15deg);
    }
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
}

.reveal-from-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

.reveal-from-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease-out;
}

.reveal-from-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal-from-left.active,
.reveal-from-right.active,
.reveal-from-bottom.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- RESPONSIVE OPTIMIZATIONS --- */
@media (max-width: 900px) {

    .desktop-only,
    .nav-links.desktop-only {
        display: none !important;
    }

    .hamburger-btn {
        display: flex;
    }

    .navbar {
        padding: 15px 25px;
    }

    .global-hero {
        margin-top: 98px !important; /* Adjusted for mobile navbar height */
    }

    /* Móvil: solo tamaños. Colores y sombras los define cada sección */
    h1, .global-hero h1 {
        font-size: clamp(3.2rem, 11vw, 4.2rem) !important;
    }

    h2, .section-title {
        font-size: clamp(2.4rem, 8vw, 3rem) !important;
    }

    h3 {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 140px;
        /* Space for navbar */
        padding-bottom: 80px;
        /* Allowed wave to come up incredibly high on mobile */
        display: block;
    }

    .hero-content {
        margin-top: 0;
        /* Reset desktop offset */
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-text {
        align-items: center;
    }

    .hero h1 {
        font-size: 3.8rem !important; /* Main Home Hero even larger */
        margin-bottom: 20px;
        text-align: center;
    }

    .hero-subtext {
        font-size: 1.1rem;
        margin: 0 auto 30px;
        line-height: 1.4;
        text-align: center;
    }

    .speech-bubble {
        font-size: 1rem;
        padding: 10px 20px;
        margin-bottom: 12px;
    }

    .hero-visual {
        margin-top: 50px;
        /* Increased to avoid button overlap */
        height: 320px;
        /* More impact */
    }

    .product-image {
        width: 80%;
        max-width: 280px;
    }

    .floating-snack {
        width: 85px;
        /* Better visibility */
    }

    .snack-1 {
        top: 0;
        left: 0;
    }

    .snack-2 {
        bottom: 0;
        left: 5%;
    }

    .snack-3 {
        top: -10%;
        right: 5%;
    }

    .snack-4 {
        top: 50%;
        right: 0;
    }

    .snack-5 {
        bottom: -10%;
        right: 20%;
    }

    .wave-svg-precision {
        height: 160px;
        /* Better balance */
    }

    .categories {
        margin-top: -30px;
        padding: 80px 4% 60px;
    }

    .categories-grid {
        display: flex;
        /* Ensure it uses flex inherited or explicit */
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 0 10px;
    }

    .category-card.card-large {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        border-radius: 25px;
    }

    .category-card.card-small {
        width: calc(50% - 10px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        border-radius: 18px;
    }

    .card-info {
        padding: 8px 10px;
        text-align: center;
    }

    .card-info h3 {
        font-size: 0.95rem;
        text-align: center;
    }

    .card-badge {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    /* Category Page Mobile Specifics */
    .category-hero {
        min-height: 40vh !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    .category-hero h1 {
        font-size: 3.2rem !important;
        padding: 0 15px;
    }

    .category-hero p {
        font-size: 1rem !important;
        padding: 0 20px;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
        /* Stack strictly on mobile */
        gap: 20px !important;
        padding: 40px 15px 80px !important;
        width: 100% !important;
    }

    .product-card {
        width: 100% !important;
        padding: 30px 15px !important;
    }

    .product-card h3 {
        font-size: 1.4rem !important;
    }

    #back-btn {
        margin-top: 20px;
        padding: 12px 25px;
        font-size: 1rem;
    }

    .massive-text {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card {
        padding: 50px 20px 30px;
    }

    .card h3 {
        font-size: 1.5rem;
    }

    .signup-form {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 40px auto 0;
    }

    .signup-form input {
        min-width: 100%;
        text-align: center;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1.2rem;
        border-width: 5px;
    }

    /* Footer Mobile Compact */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-brand,
    .footer-socials,
    .footer-links {
        min-width: 100%;
        text-align: center;
    }

    .footer-details {
        flex-direction: column;
        align-items: center !important;
        gap: 60px;
        /* Reduced to match user feedback */
        min-width: 100%;
    }

    .detail-item,
    .detail-header {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        max-width: 100%;
    }

    /* Historia Mobile */
    .historia-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .historia-text {
        text-align: center;
    }

    .historia-text .section-title {
        text-align: center;
        font-size: 2.1rem;
    }

    .historia-img {
        max-width: 450px;
        margin: 0 auto;
        transform: rotate(0);
    }
}

/* --- VENDE TEASER SECTION (Similar to Historia) --- */
#vende-kitty.vende-teaser {
    background-color: #ffffff !important;
    background: #ffffff !important;
    padding: 80px 5% !important;
    min-height: auto !important;
    position: relative;
    overflow: hidden;
    border-top: 8px solid var(--accent);
}

#vende-kitty.vende-teaser .historia-grid {
    /* Reusing historia-grid layout */
    direction: ltr;
}

@media (max-width: 900px) {
    #vende-kitty.vende-teaser .historia-grid {
        display: flex;
        flex-direction: column;
    }
}

/* --- FORMS (General) --- */
.form-container {
    background: #fff;
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1100px !important; /* Increased and forced with important */
    margin: 40px auto;
    border-bottom: 10px solid var(--accent);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    color: var(--dark-section);
    margin-bottom: 8px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid #eee;
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: 0.3s;
    background-color: #f9f9f9;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-bg);
    background-color: #fff;
    box-shadow: 0 0 15px rgba(237, 28, 36, 0.1);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}