:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --bg-alt: #181818;
    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    --accent-primary: #D32F2F;
    /* Red */
    --accent-secondary: #FFC107;
    /* Gold */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo,
.btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-accent {
    color: var(--accent-secondary);
}

.section-padding {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    font-weight: 500;
    color: var(--text-secondary);
}

nav a:hover {
    color: var(--accent-secondary);
}

.btn-nav {
    border: 1px solid var(--accent-secondary);
    padding: 5px 15px;
    border-radius: var(--radius);
    color: var(--accent-secondary);
}

.btn-nav:hover {
    background: var(--accent-secondary);
    color: var(--bg-dark);
}

/* Hero */
#hero {
    min-height: 100vh;
    /* Allow growth if content is tall */
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c0b0e 100%);
    overflow: hidden;
    padding-top: 130px;
    /* Space for fixed header (90px + space) */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #121212 90%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    /* Align left */
}

.hero-image-container {
    display: flex;
    justify-content: center;
    position: relative;

}

.hero-img-floating {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    border-radius: 5%;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* Mobile adjustments for Hero */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding-bottom: 40px;
    }

    .hero-text {
        text-align: center;
        order: 1;
        /* Text first */
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        order: 2;
        /* Image below text on mobile/tablet */
    }

    .hero-img-floating {
        max-width: 300px;

        /* Smaller image on mobile */
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Sabores */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.flavor-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.flavor-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow);
}

.icon-box {
    font-size: 3rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.flavor-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.flavor-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tradition */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.img-placeholder {
    background: var(--bg-card);
    height: 300px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--bg-dark);
    background: #333;
    /* Backup color */
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
}

/* Calculator */
.calculator-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 650px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.calc-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

input,
select {
    background: var(--bg-dark);
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.result-box {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 193, 7, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.result-box h3 {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin: 10px 0;
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #444;
    font-size: 0.9rem;
}

/* Widgets */
.float-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: 0.3s;
}

.float-wa:hover {
    transform: scale(1.1) rotate(10deg);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    color: var(--accent-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--accent-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    pointer-events: none;
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#back-to-top:hover {
    background: var(--accent-secondary);
    color: var(--bg-dark);
}

/* Extras Section */
.extras-list {
    font-size: 1.2rem;
    text-align: left;
    margin: 30px auto;
    display: inline-block;
}

.extras-list li {
    margin-bottom: 15px;
}

.large-text {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Calculator Extras */
.extras-select {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group input {
    width: auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
}

.process-step {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin: 20px 0;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-secondary);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 15% auto;
    padding: 40px;
    border: 1px solid var(--accent-primary);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius);
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Shrink logo on mobile */
    .logo img {
        height: 60px !important;
    }

    .logo {
        font-size: 1.2rem;
        /* Smaller text */
        gap: 10px;
    }

    /* Adjust Hero Padding for Mobile Header */
    #hero {
        padding-top: 100px;
        /* 60px header + 40px space */
        min-height: auto;
        /* Remove 100vh constraint on mobile if content is tall */
        padding-bottom: 60px;
    }

    /* Hamburger Menu & Mobile */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
    }

    @media (max-width: 768px) {

        /* Menu Toggle */
        .menu-toggle {
            display: block;
        }

        /* Mobile Nav */
        #main-nav {
            position: fixed;
            top: 70px;
            left: 0;
            width: 100%;
            background: var(--bg-card);
            padding: 20px;
            transform: translateY(-150%);
            transition: 0.3s;
            border-bottom: 1px solid var(--accent-secondary);
            z-index: 999;
        }

        #main-nav.active {
            transform: translateY(0);
        }

        #main-nav ul {
            flex-direction: column;
            align-items: center;
            gap: 25px;
        }

        /* Restored & New Layout Fixes */
        .hero-content h1 {
            font-size: 2.2rem;
            word-wrap: break-word;
        }

        .split-layout {
            grid-template-columns: 1fr;
        }

        .process-step {
            margin-bottom: 20px;
        }

        .calc-row {
            flex-direction: column;
        }

        .footer-content {
            flex-direction: column;
            gap: 30px;
        }

        /* Calculator & Overflow Fixes */
        .calculator-box {
            padding: 20px;
            width: 100%;
        }

        .checkbox-group {
            flex-direction: column;
            gap: 10px;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        .container {
            width: 95%;
        }
    }

    /* Extras & Shipping Refinements */
    .text-green {
        color: #25D366;
    }

    .divider {
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 20px 0;
    }

    .mb-3 {
        margin-bottom: 15px;
    }

    .shipping-note {
        background: rgba(211, 47, 47, 0.1);
        border: 1px solid var(--accent-primary);
        padding: 15px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }

    .shipping-note i {
        font-size: 1.5rem;
        color: var(--accent-primary);
    }

    /* Testimonials */
    .testimonials-slider {
        overflow-x: auto;
        padding-bottom: 20px;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .testimonials-slider::-webkit-scrollbar {
        display: none;
    }

    .testimonial-track {
        display: flex;
        gap: 30px;
        width: max-content;
        padding: 10px;
    }

    .testimonial-card {
        background: var(--bg-card);
        padding: 30px;
        border-radius: var(--radius);
        min-width: 300px;
        max-width: 350px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: var(--shadow);
    }

    .stars {
        color: var(--accent-secondary);
        margin-bottom: 15px;
    }

    .testimonial-card p {
        font-style: italic;
        color: var(--text-secondary);
        margin-bottom: 15px;
    }

    .testimonial-card h4 {
        text-align: right;
        color: var(--text-primary);
    }