/* 
   NITT HEALTHY MARKET PAGE STYLES (GELATINAS PIVOT)
   Cinematic, High-End, Dark Glassmorphism Aesthetic
*/

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

:root {
    --nitt-bg: #030305;
    --nitt-surface: rgba(255, 255, 255, 0.02);
    --nitt-surface-hover: rgba(255, 255, 255, 0.05);
    --nitt-border: rgba(255, 255, 255, 0.08);
    --nitt-border-light: rgba(255, 255, 255, 0.15);
    --nitt-surface-solid: #0f172a;

    --nitt-text: #ffffff;
    --nitt-text-secondary: #94a3b8;
    --nitt-text-muted: #64748b;

    /* Emerald Accent updated for Gelatinas Premium */
    --nitt-accent: #10b981;
    --nitt-accent-light: #6ee7b7;
    --nitt-accent-glow: rgba(16, 185, 129, 0.15);

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-family: 'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Strict Design Tokens as requested */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;

    --radius-md: 16px;
    --radius-lg: 24px;
    --container-max: 1400px;
}

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

body {
    background-color: var(--nitt-bg);
    font-family: var(--font-family);
    color: var(--nitt-text);
    background-image:
        linear-gradient(var(--nitt-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--nitt-border) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--nitt-accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

/* ================= NAV (PILL) ================= */
.nav-pill {
    position: fixed;
    top: var(--space-24);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-8) var(--space-24);
    border-radius: 100px;
    display: flex;
    gap: var(--space-32);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--nitt-border);
    z-index: 1000;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--nitt-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-24);
}

.nav-links a {
    text-decoration: none;
    color: var(--nitt-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--nitt-text);
}

.cart-icon {
    background: var(--nitt-surface);
    color: var(--nitt-text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--nitt-border);
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: var(--nitt-accent);
    color: var(--nitt-bg);
    border-color: var(--nitt-accent);
    box-shadow: 0 0 20px var(--nitt-accent-glow);
}

/* ================= TYPOGRAPHY & BUTTONS ================= */
.section-container {
    padding: 6rem var(--space-24);
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-dark {
    background: var(--nitt-surface);
    border-top: 1px solid var(--nitt-border);
    border-bottom: 1px solid var(--nitt-border);
}

.section-header {
    margin-bottom: var(--space-48);
}

.section-header.center {
    text-align: center;
}

.section-eyebrow {
    color: var(--nitt-text-secondary);
    font-family: var(--font-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-8);
    font-size: 0.85rem;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--nitt-text);
}

.btn-primary,
.btn-secondary,
.btn-whatsapp-sticky {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-16) var(--space-32);
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--nitt-accent);
    color: var(--nitt-bg);
}

.btn-primary:hover {
    background: var(--nitt-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--nitt-accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--nitt-text);
    border: 1px solid var(--nitt-border-light);
}

.btn-secondary:hover {
    background: var(--nitt-surface-hover);
    border-color: var(--nitt-text-secondary);
}

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    padding: 0 var(--space-48);
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7) blur(2px);
    transform: scale(1.05);
    /* Slight scale for parallax trick space */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--nitt-bg) 0%, rgba(3, 3, 5, 0.6) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nitt-accent);
    margin-bottom: var(--space-16);
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: var(--space-24);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--nitt-text-secondary);
    margin-bottom: var(--space-32);
    line-height: 1.6;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: var(--space-16);
}

/* ================= PRODUCT GRIDS ================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: var(--space-24);
}

.prod-card {
    background: var(--nitt-surface);
    border: 1px solid var(--nitt-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.prod-card:hover {
    transform: translateY(-5px);
    border-color: var(--nitt-border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.prod-card:active {
    transform: scale(0.98);
    /* Active state requested */
}

.prod-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.prod-card:hover .prod-img-wrap img {
    transform: scale(1.08);
}

.prod-badge {
    position: absolute;
    top: var(--space-16);
    left: var(--space-16);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.prod-info {
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-8);
    font-weight: 600;
}

