/* Variables removed for production compatibility */

/* Icon System - Standard IMG with Filters */
.icon-svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

/* Color Filters for Black SVGs */
/* Filters removed - usage replaced by inline SVG colors */

/* Specific alignments */
.btn .icon-svg {
    margin-left: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1a0505;

    /* Luxury Background */
    background-image: linear-gradient(rgba(20, 0, 0, 0.85), rgba(20, 0, 0, 0.95)), url('assets/luxury_bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;

    color: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Wrapper */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 {
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: #e5e7eb;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #dc2626;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.btn:hover {
    background-color: #b91c1c;
    transform: scale(1.02);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    width: 100%;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid #450a0a;
}

/* Hero */
.hero {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-sub {
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.guarantee-seal {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.bottle-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
}

/* Sparks Effect */
.bottle-container {
    position: relative;
    display: inline-block;
}

.sparks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #fbbf24;
    /* Gold */
    border-radius: 50%;
    box-shadow: 0 0 10px #fbbf24, 0 0 20px #fbbf24;
    opacity: 0;
    bottom: 20%;
    /* Start slightly up */
    animation: floatUp 3s infinite ease-in-out;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-100px) translateX(20px) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-200px) translateX(-20px) scale(0);
        opacity: 0;
    }
}

/* Features/Common Sections */
.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

h2 span,
.text-gold,
[style*="color: #fbbf24"] {
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Feature Cards (Como Funciona) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.icon-box {
    color: #fbbf24;
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.icon-box .icon-svg {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}

.feature-card h3 {
    color: #fbbf24;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* New Ingredients Grid System */
.ingredients-grid-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 1.5rem;
    /* Large vertical gap for floating images */
    max-width: 1000px;
    margin: 0 auto;
}

.ingredient-card-new {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    color: #1f2937;
    /* Dark text for readability on white card */
    position: relative;
    width: calc(25% - 1.5rem);
    /* 4 items per row minus gap */
    margin-top: 40px;
    /* Space for floating image */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    /* Prepare for hover */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bottom row items (last 3) - centered by flexbox, but force width */
.ingredients-grid-new>.ingredient-card-new:nth-child(n+5) {
    width: calc(33.33% - 1.5rem);
    /* 3 items per row approx */
    max-width: 280px;
}

.ingredients-grid-new>.ingredient-card-new:nth-child(-n+4) {
    min-width: 200px;
    /* Ensure top row doesn't get squished */
}

/* Floating Image Container */
.ing-img-container {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -40px;
    /* Float up half height */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ing-img-container img {
    max-width: 100%;
    max-height: 100%;
}

/* Placeholders for missing images */
.placeholder-circle {
    background: #f3f4f6;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.placeholder-circle i {
    font-size: 2rem;
}



.red-glow {
    border-color: #ef4444;
    background: #fef2f2;
}

.green-glow {
    border-color: #16a34a;
    background: #f0fdf4;
}

.white-glow {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.gold-glow {
    border-color: #fbbf24;
    background: #fffbeb;
}

.blue-glow {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* Text Styling in Cards */
.ingredient-card-new h4 {
    margin-top: 2.5rem;
    /* Clear the floating image */
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.8rem;
}

.ingredient-card-new p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #4b5563;
    /* Grey text */
    margin: 0;
}

/* Mobile Responsiveness for Ingredients */
@media (max-width: 1024px) {
    .ingredients-grid-new {
        justify-content: center;
    }

    .ingredient-card-new,
    .ingredients-grid-new>.ingredient-card-new:nth-child(n+5) {
        width: calc(50% - 1.5rem);
        /* 2 per row */
        max-width: 350px;
    }
}

@media (max-width: 600px) {

    .ingredient-card-new,
    .ingredients-grid-new>.ingredient-card-new:nth-child(n+5) {
        width: 100%;
        /* Stack 1 per row */
        max-width: 100%;
    }

    .ingredients-grid-new {
        gap: 4rem 1rem;
    }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

.pricing-card {
    background: linear-gradient(145deg, #2a0a0a, #1a0505);
    border: 1px solid #450a0a;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
    border: 2px solid #fbbf24;
    background: linear-gradient(145deg, #450a0a, #2a0a0a);
    transform: scale(1.05);
    z-index: 10;
}

.best-value-badge {
    position: absolute;
    top: -25px;
    /* Moved up as requested */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #fbbf24, #d97706);
    color: #000;
    font-weight: 800;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    color: #e5e7eb;
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pack-offer {
    font-size: 1.4rem;
    color: #fbbf24;
    font-weight: 900;
    display: block;
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.discount-tag {
    background: #dc2626;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

.card-product-img {
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    position: relative;
}

.card-product-img img {
    max-height: 100%;
    transition: transform 0.3s;
}

.pricing-card:hover .card-product-img img {
    transform: scale(1.05);
}

.card-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.installments {
    color: #e5e7eb;
    font-size: 0.9rem;
    margin: 0;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0.2rem 0;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cash-price {
    color: #e5e7eb;
    font-size: 0.85rem;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
    font-size: 1rem;
}

/* Guarantee */
.guarantee-box {
    border: 2px solid #fbbf24;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 900px;
}

.guarantee-icon i {
    font-size: 4rem;
    color: #fbbf24;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: 8px;
    padding: 1rem;
}

summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

summary::after {
    content: '+';
    font-size: 1.5rem;
}

details[open] summary::after {
    content: '-';
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 0;
    border-top: 1px solid #450a0a;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.footer-links h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* =========================================
   MOBILE RESPONSIVE FIXES (Critical)
   ========================================= */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {

    /* Global Adjustments */
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Header */
    header .container nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 0;
        height: auto;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
        /* Image on top */
        margin-bottom: 1rem;
    }

    .hero-image img {
        max-width: 60%;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        font-size: 1.1rem;
        padding: 1.2rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Ingredients */
    .ingredients-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ingredient-list {
        text-align: left;
    }

    /* Pricing - Vertical Stacking */
    .pricing-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
        margin: 1rem 0;
    }

    .card-product-img {
        height: 120px;
    }

    .price-value {
        font-size: 2.5rem;
    }

    /* Guarantee */
    .guarantee-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Extra small devices check */
@media (max-width: 380px) {
    h1 {
        font-size: 1.8rem;
    }

    .pricing-card {
        padding: 1rem;
    }
}