/* Global Variables & Reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    /* --- NEW COLOR PALETTE (KEPT) --- */
    --primary-color: #0F172A;
    /* Deep Slate (New) */
    --secondary-color: #3B82F6;
    /* Vibrant Blue (New) */
    --accent-color: #E2E8F0;
    /* Light Slate */
    --text-color: #334155;
    /* Slate 700 */
    --light-bg: #F8FAFC;
    --white: #FFFFFF;

    /* --- ORIGINAL SHADOWS & TRANSITIONS --- */
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --card-overlay: linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.85));
    /* Using new primary color */
    --transition: all 0.3s ease;

    /* --- CALCULATOR SPECIFIC VARIABLES (Start of Restoration) --- */
    --ppr-blue: #0284C7;
    /* Sky 600 - Matches new vibe */
    --ppr-blue-light: #E0F2FE;
    --ppr-trad-color: #ff7043;
    /* Coral Red (Classic) */
    --ppr-success-color: #2e7d32;
    /* Emerald Green (Classic) */
    --ppr-orange-bg: rgba(255, 243, 224, 0.65);
    --ppr-orange-border: rgba(255, 224, 178, 0.8);
    --card-radius: 16px;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #F5F7FA;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* --- CLASSIC BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    /* Classic radius */
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    /* Restore border logic */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #1E293B;
    /* Slightly lighter slate */
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- CLASSIC HEADER --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 120px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    position: relative;
    width: 200px;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 160px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    mix-blend-mode: multiply;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 1001;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-left: 220px;
    /* Ensure space for the logo */
}

.nav-list {
    display: flex;
    gap: 25px;
    /* Increased from 15px */
    align-items: center;
}

.nav-list a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    /* Restored size */
    padding: 10px 15px;
    /* Increased padding */
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav-list a:hover {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--secondary-color);
}

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Just below the header/nav item */
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100;
    border: 1px solid rgba(0, 0, 0, 0.05);

    /* --- BUGFIX: BRIDGE GAP --- */
}

/* Pseudo-element to bridge the gap between button and menu so hover isn't lost */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Show when Active class is added via JS (Click toggle) */
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure no parent clips the overflow */
.header,
.nav,
.nav-list {
    overflow: visible !important;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu li a i {
    width: 25px;
    color: #94a3b8;
    transition: color 0.2s;
    font-size: 1rem;
}

.dropdown-menu li a:hover {
    background-color: #f8fafc;
    color: var(--secondary-color);
    padding-left: 25px;
    /* Slide effect */
}

.dropdown-menu li a:hover i {
    color: var(--secondary-color);
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 0;
}

.header-cta-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-whatsapp-header {
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-header:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6)), url('../assets/hero_bg.JPG');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-content {
    width: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-left-bio {
    display: flex;
    justify-content: center;
}

.hero-right-bio {
    color: var(--white);
    text-align: left;
    background: rgba(0, 0, 0, 0.65);
    /* Dark overlay */
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    /* Diffused effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-right-bio h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.hero-right-bio h3 {
    font-size: 1.8rem;
    color: #64B5F6;
    margin-bottom: 10px;
}

.role {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-right-bio .values-list {
    margin-top: 20px;
}

.hero-right-bio .values-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hero-right-bio .values-list i {
    color: #64B5F6;
    margin-right: 10px;
}

.hero-bio-img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 0;
    border: none;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px 25px;
    background: var(--card-overlay);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-content h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.card-content p {
    color: #E0E0E0;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.icon-box {
    font-size: 3rem;
    color: #64B5F6;
    margin-bottom: 15px;
}

/* Inline Details Panel */
.info-desplegable {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
    list-style-type: disc;
    display: none;
    /* Controlled by JS */
}

/* =========================================
   CALCULATOR SECTION - STRICT 3 COL RESTORE
   ========================================= */
.calculator-section {
    background-color: var(--primary-color);
    color: var(--white);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    padding: 80px 0;
}

/* This is the class that creates the 3 blocks */
.ppr-calculator-container.layout-3-cols {
    display: grid;
    grid-template-columns: 280px 1.5fr 280px;
    /* Exact Original Ratio */
    gap: 24px;
    align-items: stretch;
}

.ppr-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Ensuring generic text color override */
    color: #333;
}

.ppr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #37474f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 12px;
}

