/* =========================================================================
   PROSPEROUS - CSS STYLESHEET
   Brand Colors: 
   - Navy Blue (Primary/Sober) #0F2A4A
   - Gold (Accent/Elegant) #CBA052 
   - White / Light Gray for background #F9FAFC
   Typography:
   - Playfair Display for headings (Elegant / Traditional)
   - Lato for body text (Highly readable for older adults)
========================================================================= */

:root {
    /* Color Palette */
    --color-primary: #012D3D;
    /* Deep Teal / Navy */
    --color-primary-light: #023f54;
    --color-secondary: #FFB71D;
    /* Vibrant Gold/Yellow */
    --color-secondary-dark: #d69700;
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --color-bg-light: #F9FAFC;
    --color-white: #FFFFFF;

    /* Typography Settings for Seniors (larger base sizes) */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-size-base: 18px;
    /* Slightly larger base size for readability */

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius & Shadows */
    --border-radius: 8px;
    /* Modest radius, not too playful */
    --shadow-soft: 0 4px 20px rgba(15, 42, 74, 0.08);
    --shadow-hover: 0 10px 30px rgba(15, 42, 74, 0.15);
}

/* =========================================================================
   RESET & BASE STYLES
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    /* Inter SemiBold */
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary-dark);
}

ul {
    list-style: none;
}

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

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

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
}

/* =========================================================================
   BUTTONS
========================================================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(203, 160, 82, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(203, 160, 82, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

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

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* =========================================================================
   LANGUAGE SWITCHER (CSS ONLY TOGGLE)
========================================================================= */
.lang-switcher {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-opt {
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 6px 10px;
    /* Reduced from 14px to tighten spacing */
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.lang-opt.active {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* =========================================================================
   HEADER & NAVIGATION
========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 1rem 0;
    /* Reduced from 1.5rem */
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled,
.header.mobile-menu-active {
    background-color: var(--color-primary);
    padding: 0.5rem 0;
    /* Reduced from 1rem */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* Shrink the logo slightly when scrolling */
.header.scrolled .logo-img,
.header.mobile-menu-active .logo-img {
    height: 48px;
}

/* Since header is over an image, we want white text initially */
.nav-link {
    color: var(--color-white);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

/* =========================================================================
   DROPDOWN NAVIGATION
========================================================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dropdown.show .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: #f8fafc;
    color: #1e40af;
    text-decoration: none;
}

.header.scrolled .dropdown-menu {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .dropdown {
        display: block;
        width: 100%;
        text-align: center;
    }

    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0.25rem 0;
        margin: 0;
        min-width: auto;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        transition: none;
    }

    .dropdown.show .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        display: block;
        padding: 0.5rem 0;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
        font-weight: 400;
        text-align: center;
    }

    .dropdown-link:hover {
        background: transparent;
        color: var(--color-secondary);
    }

    .dropdown-icon {
        width: 12px;
        height: 12px;
    }
}

/* =========================================================================
   PAGE BANNER SECTION (FOR SUBPAGES)
========================================================================= */
.page-banner {
    position: relative;
    padding: 130px 0 100px;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 42, 74, 0.6) 0%, rgba(15, 42, 74, 0.85) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-banner-content h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.page-banner-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.page-banner-content .badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    margin-bottom: 1rem;
    display: inline-block;
}

/* =========================================================================
   HERO SECTION
========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('images/xavier-mouton-photographie-ry_sD0P1ZL0-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 42, 74, 0.9) 0%, rgba(15, 42, 74, 0.6) 50%, rgba(15, 42, 74, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--color-white);
}

.hero-text h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-checks {
    margin-bottom: 2rem;
}

.hero-checks li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-checks i {
    color: var(--color-secondary);
}

/* Hero Embedded Form Card */
.hero-form-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--color-text-dark);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-form-card.form-hidden {
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
}

.hero-form-card.form-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-form-card h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* =========================================================================
   BENEFITS SECTION
========================================================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Insurance Products: 2 columns, 2 rows */
#productos .benefits-grid-2x2,
.benefits-grid.benefits-grid-2x2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.benefit-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-secondary);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
}

.icon-wrapper i {
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =========================================================================
   ABOUT SECTION
========================================================================= */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.img-container {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

/* Decorative background behind image */
.img-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-secondary);
    border-radius: var(--border-radius);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.about-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(203, 160, 82, 0.15);
    color: var(--color-secondary-dark);
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--color-text-dark);
    font-weight: 600;
}

