:root {
    /* Colors - Red Intensive Theme Default */
    --primary: #ffffff;
    --primary-light: #f3e5e2;
    --secondary: #c5a059;
    --secondary-hover: #b08d4b;
    --text-btn: #3a150d;
    --text-main: #ffffff;
    --text-dim: #f3e5e2;
    --bg-main: #9c412d;
    --bg-alt: #8a3826;

    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.15);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --card-shadow-hover: rgba(0, 0, 0, 0.2);
    --header-bg-scrolled: rgba(156, 65, 45, 0.95);
    --footer-bg: #5c1b10;
}

:root {
    /* Fonts */
    --font-serif: 'Playfair Display',
        serif;
    --font-sans: 'Inter',
        system-ui,
        -apple-system,
        sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    word-wrap: break-word;
}

/* Typography - Mobile First */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    /* Kept white for hero section */
}

h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary);
    font-style: italic;
}

/* Layout Elements */
section {
    padding: var(--section-padding);
    width: 100%;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

/* Header - Mobile First (Stacked) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 1000;
    transition: all 0.4s ease;
    background: var(--bg-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    padding: 8px;
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}



/* Hamburger Menu (Mobile First) */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Nav Menu (Mobile Hidden by default) */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-main);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1005;
    display: flex;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
}

.logo-text .thin {
    font-weight: 400;
    color: var(--secondary);
}

/* Premium Card utility (replacing glassmorphism) */
.premium-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--card-shadow-hover);
    border-color: var(--secondary);
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(156, 65, 45, 0.1);
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(156, 65, 45, 0.3);
}

/* Buttons - Mobile First */
.btn {
    display: block;
    /* Full width on mobile */
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--text-btn);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: #fff;
}

/* Grids - Mobile First (Single Column) */
.grid,
.grid-3,
.grid-4,
.services-grid,
.cases-grid,
.testimonials-grid,
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

/* Hero - Mobile First */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=85');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 35, 64, 0.7);
    /* Dark blue overlay for contrast */
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

.hero-content p {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-ctas {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-ctas .btn-secondary {
    color: #fff;
    border-color: #fff;
}

.hero-ctas .btn-secondary:hover {
    background-color: #fff;
    color: var(--primary);
}

.hero-trust {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.hero-trust .stars {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* About Section Layout */
.about-text {
    width: 100%;
}

#beneficios {
    background-color: var(--bg-main);
}

/* Mobile Button Hiding */
@media (max-width: 767px) {
    .mobile-sticky-cta {
        display: none !important;
    }

    .hero {
        padding-top: 60px;
    }
}

/* FAQ Accordion Styles */
.faq-item {
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0.8rem 0;
    font-size: 1.1rem;
}

.faq-item h3::after {
    content: '+';
    font-family: var(--font-sans);
    color: var(--secondary);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--text-dim);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 0.8rem;
}

/* Process Steps Improvement */
.steps-container {
    counter-reset: step;
}

.step {
    position: relative;
    padding: 2.5rem;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--card-shadow-hover);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-sans);
    box-shadow: 0 4px 10px rgba(156, 65, 45, 0.3);
}

/* Service Card Buttons */
.service-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--secondary);
    color: var(--text-btn);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: var(--secondary-hover);
    transform: translateX(5px);
}

/* Service Card Base & Icons */
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.15);
    color: var(--secondary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Base list inside cards text-align fixes */
.service-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

/* Comparison Cards Styling */
.comparison-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comp-box {
    text-align: center;
}

.comp-box ul {
    list-style: none;
    margin-top: 1.5rem;
    display: inline-block;
    text-align: left;
}

.comp-box li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-positive.premium-card {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
}

.comp-positive h3,
.comp-positive p {
    color: var(--bg-main);
}

.comp-positive li {
    color: var(--bg-main);
}

/* Case Result Cards Centering */
.case-card {
    text-align: center;
    border-radius: 4px;
}

.case-card p {
    margin-bottom: 0.8rem;
}

.case-result {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(156, 65, 45, 0.1);
    color: var(--secondary);
    border-radius: 20px;
    margin-top: 1rem;
    font-weight: 600;
}

.case-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pricing Improvement */
.pricing-content {
    max-width: 900px;
    margin: 0 auto;
    border-top: 4px solid var(--secondary);
    transition: box-shadow 0.3s ease;
}

.pricing-content:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.p-feat h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Footer Brand Logo */
.fd-logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-family: var(--font-sans) !important;
    margin-top: 2rem;
    justify-content: center;
}

.fd-logo:hover {
    opacity: 1;
}

.fd-box {
    width: 22px;
    height: 22px;
    background: #0ea5e9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 11px;
    font-style: italic;
    transition: transform 0.3s ease;
}

.fd-logo:hover .fd-box {
    transform: scale(1.1);
}

.fd-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #64748b;
    text-transform: uppercase;
}

.fd-highlight {
    color: #0284c7;
}


/* Footer */
.footer {
    padding: 3rem 1rem 2rem;
    text-align: center;
    background: var(--footer-bg);
    color: #ffffff;
    border-top: none;
}

.footer p {
    color: #e2e8f0;
}

.footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* DESKTOP ENHANCEMENTS (min-width: 768px) */
@media (min-width: 768px) {
    :root {
        --section-padding: 100px 20px;
    }

    #main {
        margin-top: 0;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .theme-switcher {
        flex-direction: row;
        top: 20px;
    }

    .header,
    .header.scrolled {
        padding: 1rem 2rem;
        background: var(--header-bg-scrolled);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: var(--container-max);
        margin: 0 auto;
    }

    /* Undo mobile menu styles for desktop */
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        width: auto;
        height: auto;
        box-shadow: none;
        background: transparent;
        gap: 2rem;
    }

    .logo {
        flex-shrink: 0;
    }

    .nav-link {
        font-size: 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .header .btn {
        width: auto;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: auto;
    }

    .grid-3,
    .grid-4,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-flex {
        flex-direction: row;
        align-items: stretch;
    }

    .about-image {
        flex: 1;
        min-height: 400px;
    }

    .about-image img {
        height: 100%;
    }

    .about-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .glass-card {
        padding: 2rem;
    }

    .mobile-sticky-cta {
        display: none;
    }

    .whatsapp-float {
        bottom: 30px;
    }
}

/* LARGE DESKTOP (min-width: 1024px) */
@media (min-width: 1024px) {

    .grid-3,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}