.card-title i {
    color: var(--ppr-blue);
    font-size: 1.2rem;
}

/* INPUTS RESTORATION */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #546e7a;
    margin-bottom: 8px;
    display: block;
}

.form-control,
input[type="number"],
input[type="text"],
input[type="tel"] {
    border: 2px solid #eceff1;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    color: #333;
}

.form-control:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: var(--ppr-blue);
    outline: none;
    background: #fbfdff;
}

/* SLIDER */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    margin: 10px 0;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--ppr-blue);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.3);
    border: 3px solid #fff;
    transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 4px;
}

/* BARS */
.chart-container-ppr {
    width: 100%;
    margin-bottom: 20px;
}

.chart-row {
    margin-bottom: 12px;
}

.chart-label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.chart-bar-wrapper {
    position: relative;
    height: 28px;
    background: #f5f5f5;
    /* Track bg */
    border-radius: 6px;
}

.chart-bar {
    height: 28px;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s;
    position: relative;
    overflow: hidden;
}

.bar-trad {
    background-color: var(--ppr-trad-color) !important;
}

.bar-ppr {
    background-color: var(--ppr-success-color) !important;
}

.chart-value-text {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    z-index: 5;
}

.bar-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
}

/* DATA COLUMN */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.data-label {
    font-size: 0.85rem;
    color: #78909c;
}

.data-value {
    font-weight: 600;
    font-size: 1rem;
    color: #546e7a;
}

.highlight-row {
    background: #f1f8e9;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #c5e1a5;
    margin-bottom: 25px;
    text-align: center;
}

.highlight-row .data-value {
    font-size: 1.35rem;
    color: var(--ppr-success-color);
}

.result-number {
    font-size: 2.2rem;
    background: none;
    /* Remove gradient from redesign */
    color: var(--ppr-blue);
    letter-spacing: normal;
    -webkit-text-fill-color: initial;
    display: block;
    margin: 5px 0;
}

.frosted-orange {
    background: var(--ppr-orange-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--ppr-orange-border);
    border-radius: 12px;
    padding: 15px;
}

/* --- EDUCATION & TESTIMONIALS --- */
.education {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75)), url('../assets/educación financiera.jfif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for premium feel */
    padding: 80px 0;
}

.education .section-header h2,
.education .section-header p {
    color: var(--white);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.edu-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: none;
}

.edu-card h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}


/* --- FISCAL CALCULATOR STYLES (Restored) --- */
.fiscal-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.fiscal-col-calc,
.fiscal-col-edu {
    flex: 1;
    min-width: 300px;
}

/* Edu Card Text Fix */
.edu-card p {
    color: #555;
    /* Explicit dark color for visibility */
    font-size: 1rem;
}