.check-list i {
    color: var(--color-secondary);
}

/* =========================================================================
   VERTICAL STEPS TIMELINE
========================================================================= */
.steps-vertical-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.steps-vertical-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    /* 60px circle / 2 = 30px, adjust to visually center string */
    width: 4px;
    background: #e0e0e0;
    border-radius: 4px;
}

.steps-vertical-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 4px;
    background: var(--color-secondary);
    border-radius: 4px;
    height: var(--scroll-progress, 0%);
    transition: height 0.15s ease-out;
}

.step-v-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 90px;
}

.step-v-item:last-child {
    margin-bottom: 0;
}

.step-v-icon {
    position: absolute;
    left: 0;
    top: -4px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-bg-light);
    border: 4px solid var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    /* Color dorado para el número */
    z-index: 2;
    transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.7rem;
    font-weight: 800;
}

.step-number {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-v-item.active .step-v-icon {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    /* Mantener el número dorado */
    background: var(--color-white);
    /* En lugar de naranja solido, lo mantenemos blanco para que contraste el número dorado */
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 183, 29, 0.4);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 183, 29, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 183, 29, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 183, 29, 0);
    }
}

.step-v-item.active .step-number {
    transform: scale(1.2);
}

.step-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.step-inline-icon {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-v-item.active .step-inline-icon {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.step-v-content h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0;
    font-weight: 700;
}

.step-v-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .steps-vertical-container::before,
    .steps-vertical-container::after {
        left: 24px;
    }

    .step-v-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .step-v-item {
        padding-left: 70px;
        margin-bottom: 3rem;
    }
}

/* =========================================================================
   CALL TO ACTION SECTION (CTA)
========================================================================= */
.cta {
    background-color: var(--color-white);
}

.cta-banner {
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    padding: 0;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 42, 74, 0.2);
    position: relative;
}

.simple-banner {
    justify-content: center;
    padding: 5rem 2rem;
}

.text-center {
    text-align: center;
}

/* Subtle pattern/overlay for CTA */
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--color-primary-light), transparent 80%);
    z-index: 0;
}

.cta-content {
    flex: 1;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    background-color: #fafafa;
    color: var(--color-text-dark);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(203, 160, 82, 0.2);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 2.8rem;
    border: 1px solid #d8e0e5;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
        linear-gradient(135deg, var(--color-primary) 50%, transparent 50%),
        linear-gradient(to right, #e7edf1, #e7edf1);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px),
        calc(100% - 2.4rem) 50%;
    background-size: 7px 7px, 7px 7px, 1px 60%;
    background-repeat: no-repeat;
}

.form-select:hover {
    border-color: #b7c6cf;
}

.form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(203, 160, 82, 0.2);
}

.privacy-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.privacy-text.text-dark {
    color: #888;
}

.privacy-text i {
    width: 16px;
    height: 16px;
}

