/* --- Reset & Variables --- */
:root {
    --color-bg-dark: #051910;
    --color-bg-light: #F9F9F9;
    --color-text-main: #FFFFFF;
    --color-text-dark: #1A1A1A;
    --color-accent-green: #6B8E23;
    --color-gold: #D4AF37;
    --color-gold-hover: #B89628;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #128C7E;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --container-width: 1200px;
    --header-height: 80px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

/* --- Components --- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    /* Changed to flex for icon alignment */
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
}

.btn-filled {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
}

.btn-filled:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

/* WhatsApp Button Style */
.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: #fff;
    border-color: var(--color-whatsapp);
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    border-color: var(--color-whatsapp-hover);
    color: #fff;
}

/* Icon style in buttons */
.wa-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    /* Make the black SVG white using filter */
    filter: brightness(0) invert(1);
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-wa:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.floating-wa img {
    width: 32px;
    height: 32px;
    /* User said: blanco si es verde (background is green so use white logo) */
    filter: brightness(0) invert(1);
}

/* Logo Dimensions */
.logo img {
    width: 180px;
    height: auto;
}

.footer-logo img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    color: #555;
}

.section {
    padding: 60px 0;
}

/* Mobile padding */
.section-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

/* text helper */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* --- Header --- */
.header {
    background-color: var(--color-bg-dark);
    /* height: auto; Mobile header height might vary */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.distributor-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-serif);
    /* Giving it a premium feel */
    letter-spacing: 0.5px;
}

/* Logo Dimensions */
.logo img {
    width: 180px;
    height: auto;
}

/* --- Hero --- */
.hero {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    padding: 60px 0 100px;
    /* Reduced padding for mobile */
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0a2e1d 0%, #051910 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    /* Stack on mobile */
    align-items: center;
    gap: 40px;
    text-align: center;
    /* Center text on mobile */
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #fff;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* --- About --- */
.about {
    background: #fff;
}

.about-grid {
    display: flex;
    flex-direction: column;
    /* Stack on mobile */
    gap: 40px;
    align-items: center;
    text-align: center;
    /* Center text on mobile */
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2rem;
    color: #000;
}

/* --- WA CTA Section --- */
.wa-cta-section {
    background-color: #082015;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
}

.wa-cta-content h2 {
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.wa-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0 auto 30px;
}

/* --- Products --- */
.products {
    background-color: #fcfcfc;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    text-align: center;
    padding: 20px;
    background: #fff;
    /* Slight background for card definition on mobile */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.product-card img {
    margin: 0 auto 20px;
    max-height: 250px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 5px;
}

/* --- Testimonials --- */
.testimonials {
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack by default (Mobile First) */
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Enforce shape */
    background: var(--color-bg-dark);
    /* Placeholder color from brand */
    cursor: pointer;
    overflow: hidden;
    /* Ensure thumb doesn't overflow rounded corners if wrapper has them */
}

.video-wrapper video {
    width: 100%;
    /* display: block; removed in favor of thumb logic */
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-wrapper:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-wrapper:hover .play-button {
    transform: scale(1.1);
    background: #fff;
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--color-gold);
    margin-left: 4px;
    /* Optical centering */
}

.testimonial-info {
    padding: 20px;
}

.testimonial-card h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.how-it-works {
    background: #fff;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    /* Stack steps on mobile */
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}

.step-card {
    padding: 0 10px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--color-gold);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.step-icon-separator {
    display: none;
    /* Hidden on mobile */
    width: 1px;
    background: #e0e0e0;
    height: 100px;
    align-self: center;
}

/* --- Footer CTA --- */
.footer-cta {
    background-color: var(--color-bg-dark);
    padding: 80px 0;
    position: relative;
    text-align: center;
    /* Center on mobile */
}

.footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 25, 16, 1) 0%, rgba(5, 25, 16, 0.6) 100%);
}

.footer-cta-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.footer-cta h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* --- Footer --- */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
    /* Center on mobile */
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.footer-links h4 {
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #555;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 700px;
    /* Reduced from 900px */
    width: 90%;
    margin: auto;
    background: transparent;
}

.lightbox-content video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-gold);
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure it covers the 16:9 area */
    display: block;
    /* Border radius handled by card overflow hidden or wrapper */
    background: var(--color-bg-dark);
}

@media (min-width: 768px) {

    /* General */
    .section {
        padding: 100px 0;
    }

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

    /* Header */
    .header {
        padding: 20px 0;
        height: auto;
    }

    .header-container {
        justify-content: center;
    }

    /* Keep centered on desktop too */
    .logo-area {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    /* Row on desktop */
    .distributor-text {
        padding-left: 20px;
        border-left: 1px solid var(--color-gold);
        margin-left: 0;
        text-align: left;
    }

    /* Hero */
    .hero {
        padding: 100px 0 150px;
        background: radial-gradient(circle at 70% 20%, #0a2e1d 0%, #051910 70%);
        text-align: left;
        /* Reset alignment */
    }

    .hero-content {
        flex-direction: row;
        /* Horizontal layout */
        text-align: left;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
        margin-bottom: 25px;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    /* About */
    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 80px;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    /* WA CTA */
    .wa-cta-section {
        padding: 80px 0;
    }

    .wa-cta-content h2 {
        font-size: 2.2rem;
    }

    .wa-cta-content p {
        font-size: 1.1rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
        margin-top: 60px;
    }

    .product-card {
        padding: 20px;
        box-shadow: none;
        background: transparent;
    }

    .certification-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
        background: rgba(255, 255, 255, 0.8);
        padding: 10px 20px;
        border-radius: 50px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .certification-badge img {
        width: 120px;
        /* Increased from 40px */
        height: auto;
        margin: 0;
        object-fit: contain;
    }

    .certification-text {
        font-size: 0.9rem;
        color: #555;
        font-weight: 500;
        text-align: left;
        max-width: 200px;
        line-height: 1.3;
    }

    .product-card img {
        max-height: 300px;
    }

    .product-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    /* How It Works */
    .steps-grid {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 60px;
    }

    .step-card {
        flex: 1;
        padding: 0 20px;
    }

    .step-card h3 {
        font-size: 1.25rem;
    }

    .step-icon-separator {
        display: block;
        height: 150px;
    }

    /* Footer CTA */
    .footer-cta {
        padding: 120px 0;
        text-align: left;
    }

    .footer-cta::before {
        background: linear-gradient(to right, rgba(5, 25, 16, 1) 0%, rgba(5, 25, 16, 0.4) 100%);
    }

    /* Testimonials Desktop */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }

    .footer-cta h2 {
        font-size: 3rem;
    }

    /* Footer */
    .footer {
        padding: 80px 0 30px;
        text-align: left;
    }

    .footer-grid {
        flex-direction: row;
        /* Currently just logo + links, adjust if more cols */
        justify-content: space-between;
        /* simple spread */
        align-items: flex-start;
    }

    .footer-bottom {
        margin-top: 60px;
    }
}