/* Fiscal Card Styles */
.card-tax {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Classic soft shadow */
    background: var(--white);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header-tax {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: var(--white);
    padding: 15px;
    /* Classic padding */
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 1rem;
}

.card-body-tax {
    padding: 25px;
}

.input-group-tax {
    margin-bottom: 20px;
}

.input-label-tax {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.input-custom {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s;
}

.input-custom:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.btn-calc {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    /* Classic radius */
    padding: 15px;
    font-weight: 700;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-calc:hover {
    background-color: #1E293B;
}

/* Results Area */
.result-box {
    background-color: #f8fafc;
    /* Light slate */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 25px;
    border: 2px dashed var(--secondary-color);
    display: none;
    /* Hidden by default */
}

.result-badge {
    background-color: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.result-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.refund-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2E7D32;
    margin: 10px 0;
}

.breakdown-card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #555;
}

.divider-dashed {
    border-top: 2px dashed #ddd;
    margin: 10px 0;
    padding-top: 10px;
}

.whatsapp-btn-fiscal {
    background-color: #25d366;
    color: white;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 20px;
}

/* Fiscal Education Card - Restoring white bg for visibility against dark image */
.fiscal-card-edu {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Stronger shadow for lift */
    border-left: 5px solid var(--secondary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
}

.article-badge {
    background-color: #e0f2fe;
    /* Light blue bg */
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fiscal-col-edu p {
    color: #475569;
    /* Slate 600 - Good contrast on white */
    font-size: 0.95rem;
    line-height: 1.6;
}

.fiscal-col-edu h2.fiscal-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.fiscal-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    display: block;
    margin: 0 auto 20px auto;
    text-align: center;
}


/* Testimonials */
.testimonials {
    background-color: var(--primary-color);
    /* Corporate Blue Background */
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.testimonials .section-header h2,
.testimonials .section-header p {
    color: var(--white);
    /* Ensure visible text */
}

.testimonials .section-header p {
    opacity: 0.9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--secondary-color);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- FOOTER --- */
.footer {
    background-color: #020617;
    color: #B0B0B0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

/* --- RESPONSIVE --- */
/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    /* FORCE VERTICAL STACK WITH !IMPORTANT */
    .layout-3-cols {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 30px !important;
        box-sizing: border-box !important;
        padding: 0 10px !important;
    }

    /* Force children to full width */
    .ppr-col-control,
    .ppr-col-visual,
    .ppr-col-data {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 30px !important;
    }

    .ppr-col-data {
        margin-bottom: 0 !important;
    }

    /* FORCE ORDER */
    .ppr-col-control {
        order: 1 !important;
    }

    .ppr-col-visual {
        order: 2 !important;
    }

    .ppr-col-data {
        order: 3 !important;
    }

    .ppr-calculator-container {
        padding: 0 !important;
        width: 100% !important;
        background: transparent !important;
    }

    /* Edu Grid to single col on mobile */
    .edu-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .header-logo-img {
        height: 85px;
        /* Maximize within 90px header */
        width: auto;
        object-fit: contain;
        object-position: left center;
        margin-left: -5px;
        /* Pull slightly left to maximize visual fill */
    }

    /* --- OPTIMIZED MOBILE HEADER (Maximized Logo Fit) --- */
    .header {
        height: 90px;
        /* Standard mobile height */
        padding: 0;
    }

    .header-container {
        flex-direction: row;
        align-items: center;
        /* Center items vertically */
        justify-content: space-between;
        padding: 0 10px;
        position: relative;
        height: 100%;
    }

    /* Logo Left */
    .logo-left {
        width: auto;
        height: 100%;
        /* Fill container height */
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        overflow: visible;
    }

    /* Revert Right Group positioning */
    .header-right-group {
        margin-top: 0;
        align-self: center;
        width: auto;
        justify-content: flex-end;
        align-items: center;
        flex-direction: row;
        gap: 6px;
        /* Tight gap */
        margin-left: 10px;
        flex-shrink: 0;
        /* Prevent buttons from squishing */
    }

    /* Buttons: Compact & Visual */
    .header-cta-btn,
    .btn-whatsapp-header {
        width: auto !important;
        display: inline-flex;
        padding: 5px 8px !important;
        /* Smaller padding */
        font-size: 0.7rem !important;
        /* Smaller text */
        border-radius: 6px;
        margin: 0;
        height: 32px;
        /* Fixed small height */
        line-height: normal;
        align-items: center;
    }

    /* Hide icon text on very small screens if needed, or keep compact */
    .header-cta-btn i,
    .btn-whatsapp-header i {
        font-size: 0.9rem;
        margin-right: 4px !important;
    }

    /* Absolute Hamburger */
    .mobile-menu-btn {
        display: block;
        position: static;
        /* Flow with right group */
        margin-left: 5px;
        font-size: 1.4rem;
        top: auto;
        right: auto;
    }

    /* Navigation fix */
    /* Navigation fix */
    /* Navigation fix - Cleaned up */

    /* Fix Education Background on Mobile (Remove Fixed Attachment) */
    .education {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    /* --- MOBILE MENU CONTAINER --- */
    .nav {
        display: none;
        /* Toggled by JS */
        position: absolute;
        top: 100%;
        /* Below header */
        left: 0;
        z-index: 9999;
        /* Boost to verify "above everything" */
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f1f1f1;
        max-height: 80vh;
        /* Allow scrolling if menu is tall */
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        /* Stack items vertically */
        gap: 0;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #f8f9fa;
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Ensure container doesn't overflow */
    .container {
        padding: 0 15px;
        overflow-x: hidden;
    }

    /* FIX: Header container must NOT hide overflow or the menu gets clipped/trapped */
    .header-container {
        overflow: visible !important;
        position: static;
        /* Let the header manage positioning */
    }

    /* --- MOBILE MENU CONTAINER --- */
    .nav {
        display: none;
        /* Toggled by JS */
        position: absolute;
        top: 100%;
        /* Below header */
        left: 0;
        z-index: 9999;
        /* Boost to verify "above everything" */
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f1f1f1;
        max-height: 80vh;
        /* Allow scrolling if menu is tall */
        overflow-y: auto;
    }

    .dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        /* Stack naturally in the flow */
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 0;
        opacity: 1;
        /* Always visible or rely on JS/Hover */
        visibility: visible;
        transform: none;
        display: none;
        /* Hidden by default, show on hover/click */
        padding-left: 20px;
        /* Indent items */
        margin-top: 10px;
    }

    /* Show on click (via JS toggling .active class) */
    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu li a {
        padding: 10px 0;
        color: #555;
        /* Ensure contrast */
    }

    .dropdown-menu li a:hover {
        background: transparent;
        color: var(--secondary-color);
        padding-left: 5px;
    }
}

/* --- SOCIAL BUTTONS (Premium) --- */
.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    /* Pill shape */
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-social i {
    font-size: 1.3rem;
}

/* Instagram */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 20px -5px rgba(220, 39, 67, 0.5);
}

.btn-instagram:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(220, 39, 67, 0.7);
    filter: brightness(1.1);
}

/* Facebook */
.btn-facebook {
    background: #1877F2;
    box-shadow: 0 10px 20px -5px rgba(24, 119, 242, 0.5);
}

.btn-facebook:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(24, 119, 242, 0.7);
    background: #166fe5;
}

/* Shine Effect on Hover */
.btn-social::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-social:hover::after {
    left: 100%;
}

/* --- UDI SECTION STYLES (Image Background Design) --- */
.udi-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85)), url('../assets/ah.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 80px 0;
    color: #FFFFFF;
    /* White Text */
    position: relative;
    overflow: hidden;
}