/* =========================================================================
   FOOTER
========================================================================= */
.footer {
    background-color: var(--color-bg-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid #eaeaea;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.footer-brand .logo .logo-img,
.footer .logo-img {
    height: 100px;
    width: auto;
}

.footer-brand p {
    max-width: 300px;
    font-size: 0.875rem;
}

.footer h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.8125rem;
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

.footer-contact i {
    color: var(--color-secondary);
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* =========================================================================
   RESPONSIVE DESIGN (100% Mobile Ready)
========================================================================= */

/* Large Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .logo-img {
        height: 55px;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav {
        gap: 1.25rem;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .page-banner {
        padding: 110px 0 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .about-flex {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        margin-top: 4rem;
    }

    .hero-text p {
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .hero-checks {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-checks li {
        justify-content: center;
    }

    .hero-form-card {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .about-flex {
        flex-direction: column;
    }

    .img-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .img-container::before {
        display: none;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
        --spacing-md: 1.5rem;
    }

    .logo-img {
        height: 48px;
    }

    .page-banner {
        padding: 100px 0 70px;
    }

    .page-banner-content h1 {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .page-banner-content p {
        font-size: 1.05rem;
    }

    .nav {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    /* Hide CTA button in header for very small screens or re-position it */
    .header-actions .btn-primary {
        display: none;
    }

    /* Make language switcher larger for touch */
    .lang-switcher {
        margin-right: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 8rem 0 4rem;
        /* Top padding for fixed header */
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .benefits-grid,
    .benefits-grid-2x2,
    #productos .benefits-grid-2x2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .cta-content,
    .cta-action {
        padding: 2rem 1rem;
    }

    .btn-white {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand .logo,
    .footer-contact p {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .logo-img,
    .header.scrolled .logo-img,
    .header.mobile-menu-active .logo-img {
        height: 40px;
    }

    .page-banner {
        padding: 90px 0 60px;
    }

    .page-banner-content h1 {
        font-size: 1.8rem;
    }

    .page-banner-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-form-card {
        padding: 1.5rem;
    }

    .hero-form-card h3 {
        font-size: 1.4rem;
    }

    .section-title h2,
    .about-text h2 {
        font-size: 1.75rem;
    }

    .font-size-base {
        font-size: 16px;
    }
}
/* =========================================================================
   WIDER DROPDOWN MENU (Who We Insure has 9 items)
========================================================================= */
.dropdown-menu-wide {
    min-width: 240px;
}

/* =========================================================================
   STATS BAR — horizontal stats display (e.g. "50+ Carriers | $0 Plans | 2 Min")
========================================================================= */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}

.stat-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.stats-bar-light .stat-item {
    border-right-color: rgba(1,45,61,0.15);
}

.stats-bar-light .stat-label {
    color: var(--color-text-light);
}

.stats-bar-light .stat-value {
    color: var(--color-primary);
}

/* =========================================================================
   COVERAGE CARDS — option cards with features list
========================================================================= */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.coverage-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    position: relative;
    border-top: 4px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coverage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.coverage-card.featured {
    border-top-color: var(--color-secondary);
}

.coverage-card .card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,183,29,0.15);
    color: var(--color-secondary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.coverage-card.featured .card-badge {
    background: var(--color-secondary);
    color: var(--color-white);
}

.coverage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.coverage-card p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.feature-list li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* =========================================================================
   COMPARISON TABLE
========================================================================= */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--color-white);
}

.comparison-table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table th:first-child {
    border-radius: var(--border-radius) 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 var(--border-radius) 0 0;
}

.comparison-table td {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-text-dark);
    vertical-align: middle;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.comparison-table tr:hover td {
    background-color: rgba(255,183,29,0.06);
}

/* =========================================================================
   LIFE EVENT CARDS
========================================================================= */
.life-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.life-events-grid--4x4 {
    grid-template-columns: repeat(4, 1fr);
}

.life-event-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid var(--color-secondary);
    transition: transform 0.3s ease;
}

.life-event-card:hover {
    transform: translateY(-4px);
}

.life-event-card .event-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--color-primary);
}

.life-event-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.life-event-card .deadline {
    font-size: 0.82rem;
    color: var(--color-secondary-dark);
    font-weight: 600;
}

/* =========================================================================
   ACCORDION / EXPANDABLE SECTIONS (Life Events detail)
========================================================================= */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--color-white);
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--color-bg-light);
}

.accordion-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--color-primary);
}

.accordion-header .acc-icon {
    color: var(--color-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-header .acc-icon {
    transform: rotate(45deg);
}

.accordion-body {
    display: none;
    padding: 0 2rem 1.5rem;
    background: var(--color-white);
}

.accordion-item.open .accordion-body {
    display: block;
}

.accordion-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.accordion-body ul li {
    padding: 0.4rem 0;
    color: var(--color-text-dark);
    padding-left: 1.5rem;
    position: relative;
}

.accordion-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

.deadlines-box {
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
}

.deadlines-box h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.deadlines-box ul li {
    padding-left: 0 !important;
}

.deadlines-box ul li::before {
    display: none;
}

/* =========================================================================
   TURNING 26 TIMELINE
========================================================================= */
.age-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 3rem 0;
    position: relative;
    flex-wrap: wrap;
}

.age-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(12.5% + 15px);
    right: calc(12.5% + 15px);
    height: 4px;
    background: var(--color-secondary);
}

.timeline-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.timeline-step .t-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-white);
    border: 4px solid var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    color: var(--color-primary);
}

.timeline-step.active .t-circle {
    background: var(--color-secondary);
    color: var(--color-white);
}

