/* ==========================================================================
   Design System & Variables (V4 - Bottom Nav & Slider Re-integrated)
   ========================================================================== */
:root {
    --primary: #0A1128;         /* Deep Navy Blue */
    --primary-light: #1C2541;   /* Steel Navy Blue */
    --accent: #CCA333;          /* Gold Accent */
    --accent-hover: #E5B83B;    /* Lighter Gold */
    --accent-light: rgba(204, 163, 51, 0.1); /* Soft Ivory Gold Tint */
    --text-dark: #1E293B;       /* Dark slate text */
    --text-muted: #64748B;      /* Slate grey text */
    --bg-light: #F8FAFC;        /* Off-white background */
    --bg-dark: #0B0F19;         /* Dark navy for sections/footer */
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(10, 17, 40, 0.08), 0 4px 6px -2px rgba(10, 17, 40, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(10, 17, 40, 0.12), 0 10px 10px -5px rgba(10, 17, 40, 0.04);
    --shadow-accent: 0 10px 20px -3px rgba(204, 163, 51, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Common Typography & Layout elements */
.text-center { text-align: center; }
.text-light { color: var(--white); }
.text-light-muted { color: #94A3B8; }

.section-header {
    margin-bottom: 4rem;
}

.sub-title {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, #ECC94B 100%);
    margin: 1.25rem auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.badge {
    background: #F9F6F0;
    color: var(--accent);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(204, 163, 51, 0.15);
}

.highlight {
    background: linear-gradient(120deg, rgba(204, 163, 51, 0.15) 0%, rgba(204, 163, 51, 0.3) 100%);
    color: var(--primary);
    padding: 0 0.2rem;
    border-radius: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #D4AF37 100%);
    color: var(--primary);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(204, 163, 51, 0.5);
    background: linear-gradient(135deg, var(--accent-hover) 0%, #ECC94B 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   WhatsApp Floating Widget
   ========================================================================== */
.whatsapp-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    font-size: 2.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: pulse-wa 2s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--white);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (V4 Mobile-Only Pattern)
   ========================================================================== */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 17, 40, 0.95);
    height: 70px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.menu-toggle {
    display: none; /* Removed/hidden toggle to avoid top hamburger clutter on mobile */
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-hover);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-accent);
}

.nav-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.nav-btn::after {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--primary);
    background-image: radial-gradient(circle at 10% 20%, rgba(28, 37, 65, 0.4) 0%, transparent 45%);
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    color: var(--white);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 80%, rgba(204, 163, 51, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #F5CE62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual & Animations */
.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Floating UI cards in Hero */
.floating-card {
    position: absolute;
    background: rgba(10, 17, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.floating-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
}

.floating-card p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

.revenue-card {
    top: 20%;
    left: -40px;
    animation-delay: 0s;
}

.support-card {
    bottom: 10%;
    right: -20px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==========================================================================
   Stat Bar
   ========================================================================== */
.stat-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
}

.stat-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 6.5rem 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-list {
    margin-bottom: 2rem;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-list li i {
    color: var(--accent);
}

.service-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.service-link i {
    transition: var(--transition);
}

/* Service Card Hover States */
.service-card:hover, .service-card.active {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 17, 40, 0.05);
}

.service-card:hover::after, .service-card.active::after {
    background: var(--accent);
}

.service-card:hover .service-icon, .service-card.active .service-icon {
    background: var(--accent);
    color: var(--primary);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   Methodology Section
   ========================================================================== */
.methodology-section {
    padding: 6.5rem 0;
    background-color: var(--white);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.methodology-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    position: relative;
    transition: var(--transition);
}

.methodology-step-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.75rem;
    font-weight: 800;
    color: rgba(204, 163, 51, 0.1);
    line-height: 1;
    z-index: 1;
}

.methodology-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(204, 163, 51, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(204, 163, 51, 0.15);
}

.methodology-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.methodology-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.methodology-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.methodology-card:hover .methodology-step-num {
    color: rgba(204, 163, 51, 0.25);
}

/* ==========================================================================
   Centro Interactivo (V4 - Slider & Quiz)
   ========================================================================== */
.diagnostico-section {
    padding: 6.5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.diagnostico-section::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(204, 163, 51, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.text-light-header {
    margin-bottom: 3.5rem;
}

.tool-tabs {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.tool-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.85rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-tab-btn:hover {
    color: var(--white);
    border-color: var(--accent);
}

.tool-tab-btn.active {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.tools-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tool-pane {
    display: none;
}

.tool-pane.active {
    display: block;
    animation: fade-in-tool 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-tool {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Range Slider Tool Grid styles */
.slider-tool-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: var(--text-dark);
}

.tool-input-side {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
}

.tool-input-side h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.tool-input-side p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.range-container {
    margin-bottom: 2.5rem;
}

.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.range-value {
    color: var(--accent);
    font-size: 1.25rem;
    background: #FDFBF7;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(204, 163, 51, 0.15);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-light);
    outline: none;
    border: 1px solid var(--border-color);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(204, 163, 51, 0.4);
    border: 3px solid var(--white);
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(204, 163, 51, 0.4);
    border: 3px solid var(--white);
    transition: var(--transition);
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.range-limits {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.taxpayer-selector label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.selector-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: var(--bg-light);
    padding: 0.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.profile-toggle-btn {
    background: transparent;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.profile-toggle-btn.active {
    background: var(--white);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.tool-output-side {
    background: #FDFBF7;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.metric-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.text-red { color: #EF4444; }
.text-green { color: #10B981; }

.metric-card.highlight-card {
    border-color: rgba(10, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.02);
}

.saving-hero {
    background: rgba(204, 163, 51, 0.05);
    border: 1.5px dashed var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.saving-hero i {
    font-size: 1.85rem;
    color: var(--accent);
}

.saving-hero span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.15rem;
}

.saving-hero h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.tool-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* 2. Onboarding Quiz Wizard style */
.quiz-wizard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
}

.quiz-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #ECC94B 100%);
    transition: width 0.3s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fade-in-step 0.4s ease forwards;
}

@keyframes fade-in-step {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-step h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option-btn {
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    padding: 1.15rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.quiz-option-btn i {
    font-size: 1.35rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.quiz-option-btn:hover {
    border-color: var(--accent);
    background: var(--white);
    transform: translateX(5px);
}

.quiz-option-btn:hover i {
    color: var(--accent);
}

.quiz-option-btn.selected {
    background: rgba(204, 163, 51, 0.08);
    border-color: var(--accent);
    color: var(--primary);
}

.quiz-option-btn.selected i {
    color: var(--accent);
}

/* Results styles */
.quiz-result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-result-header i {
    font-size: 3rem;
    color: #10B981;
    margin-bottom: 0.5rem;
}

.quiz-result-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.quiz-result-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.summary-item {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.summary-item strong {
    color: var(--accent);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.quiz-recommendation-card {
    background: rgba(204, 163, 51, 0.05);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 2rem;
}

.quiz-recommendation-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.quiz-recommendation-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.quiz-action-buttons {
    display: flex;
    gap: 1rem;
}

.quiz-action-buttons .btn {
    flex: 1;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.step-counter {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Portfolio / Detailed Section
   ========================================================================== */
.portfolio-section {
    padding: 6.5rem 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.85rem 1.75rem;
    font-family: var(--font);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fade-in-panel 0.5s ease forwards;
}

@keyframes fade-in-panel {
    from { opacity: 0; }
    to { opacity: 1; }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.item-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(204, 163, 51, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    z-index: -1;
    transition: var(--transition);
}

.portfolio-item-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    position: relative;
}

.portfolio-item-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.portfolio-item-card:hover {
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.portfolio-item-card:hover .item-num {
    color: rgba(204, 163, 51, 0.25);
    transform: scale(1.1);
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-section {
    padding: 6.5rem 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4.5rem;
    align-items: center;
}

.about-intro h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.about-intro p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.about-feat-item {
    display: flex;
    gap: 1rem;
}

.icon-holder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.about-feat-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.about-feat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(204, 163, 51, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.about-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 6.5rem 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    background: var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 4rem 3rem;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-panel h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-item i {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.info-item p a:hover {
    color: var(--accent);
}

.contact-form-panel {
    background: var(--white);
    padding: 4rem 3.5rem;
}

.contact-form-panel h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.contact-form-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Floating Input Labels style */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group-float {
    position: relative;
    margin-bottom: 2rem;
}

.form-control-float {
    width: 100%;
    padding: 0.9rem 0;
    border: none;
    border-bottom: 1.5px solid var(--border-color);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    background: transparent;
    transition: var(--transition);
}

.form-control-float:focus {
    border-bottom-color: var(--accent);
}

.form-group-float label {
    position: absolute;
    top: 0.9rem;
    left: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    transition: var(--transition);
}

.form-control-float:focus ~ label,
.form-control-float:not(:placeholder-shown) ~ label {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

textarea.form-control-float {
    resize: none;
}

select.form-control-float {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1.1rem;
}

.form-control-float:focus ~ .label-select,
.form-control-float:valid ~ .label-select,
.form-control-float:not(.select-placeholder) ~ .label-select {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

.error-msg {
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    font-size: 0.75rem;
    color: #EF4444;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.form-group-float.has-error .form-control-float {
    border-bottom-color: #EF4444;
}

.form-group-float.has-error .error-msg {
    opacity: 1;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
    color: #14532D;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-status i {
    font-size: 1.25rem;
    color: #16A34A;
}

.form-status.hidden {
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4, .footer-schedule h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after, .footer-schedule h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.footer-schedule p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-schedule i {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .revenue-card {
        left: 0;
    }
    
    .support-card {
        right: 0;
    }
    
    .services-grid, .methodology-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .diagnostico-wrapper, .slider-tool-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .tool-input-side {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .contact-wrapper {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .footer-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .footer-schedule {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Safe Bottom padding on mobile to clear bottom tab bar and handle safe areas (e.g. iOS home bar) */
    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    }

    /* Shift WhatsApp button up on mobile to avoid overlapping bottom bar */
    .whatsapp-container {
        bottom: calc(85px + env(safe-area-inset-bottom, 0px));
        right: 1.5rem;
    }

    /* V4 Mobile Bottom Navigation styling with Safe Area support */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(65px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(10, 17, 40, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1.5px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-left: calc(0.5rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.5rem + env(safe-area-inset-right, 0px));
    }

    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.72rem;
        font-weight: 600;
        gap: 4px;
        flex: 1;
        height: 100%;
    }

    .mobile-nav-link i {
        font-size: 1.25rem;
        transition: var(--transition);
    }

    .mobile-nav-link.active {
        color: var(--accent);
    }

    .mobile-nav-link.active i {
        transform: translateY(-2px);
    }

    /* Hide desktop vertical drawer and top toggle */
    .menu-toggle {
        display: none !important;
    }

    .nav-menu {
        display: none !important;
    }

    .navbar {
        height: 70px;
        background: rgba(10, 17, 40, 0.98);
        box-shadow: var(--shadow-sm);
        backdrop-filter: blur(10px);
    }

    .navbar.scrolled {
        height: 70px;
    }

    .nav-container {
        justify-content: center; /* Center the logo on mobile header */
    }

    .logo-img {
        height: 38px;
    }

    .navbar.scrolled .logo-img {
        height: 38px;
    }
    
    .stat-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .services-grid, .methodology-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-schedule {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.35rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stat-container {
        grid-template-columns: 1fr;
    }

    .tool-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .tool-input-side, .tool-output-side, .quiz-wizard-card {
        padding: 2rem 1.25rem;
    }
    
    .quiz-action-buttons {
        flex-direction: column;
    }
    
    .quiz-action-buttons .btn {
        width: 100%;
    }

    .contact-info-panel, .contact-form-panel {
        padding: 2.5rem 1.5rem;
    }
}

/* ==========================================================================
   News Section & Reader Modal Styles (V5)
   ========================================================================== */
.news-section {
    padding: 6.5rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-light);
    position: relative;
}

.news-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-badge.tributario { background: var(--accent); color: var(--primary); }
.news-card-badge.contable { background: #3B82F6; color: var(--white); }
.news-card-badge.financiero { background: #10B981; color: var(--white); }
.news-card-badge.laboral { background: #EC4899; color: var(--white); }

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.news-card-meta i {
    margin-right: 0.25rem;
}

.news-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.news-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    cursor: pointer;
    transition: var(--transition);
}

.news-card-link i {
    transition: var(--transition);
}

.news-card-link:hover {
    color: var(--accent);
}

.news-card-link:hover i {
    transform: translateX(4px);
}

/* Reader Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.news-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.news-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.news-modal.active .news-modal-content {
    transform: translateY(0);
}

.news-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    background: rgba(10, 17, 40, 0.6);
    border: none;
    color: var(--white);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.news-modal-close:hover {
    background: var(--accent);
    color: var(--primary);
}

.news-modal-body {
    color: var(--text-dark);
}

.news-modal-header-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-light);
}

.news-modal-info {
    padding: 2rem 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.news-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.news-category-badge.tributario { background: var(--accent); color: var(--primary); }
.news-category-badge.contable { background: #3B82F6; color: var(--white); }
.news-category-badge.financiero { background: #10B981; color: var(--white); }
.news-category-badge.laboral { background: #EC4899; color: var(--white); }

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.news-modal-body h2 {
    padding: 1.25rem 2.5rem 0.75rem;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.news-modal-text {
    padding: 0 2.5rem 2.5rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #334155;
}

.news-modal-text p {
    margin-bottom: 1.25rem;
}

.news-modal-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.75rem 0 0.75rem;
}

.news-modal-text ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.news-modal-text li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for news */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-modal-info {
        padding: 1.5rem 1.5rem 0;
    }
    .news-modal-body h2 {
        padding: 1rem 1.5rem;
        font-size: 1.45rem;
    }
    .news-modal-text {
        padding: 0 1.5rem 2rem;
    }
    .news-modal-header-img {
        height: 200px;
    }
}

/* ==========================================================================
   Promotional Popup Styles (V8)
   ========================================================================== */
.promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 40, 0.85); /* Semi-transparent navy backdrop */
    backdrop-filter: blur(8px);
    z-index: 99999; /* Higher than navbar and whatsapp button */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.promo-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.promo-popup-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promo-popup.active .promo-popup-content {
    transform: scale(1);
}

.promo-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.85rem;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.promo-popup-close:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.promo-popup-layout {
    display: grid;
    grid-template-columns: 1.15fr 1.2fr;
    min-height: 400px;
}

.promo-popup-img-side {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.promo-popup-img-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 17, 40, 0.2), rgba(10, 17, 40, 0));
}

.promo-popup-text-side {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-popup-tag {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.promo-popup-title {
    font-family: var(--font-primary);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.promo-popup-desc {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.promo-popup-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.promo-popup-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.92rem;
}

/* Responsive configurations for popup */
@media (max-width: 768px) {
    .promo-popup-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .promo-popup-img-side {
        height: 180px;
    }
    .promo-popup-text-side {
        padding: 2rem 1.5rem;
    }
    .promo-popup-title {
        font-size: 1.4rem;
    }
    .promo-popup-desc {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
    }
    .promo-popup-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .promo-popup-actions .btn {
        text-align: center;
    }
}