/* Removed previous ::before pseudo-element as we have an image now */

.graph-card {
    position: relative;
    z-index: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    /* Increased whiteness for visibility */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Stronger border */
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 40px;
}

.graph-header h3 {
    font-size: 2rem;
    color: #FFFFFF;
    /* White Header */
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.udi-highlight {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    /* Light White Subtitle */
    font-weight: 500;
}

.graph-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-width: 900px;
}

.udi-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Bold Graph Lines */
/* Bold Graph Lines */
/* --- PRO GRAPH STYLES (Green/Blue Refactor) --- */

/* 1. Curve & Area (GREEN) */
.graph-line-spline-green {
    stroke: #10B981;
    /* Precise Emerald Green as requested */
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
    filter: drop-shadow(0 4px 6px rgba(16, 185, 129, 0.4));
    /* Removed animation for reliable visibility */
}

.graph-area-spline-green {
    fill: url(#gradientFill);
    opacity: 0;
    animation: fadeInArea 2s ease-out 0.5s forwards;
}

/* 2. Grid & Axis */
.grid-line {
    stroke: #e2e8f0;
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

.grid-label {
    font-size: 10px;
    fill: #94a3b8;
    /* Slate-400 */
    font-family: 'Inter', sans-serif;
    text-anchor: end;
}

.axis-label {
    font-size: 11px;
    fill: #64748b;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.hoy-line-guide {
    stroke: #cbd5e1;
    stroke-width: 1;
    stroke-dasharray: 3, 3;
}

.hoy-label {
    font-size: 10px;
    fill: #64748b;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 3. Data Points (BLUE) */
.visible-dot-blue {
    fill: #0ea5e9;
    /* Blue Fill */
    stroke: #ffffff;
    /* White Stroke for contrast */
    stroke-width: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.visible-dot-blue:hover {
    r: 8;
    stroke-width: 4;
    fill: #e0f2fe;
}

.hit-area {
    fill: transparent;
    cursor: pointer;
}

/* 4. Typography Hierarchy */
.data-label {
    font-size: 12px;
    fill: #94a3b8;
    font-family: 'Inter', sans-serif;
    text-anchor: middle;
}

.data-label.current {
    font-weight: 600;
    fill: #0ea5e9;
    /* Blue */
}

.hero-amount {
    font-size: 26px;
    font-weight: 800;
    fill: #0f172a;
    /* Slate-900 */
    font-family: 'Inter', sans-serif;
}

.hero-subtitle {
    font-size: 12px;
    fill: #64748b;
    font-family: 'Inter', sans-serif;
}

/* 5. Tooltip Element */
.graph-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
    /* Ignore clicks */
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    transform: translate(-50%, -100%);
    margin-top: -12px;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.graph-tooltip .tooltip-year {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.graph-tooltip .tooltip-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
    /* Green Text in Tooltip */
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .hide-mobile {
        display: none;
    }

    .hero-amount {
        font-size: 20px;
    }
}

/* --- MODERN COMPARISON CARDS (Dark Mode) --- */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

/* --- STANDARD COMPARISON BLOCKS (Glass Variant) --- */
.comparison-card-standard {
    /* Inherits base properties from .ppr-card in HTML */
    background: rgba(30, 41, 59, 0.6) !important;
    /* Semi-transparent Slate Glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card-standard:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Indicator Colors (Top Border for subtlety) */
/* .card-pesos-standard { border-top-color: #ef4444; } -- Removed for solid look */

.card-icon-large {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 1;
}

.card-pesos-standard .card-icon-large {
    color: #fca5a5;
    /* Light Red for visibility on Blue */
}

.card-udis-standard .card-icon-large {
    color: #6ee7b7;
    /* Light Green for visibility on Blue */
}

.card-title-block h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    /* White Title */
    margin-bottom: 10px;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    /* Glassy Tag */
    color: #FFFFFF;
}

.tag-pesos {
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.tag-udis {
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.card-desc-standard p {
    color: #cbd5e1;
    /* Light Grey Text */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.card-desc-standard strong {
    color: #FFFFFF;
    /* White Strong */
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    /* Slight white tint */
    margin-bottom: 20px;
}

.card-pesos .card-icon-wrapper i {
    color: #ef4444;
    /* Red Icon */
    font-size: 24px;
}

.card-udis .card-icon-wrapper i {
    color: #10b981;
    /* Green Icon */
    font-size: 24px;
}

.comparison-card-modern.good .card-title {
    color: #15803d;
}

.card-desc p {
    color: #cbd5e1;
    /* Light Slate Text */
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-desc strong {
    color: #f1f5f9;
    /* White Emphasis */
}

.card-content h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-pesos .card-tag {
    background: #fee2e2;
    color: #ef4444;
}

.card-udis .card-tag {
    background: #d1fae5;
    color: #059669;
}

.card-desc p {
    color: #475569;
    /* Slate 600 for readability on white */
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-desc strong {
    color: #1e293b;
    /* Dark Slate for emphasis */
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-card-modern.bad .card-tag {
    background: #fca5a5;
    color: #7f1d1d;
}

.comparison-card-modern.good .card-tag {
    background: #86efac;
    color: #14532d;
}

/* Keyframes (Restored) */
@keyframes drawGraph {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInArea {
    to {
        opacity: 1;
    }
}

/* Comparison V2 - Fluid */
.comparison-card-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card-wrapper h4,
.comparison-card-wrapper p {
    position: relative;
    z-index: 1;
}

.comparison-card-wrapper>div>div {
    background: #f8fafc;
    /* Distinct light background */
    border-radius: 12px;
    box-shadow: none;
    /* No box shadow */
    border: 1px solid #e2e8f0;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {

    /* Stack Education Cards Correctly */
    .edu-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .edu-card {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Graph Mobile Optimization */
    .graph-header h3 {
        font-size: 1.5rem;
    }

    .udi-highlight {
        font-size: 0.95rem;
    }

    .graph-card {
        padding: 20px;
    }

    /* Adjust Graph SVG text for mobile if needed */
    .graph-value {
        font-size: 14px;
    }

    /* Mobile: Comparison Vertical Stack */
    .comparison-container {
        grid-template-columns: 1fr;
    }

    /* Mobile: Fiscal Vertical Stack */
    .fiscal-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- FISCAL BENEFITS SECTION STYLING --- */
.fiscal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.fiscal-card-edu {
    background-color: #f8fbff;
    /* Very light blue background to standout from white */
    border: 1px solid #e3f2fd;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px -10px rgba(0, 77, 64, 0.08);
    /* Subtle shadow */
    position: relative;
    overflow: hidden;
    height: 100%;
    /* For visual balance if grid is same height */
}

/* Decorative top border */
.fiscal-card-edu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.fiscal-title {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-badge {
    background: #e0f7fa;
    color: #006064;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid #b2ebf2;
}

.fiscal-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    /* Updated accent color */
    margin-bottom: 20px;

    display: block;
    text-align: center;
}

/* --- LOCKED STATE (Red Blur Overlay) --- */
.locked-blur-red {
    position: relative;
    overflow: hidden !important;
    pointer-events: none;
    user-select: none;
    background-color: #fff;
}

.locked-blur-red::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;

    /* The Magic: Blur + Grayscale + Red Tint */
    backdrop-filter: blur(1px) grayscale(40%);
    -webkit-backdrop-filter: blur(1px) grayscale(40%);

    /* Red Shadow / Tint */
    background: rgba(229, 57, 53, 0.03);
    /* Slightly more red tint */
    box-shadow: inset 0 0 50px rgba(211, 47, 47, 0.35);
    /* Stronger red shadow */
    border: 2px solid rgba(229, 57, 53, 0.4);
    /* More visible red border */
    border-radius: var(--card-radius);
}

/* =========================================
   STRATEGY SECTION RESPONSIVE LAYOUT
   ========================================= */

/* Problem Box */
.problem-box {
    background: rgba(255, 69, 58, 0.1);
    border-left: 3px solid #ff5252;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 35px;
}

/* Strategy Grid Container */
.strategy-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default Mobile (Stacked) */
    gap: 20px;
    margin-bottom: 40px;
}

/* Desktop/Tablet Override: Strict 2x2 Grid */
@media (min-width: 768px) {
    .strategy-grid {
        grid-template-columns: 1fr 1fr;
        /* Two Equal Columns */
    }
}

/* Feature Card Styling */
.strategy-card {
    background: rgba(30, 41, 59, 0.7);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.strategy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.strategy-icon-box {
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    /* Fixed width for alignment */
    height: 45px;
}