.prod-price {
    color: var(--nitt-accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: auto;
}

/* ================= FILTERS ================= */
.category-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-bottom: var(--space-48);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--nitt-border);
    color: var(--nitt-text-secondary);
    padding: var(--space-8) var(--space-24);
    border-radius: 100px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--nitt-text-secondary);
    color: var(--nitt-text);
}

.filter-btn.active {
    background: var(--nitt-text);
    color: var(--nitt-bg);
    border-color: var(--nitt-text);
}

/* ================= CÓMO PEDIR ================= */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-48);
    align-items: center;
}

.steps-list {
    margin-top: var(--space-32);
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.step-item {
    display: flex;
    gap: var(--space-24);
}

.step-num {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--nitt-surface-hover);
    border: 1px solid var(--nitt-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--nitt-accent);
}

.delivery-card {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-48);
}

.zona-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.zona-list li {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    color: var(--nitt-text);
}

/* ================= PERSONALIZA (FORM) ================= */
.personalize-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-48);
}

.custom-form {
    background: var(--nitt-bg);
    border: 1px solid var(--nitt-border);
    border-radius: var(--radius-md);
    padding: var(--space-32);
}

.form-group {
    margin-bottom: var(--space-16);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--nitt-text-secondary);
    margin-bottom: var(--space-8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nitt-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--nitt-border);
    padding: var(--space-12) var(--space-16);
    border-radius: 8px;
    color: var(--nitt-text);
    font-family: var(--font-family);
    transition: all 0.3s;
}

.nitt-input:focus {
    outline: none;
    border-color: var(--nitt-accent);
    background: rgba(16, 185, 129, 0.05);
}

/* ================= TESTIMONIALS (3 COL GRID) ================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: var(--space-24);
    margin-top: var(--space-48);
    height: 480px;
}

.test-card {
    background: #1e2126;
    /* Dark slate-like requested */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.test-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.test-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: var(--space-24);
}

.test-author-box {
    margin-bottom: var(--space-24);
}

.test-author-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}

.stars {
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.test-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: auto;
    /* Push to bottom */
}

.test-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-avatar {
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: var(--font-display);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.test-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.test-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-32);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.test-hero-overlay h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
}

/* ================= FAQ ================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    margin-top: var(--space-48);
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: var(--space-8);
    color: var(--nitt-text);
}

.faq-item p {
    color: var(--nitt-text-secondary);
}

/* ================= PDP MODAL (Single Page App Layout) ================= */
.pdp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pdp-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pdp-container {
    background: var(--nitt-bg);
    width: 100%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--nitt-border-light);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.pdp-overlay.active .pdp-container {
    transform: translateY(0);
}

.pdp-close {
    position: absolute;
    top: var(--space-24);
    right: var(--space-24);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
}

.pdp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.pdp-info-col {
    padding: var(--space-48) var(--space-32);
}

.pdp-specs {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    margin-bottom: var(--space-24);
    color: var(--nitt-text-secondary);
}

.spec-row i {
    color: var(--nitt-accent);
    width: 20px;
    text-align: center;
    margin-right: var(--space-8);
}

.pdp-vars {
    margin-bottom: var(--space-12);
}

.pdp-vars strong {
    color: var(--nitt-text);
}

/* ================= STICKY MOBILE CTA ================= */
.sticky-whatsapp-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 3, 5, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--nitt-border);
    padding: var(--space-16);
    z-index: 1500;
    display: none;
    /* hidden on desktop */
}

.btn-whatsapp-sticky {
    background: var(--nitt-accent);
    color: var(--nitt-bg);
    width: 100%;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* === Loading State Token === */
.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.how-it-works-grid>div,
.personalize-grid>div,
.pdp-grid>div {
    min-width: 0;
}

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

    .how-it-works-grid,
    .personalize-grid,
    .pdp-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-bg-img {
        right: -20%;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .test-hero {
        height: 400px;
        order: -1;
        /* Move image to top on mobile */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        align-items: flex-start;
        padding-top: 150px;
    }

    .sticky-whatsapp-bar {
        display: block;
    }
}