.timeline-step h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.timeline-step p {
    font-size: 0.85rem;
    margin: 0;
}

/* =========================================================================
   INCOME TABLE (Low Income FPL)
========================================================================= */
.income-table-section {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* =========================================================================
   PROVIDERS MAP SECTION
========================================================================= */
.map-section {
    background: var(--color-bg-light);
}

.map-container {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    margin-top: 2rem;
}

#us-map {
    width: 100%;
    height: 480px;
    border-radius: var(--border-radius);
}

.map-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.legend-dot {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-dot.active {
    background: var(--color-secondary);
}

.legend-dot.inactive {
    background: #c8d4db;
}

/* =========================================================================
   PROVIDERS LOGO GRID
========================================================================= */
.providers-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.provider-logo-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.provider-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* =========================================================================
   ABOUT PAGE
========================================================================= */
.about-hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, #034d65 100%);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,183,29,0.08);
}

.about-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,183,29,0.05);
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pillar-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(255,183,29,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.pillar-icon i {
    width: 26px;
    height: 26px;
}

.pillar-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.pillar-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* Pillars Redesigned */
.pillars-new-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pillar-new-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-secondary);
}

.pillar-new-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.pillar-new-number {
    font-size: 6rem;
    font-weight: 800;
    color: rgba(1, 45, 61, 0.05);
    position: absolute;
    top: -1rem;
    right: 1.25rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.pillar-new-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.pillar-new-icon i {
    width: 28px;
    height: 28px;
}

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

.pillar-new-card p {
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 640px) {
    .pillars-new-grid {
        grid-template-columns: 1fr;
    }
}

.about-stats-section {
    background: var(--color-primary);
    padding: 5rem 0;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.about-stat {
    color: var(--color-white);
}

.about-stat .big-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.about-stat p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 1rem;
}

/* =========================================================================
   TAX CALCULATOR CARD (Business page)
========================================================================= */
.tax-calc-card {
    background: var(--color-primary);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    color: var(--color-white);
    max-width: 500px;
    margin: 2rem auto 0;
}

.tax-calc-card h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.95rem;
}

.tax-row:last-child {
    border-bottom: none;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.tax-row span:last-child {
    color: var(--color-secondary);
}

.tax-row.highlight {
    font-size: 1.2rem;
    font-weight: 700;
}

.tax-row.highlight span:last-child {
    color: #7fff7f;
}

/* =========================================================================
   WARNING BOX (Turning 26)
========================================================================= */
.warning-box {
    background: rgba(255,183,29,0.1);
    border: 2px solid var(--color-secondary);
    border-radius: var(--border-radius);
    padding: 1.75rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 800px;
    margin: 2rem auto;
}

.warning-box .warn-icon {
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.warning-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.warning-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* =========================================================================
   HSA LIMITS GRID
========================================================================= */
.hsa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.hsa-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--color-secondary);
}

.hsa-card .hsa-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: block;
}

.hsa-card p {
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

/* =========================================================================
   RESPONSIVE ADDITIONS
========================================================================= */
@media (max-width: 768px) {
    .stats-bar {
        flex-direction: row;
    }

    .stat-item {
        min-width: 120px;
        padding: 1.5rem 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .age-timeline::before {
        display: none;
    }

    .timeline-step {
        min-width: 140px;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
    }

    .fhi-grid {
        grid-template-columns: 1fr;
    }

    .visa-types-grid {
        grid-template-columns: 1fr;
    }

    .life-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #us-map {
        height: 300px;
    }

    .about-hero-section {
        padding: 120px 0 70px;
    }

    .about-stat .big-number {
        font-size: 2.5rem;
    }

    .providers-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .life-events-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        min-width: 100px;
    }
}

/* =========================================================================
   WHO WE INSURE — Home Section Grid
========================================================================= */
.insure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.insure-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.insure-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: inherit;
}

.insure-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 183, 29, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.insure-icon i {
    width: 22px;
    height: 22px;
}

.insure-text {
    flex: 1;
}

.insure-text h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--color-primary);
}

.insure-text p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.4;
}

.insure-arrow {
    color: #c8d4db;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.insure-card:hover .insure-arrow {
    color: var(--color-secondary);
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .insure-grid {
        grid-template-columns: 1fr;
    }
}
