@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #2E7D32;
    /* Verde referencia */
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --secondary: #451A03;
    --accent: #FFC107;
    --bg-light: #F9F9F9;
    /* Fondo blanco roto */
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #64748B;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-apple: 0 10px 30px rgba(0, 0, 0, 0.03);
    /* Sombra suave Apple */
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.06);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    display: block;
}

/* Utils */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-apple);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 102;
    /* Ensure logo stays above menu overlay if needed */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

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

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #0f3d0f;
    /* Verde profundo de la referencia */
}

/* Floating WhatsApp */
.whatsapp-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-link {
    font-weight: 600;
    color: var(--primary-dark);
}

.hero-image-wrapper {
    position: relative;
}

.image-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: rotate(2deg);
}

.image-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Products */
.products {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: var(--shadow-apple);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Catalog Styling */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 2rem;
    border-radius: 50px;
    border: 2px solid #eee;
    background: transparent;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Category Cards (Catalog Entry) */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cat-card {
    position: relative;
    height: 300px;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-apple);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.cat-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.cat-card-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.cat-card:hover img {
    transform: scale(1.1);
}

/* Catalog Modal Overlay */
.catalog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    /* Se activa con JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.catalog-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.catalog-modal-container {
    background: var(--white);
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.catalog-modal-overlay.active .catalog-modal-container {
    transform: scale(1);
}

.mini-filter-btn:hover {
    color: var(--primary);
}

.mini-filter-btn.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.catalog-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 10;
    line-height: 1;
}

/* Recipes Section */
.recipes {
    padding: 6rem 0;
    background: #fdfdfd;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-apple);
    transition: var(--transition);
    position: relative;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.recipe-img {
    height: 180px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Tutorial Hint Overlay */
.recipe-img::after {
    content: "📖 Ver Receta";
    position: absolute;
    inset: 0;
    background: rgba(5, 150, 105, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.recipe-img:hover::after {
    opacity: 1;
}

.recipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s;
}

.recipe-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipe-content .add-recipe-btn {
    margin-top: auto;
}

.recipe-tag {
    background: #ecfdf5;
    color: #059669;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.recipe-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.recipe-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.recipe-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.ingredient-tag {
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    color: #475569;
}

/* Recipe Modal Styles */
.recipe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.recipe-modal-overlay.active {
    display: flex;
}

.recipe-modal-container {
    background: var(--white);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 2rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recipe-modal-header-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.recipe-modal-body {
    padding: 3rem;
}

.recipe-modal-body h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.recipe-instructions {
    margin-top: 2rem;
}

.recipe-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Checkout Base Styles */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    z-index: 1000;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.step-text {
    color: var(--text-dark);
    line-height: 1.6;
}

.recipe-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.catalog-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    gap: 2rem;
    background: var(--white);
    border-bottom: 1px solid #f1f5f9;
}

.catalog-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    color: var(--text-dark);
}

.mini-category-nav {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: 50px;
}

.mini-filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.mini-filter-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.mini-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2);
}

.catalog-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.catalog-search-wrapper input {
    width: 100%;
    padding: 0.7rem 1.2rem 0.7rem 3rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.catalog-search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.catalog-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.4;
    pointer-events: none;
}


#catalog-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 3rem 3rem;
    background: #fdfdfd;
}

#catalog-modal-content .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.product-item {
    display: block;
}

.product-item.hidden {
    display: none;
}

.small-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-apple);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.small-card .card-actions,
.small-card .add-to-cart {
    margin-top: auto;
}

.small-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.small-card img {
    height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.small-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.small-card .price {
    font-size: 1.1rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
}

/* Card Actions (Add / Qty controls) */
.card-actions {
    margin-top: 1rem;
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qty-controls-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    width: fit-content;
}

.qty-controls-card .qty-btn {
    background: white;
    border: 1px solid #e2e8f0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.qty-controls-card .qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-info .tag {
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 1rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.product-card.featured {
    border: 2px solid var(--primary);
    transform: translateY(-5px);
}

/* Features */
.features {
    padding: 3rem 0;
    background: var(--white);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* CTA */
.cta {
    padding: 8rem 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a4731 100%);
    border-radius: 3rem;
    padding: 6rem 4rem;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 6rem 0;
    background-color: #000000;
    color: var(--white);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 4rem;
    color: rgba(255, 255, 255, 0.6);
}



/* Responsive */
@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .product-card.featured {
        transform: scale(1);
    }

    .image-card {
        transform: rotate(0);
    }
}

/* Cart Icon Styles */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* Cart Drawer Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-drawer.active {
    right: 0;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item-info h4 {
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
}

/* Modal Payment Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
}

.payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    /* Para que no se corte en pantallas pequeñas */
    overflow-y: auto;
    /* Scroll interno si es necesario */
    background: var(--white);
    border-radius: 2rem;
    padding: 1.5rem;
    z-index: 2001;
    display: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.payment-modal.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}

.card-input .card-type-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-summary {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.summary-line.total {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.free {
    color: var(--primary);
    font-weight: 600;
}

.submit-pay {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Screen */
.success-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 2rem;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    z-index: 5;
}

.success-screen.active {
    display: flex;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Seasonal Highlight */
.seasonal-highlight {
    padding: 6rem 0;
    background: #fff;
}

.highlight-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.highlight-content {
    padding: 4rem;
}

.highlight-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.highlight-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Testimonials */
.testimonials {
    padding: 8rem 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-apple);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-card .user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info strong {
    display: block;
    color: var(--text-dark);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Newsletter */
.newsletter {
    padding: 6rem 0;
}

.newsletter-box {
    background: var(--primary-dark);
    border-radius: 3rem;
    padding: 6rem 4rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.newsletter-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
}

/* Feature Icons */
.feature-icon svg {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Checkout Base Styles */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    z-index: 1000;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .highlight-box {
        grid-template-columns: 1fr;
    }

    .highlight-content {
        padding: 2.5rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .newsletter-form input {
        background: rgba(255, 255, 255, 0.1);
        padding: 1.25rem 2rem;
        border-radius: 50px;
        margin-bottom: 1rem;
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        z-index: 101;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    /* Hero Responsive */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero {
        padding: 4rem 0 2rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Ensure images fit */
    .image-card img {
        height: 300px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Mobile Cart Icon in Header should be more visible or moved */
    /* Often cart icon sits outside the drawer on mobile */
    .cart-icon-wrapper {
        order: -1;
        /* Move cart before menu if desired, but sticking to design */
    }

    /* Fix Catalog Modal on Mobile */
    .catalog-modal-header {
        flex-direction: column;
        padding: 3.5rem 1.5rem 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .catalog-close-btn {
        top: 1rem;
        right: 1rem;
    }

    .mini-category-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .catalog-search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    #catalog-modal-content {
        padding: 1.5rem;
    }

    #catalog-modal-content .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    /* Checkout Mobile Fixes */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grid-2-form {
        grid-template-columns: 1fr;
    }

    /* Prevent WhatsApp overlap on mobile */
    .whatsapp-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Nexus Chat Widget */
.nexus-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
}

.chat-trigger-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-trigger-btn:hover {
    transform: scale(1.1);
}

.chat-box {
    display: none;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: absolute;
    bottom: 75px;
    right: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    animation: fadeUp 0.3s ease-out;
}

.chat-box.active {
    display: flex;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-log {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 14px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.4;
}

.chat-msg.user {
    align-self: flex-end;
    background: #e0f2fe;
    color: #0c4a6e;
    border-bottom-right-radius: 2px;
}

.chat-msg.bot {
    align-self: flex-start;
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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