/* ==========================================================================
   MiMejorPrepaga - Styles
   Organizado por secciones:
   1. Variables & Reset
   2. Utilidades
   3. Header & Navegación
   4. Hero Section
   5. Formularios
   6. Brands Strip
   7. Pasos (3 Steps)
   8. Privacidad & Trust
   9. Reviews
   10. FAQ
   11. Blog & Artículos
   12. Páginas Legales
   13. Directorio (Sanatorios/Prepagas)
   14. Footer
   15. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --accent: #00c853;
    --orange: #ff6f00;
    --orange-hover: #e65100;
    --text-main: #2c3e50;
    --text-light: #5f6c7b;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --radius: 12px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
}

html {
    scroll-padding-top: 120px;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. Utilidades
   ========================================================================== */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.desktop-only {
    display: inline;
}

.mobile-only {
    display: none;
}

.muted {
    opacity: .75;
    font-size: 14px;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 20px;
}

/* ==========================================================================
   3. Header & Navegación
   ========================================================================== */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1;
    padding: 0 20px;
}

.header-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    padding: 8px 10px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.header-nav .nav-link:hover {
    background: #e3f2fd;
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo a {
    display: block;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    padding: 60px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%), url('/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-badges {
    display: flex;
    gap: 15px;
}

.badge {
    background: #e3f2fd;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Sanatorios */
.hero-sanatorio {
    padding: 80px 0 60px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%), url('/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-logo {
    max-width: 220px;
    max-height: 80px;
    width: auto;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.hero-sanatorio .hero-badges {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 15px;
}

.hero-sanatorio+.article-container::before {
    content: "";
    display: block;
    width: 100%;
    margin-bottom: 80px;
}

/* Hero Prepagas */
.hero-prepaga .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-prepaga .hero-badges {
    justify-content: center;
}

.hero-prepaga .article-meta {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.hero-prepaga+.article-container::before {
    content: "";
    display: block;
    width: 100%;
    margin-bottom: 80px;
}

/* Prepaga Landing Mode (utm_campaign o l=1): hero con form */
.hero-prepaga.landing-mode .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    text-align: left;
    justify-items: stretch;
    max-width: 1100px;
}

.hero-prepaga.landing-mode .hero-badges {
    justify-content: flex-start;
}

/* ==========================================================================
   5. Formularios
   ========================================================================== */
.hero-form-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 86, 179, 0.15);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h3 {
    color: var(--primary);
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

input,
select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

input:not(.input-icon-wrap input),
select {
    padding-left: 12px;
}

input:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.two-col {
    display: flex;
    gap: 15px;
}

.two-col>div {
    flex: 1;
}

.btn-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--orange), var(--orange-hover)) !important;
    color: white !important;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
    text-decoration: none !important;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

.privacy-mini {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ==========================================================================
   6. Brands Strip
   ========================================================================== */
.brands-strip {
    background: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.brands-strip p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-weight: 700;
    color: #bbb;
    font-size: 1.2rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   7. Pasos (3 Steps)
   ========================================================================== */
.steps-section {
    padding: 80px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.step-image-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.step-img-3d {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.step-card:hover .step-img-3d {
    transform: scale(1.1);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: #f0f0f0;
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 0;
}

.step-card h3,
.step-card p {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   8. Privacidad & Trust
   ========================================================================== */
.privacy-trust {
    background: #1a2634;
    color: white;
    padding: 60px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.trust-content h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.trust-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: start;
}

.trust-list i {
    color: var(--accent);
    margin-top: 4px;
}

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

.trust-img-3d {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Nueva Sección Privacidad (Light & Clean) */
.privacy-section-new {
    padding: 100px 0;
    background-color: #f4f7fa;
    position: relative;
    overflow: hidden;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.privacy-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.shield-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 86, 179, 0.15));
    animation: floatShield 6s ease-in-out infinite;
}

@keyframes floatShield {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.badge-privacy {
    display: inline-block;
    background-color: #e3f2fd;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.privacy-content h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.privacy-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.privacy-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.privacy-features li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-box {
    min-width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.text-box strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 5px;
}

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

/* ==========================================================================
   9. Reviews
   ========================================================================== */
.reviews-section {
    padding: 80px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: #ffffff;
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background-color: #e3f2fd;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.location {
    font-size: 0.8rem;
    color: var(--text-light);
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.faq-item[open] {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

summary {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    color: var(--primary-dark);
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(180deg);
}

summary i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.faq-body {
    padding: 0 20px 20px 60px;
    color: var(--text-light);
    border-top: 1px solid #f0f0f0;
}

/* Plan Accordions */
.plan-accordion {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 12px;
    border: 2px solid #e8f0fe;
    overflow: hidden;
    transition: all 0.3s ease;
}

.plan-accordion[open] {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 86, 179, 0.15);
}

.plan-summary {
    padding: 12px 25px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    color: var(--text-main);
    position: relative;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    transition: background 0.3s ease;
}

.plan-summary:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #f8fbff 100%);
}

.plan-summary::-webkit-details-marker {
    display: none;
}

.plan-summary::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.plan-accordion[open] .plan-summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.plan-title {
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.plan-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    font-style: italic;
    display: block;
}

.plan-content {
    padding: 20px 25px 25px 25px;
    border-top: 1px solid #e8f0fe;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   11. Blog & Artículos
   ========================================================================== */
.blog-section {
    padding: 80px 0;
    background-color: #f9fbfc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ==========================================================================
   12. Formulario 2 Pasos (Styles from form-paso-2.html)
   ========================================================================== */

/* Animaciones de Transición */
.step-container {
    transition: all 0.4s ease;
}

.fade-out-up {
    animation: fadeOutUp 0.4s forwards;
}

.fade-in-down {
    animation: fadeInDown 0.4s forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
        display: none;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elementos del Paso 2 */
.interests-label {
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.interests-subtitle {
    color: #718096;
    font-size: 14px;
    margin-bottom: 20px;
}

.prepaga-button {
    min-height: 60px !important;
    padding-right: 40px !important;
    /* Space for checkbox */
    justify-content: center;
}

.prepaga-button .interest-text {
    font-size: 15px;
}

.prepaga-button::after {
    top: 50% !important;
    transform: translateY(-50%);
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.interest-button {
    position: relative;
    padding: 11px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.interest-button:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.interest-button.active {
    border-color: var(--primary);
    background: rgba(0, 86, 179, 0.05);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.1);
}

.interest-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.interest-text {
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.interest-button.active .interest-text {
    color: var(--primary);
}

/* Checkbox visual */
.interest-button::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.interest-button.active::after {
    background: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

.security-note {
    text-align: center;
    color: #718096;
    font-size: 13px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

    .interest-button {
        min-height: 80px;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 12px;
    }

    .interest-icon {
        margin-bottom: 0;
    }

    .interest-button::after {
        top: 50%;
        transform: translateY(-50%);
    }
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ddd;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transform-origin: center center;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.2);
}

.blog-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--text-main);
}

.directory-grid .blog-card .blog-content h3 {
    font-size: 1.7rem !important;
}

/* Code Blocks Styles */
pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
    white-space: pre-wrap;
    /* Forces text wrapping */
    word-wrap: break-word;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    margin: 25px 0;
    color: #2c3e50;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

.blog-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.blog-content h3 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.blog-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700 !important;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
    text-decoration: none !important;
}

.read-more:hover {
    gap: 12px;
    color: var(--primary-dark) !important;
    text-decoration: none !important;
}

/* Artículos */
.article-header {
    background-color: #f4f7fa;
    padding: 60px 0;
    text-align: center;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.article-header h1 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.article-container {
    max-width: 800px;
    margin: -40px auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.directory-container {
    /* max-width: 800px; */
    margin: 0px auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}


.article-image-wrapper {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
    position: relative;
}

.article-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transform-origin: center center;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Estilo para enlaces en párrafos y blockquotes (enlaces a planes, etc) */
.article-body p a,
.article-body blockquote a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.article-body p a:hover,
.article-body blockquote a:hover {
    color: var(--primary-dark);
}

/* Estilo especial para enlaces dentro de listas (sanatorios/prepagas) */
.article-body ul a,
.article-body ol a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.article-body ul a:hover,
.article-body ol a:hover {
    color: var(--primary-dark);
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 30px;
}

.article-body ol {
    margin-left: 24px;
    margin-bottom: 30px;
}

.article-body ol li,
.article-body li {
    padding-left: 6px;
    margin-bottom: 10px;
}

/* CTA Box */
.blog-cta-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    margin: 50px 0;
}

.blog-cta-box h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

/* Blockquote */
blockquote {
    background-color: #f0f7ff;
    border-left: 5px solid #007bff;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    color: #2c3e50;
    font-style: normal;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

blockquote::before {
    content: "\f05a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #007bff;
    margin-right: 15px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.article-body blockquote p {
    margin: 0;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
}

.article-body thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.article-body th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--primary-dark);
}

.article-body td {
    padding: 14px 20px;
    border-bottom: 1px solid #e8e8e8;
    color: #444;
    line-height: 1.6;
}

.article-body tbody tr {
    transition: background-color 0.2s ease;
}

.article-body tbody tr:hover {
    background-color: #f8f9fa;
}

.article-body tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive tables */
@media (max-width: 768px) {
    .article-body table {
        font-size: 0.85rem;
    }

    .article-body th,
    .article-body td {
        padding: 12px 14px;
    }
}

/* Columnas */
.list-cols-2 {
    width: 100%;
}

.list-cols-2 ul {
    columns: 1;
    column-gap: 2rem;
    padding-left: 1.2rem;
}

.list-cols-2 li {
    break-inside: avoid-column;
    page-break-inside: avoid;
    margin-bottom: 0.5rem;
}

/* Filtros */
.filters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

/* Botón Outline */
.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    background-color: transparent;
    border-radius: 50px;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
    text-decoration: none !important;
}

.btn-outline i {
    margin-left: 8px;
    transition: margin-left 0.3s;
}

.btn-outline:hover i {
    margin-left: 12px;
}

.blog-footer-cta {
    text-align: center;
    margin-top: 50px;
}

/* Artículos Relacionados */
.related-articles-section {
    text-align: center;
    padding: 20px;
}

.related-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.related-articles-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#related-grid {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

#related-grid .blog-card {
    flex: 0 1 300px;
    max-width: 100%;
    width: 100%;
}

#related-section .section-title {
    text-align: center !important;
    width: 100%;
    margin-bottom: 40px;
}

#related-section .section-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
    position: relative;
}

#related-section .section-title h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Autor */
.article-footer {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid #e6e8eb;
}

.article-meta-footer {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.article-author {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.article-author p {
    margin: 0;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    max-width: 720px;
}

.author-name {
    margin: 0;
    font-size: 1rem;
    color: #111827;
}

.author-role {
    margin: 2px 0 8px;
    font-size: 0.9rem;
    color: #4b5563;
}

.author-bio {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #374151;
}

.author-box {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
    align-items: flex-start;
}

.author-box__avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box__content {
    max-width: 620px;
}

.author-box__byline,
.author-box__role,
.author-box__bio {
    margin: 0;
}

.article-body .author-box p {
    margin: 0;
}

.article-body .author-box .author-box__byline {
    margin-bottom: 2px;
}

.article-body .author-box .author-box__role {
    margin-bottom: 6px;
}

.author-box__byline {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.25;
    margin-bottom: 2px;
}

.author-box__role {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.25;
    margin-bottom: 6px;
}

.author-box__bio {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
}

.article-publish-meta {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6b7280;
}

.article-publish-meta time {
    font-weight: 500;
}

.article-final-cta {
    margin-top: 20px;
}

.article-end-meta {
    margin-top: 32px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Inline CTA */
.inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding: 4px 10px;
    font-weight: 600 !important;
    font-size: 0.95rem;
    color: #0b5ed7 !important;
    background-color: #eef4ff !important;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.inline-cta:hover {
    background-color: #dbe8ff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
    color: #0b5ed7 !important;
}

.inline-cta i {
    font-size: 0.9rem;
}

/* ==========================================================================
   12. Páginas Legales
   ========================================================================== */
.legal-section {
    padding: 60px 0 100px 0;
    background-color: var(--bg-light);
    min-height: 80vh;
}

.legal-container {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    max-width: 900px;
}

.legal-section h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.legal-content p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555;
}

.legal-content ul li {
    margin-bottom: 10px;
}

.btn-back {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.contact-legal {
    text-align: center;
    margin-top: 30px;
    font-weight: bold;
}

.legal-disclaimer {
    font-size: 0.75rem;
    color: #95a5a6;
    line-height: 1.6;
    text-align: justify;
}

.legal-disclaimer p {
    margin-bottom: 15px;
}

/* ==========================================================================
   12b. Página Quiénes Somos
   ========================================================================== */
.about-hero {
    padding: 80px 0 60px 0;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f5e9 100%);
    text-align: center;
}

.about-hero-content {
    max-width: 750px;
    margin: 0 auto;
}

.about-badge {
    display: inline-block;
    background-color: #e3f2fd;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.about-hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Misión */
.about-mission {
    padding: 80px 0;
    background: var(--white);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.mission-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.mission-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.mission-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Valores */
.about-values {
    padding: 80px 0;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

.value-icon-box {
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.value-text strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.value-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Equipo */
.about-team {
    padding: 80px 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.team-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e3f2fd;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.team-skill {
    display: inline-block;
    font-size: 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-skill i {
    font-size: 0.65rem;
    margin-right: 2px;
}

.team-bio {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* CTA Final */
.about-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f5e9 100%);
}

.about-cta-box {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.about-cta-box h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-cta-box p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.about-cta-btn {
    display: inline-flex !important;
    width: auto !important;
    padding: 16px 40px !important;
}

/* ==========================================================================
   13. Directorio (Sanatorios/Prepagas)
   ========================================================================== */
.directory-grid {
    grid-template-columns: repeat(2, 1fr);
}

.directory-grid .blog-card {
    min-height: 250px;
}

.directory-grid .blog-content {
    padding: 25px;
}

.directory-grid .blog-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.directory-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.directory-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
    padding: 6px;
}

.coverage-badge {
    display: inline-block;
    margin: 8px 0 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    background: #eef6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.sanatorio-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.badge-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-small i {
    font-size: 0.65rem;
}

.sanatorio-description {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 30px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    opacity: 0.5;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--white);
    transform: scale(1.1);
    box-shadow: none;
}

.footer-social a[aria-label*="Facebook"]:hover {
    background-color: #1877f2;
}

.footer-social a[aria-label*="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.footer-logo {
    height: 45px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-legal a,
.footer-legal-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-legal a:hover,
.footer-legal-links a:hover {
    color: var(--white);
}

.footer-divider {
    border: 0;
    border-top: 1px solid #34495e;
    margin: 30px 0;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */

/* Tablets */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .logo-img {
        height: 45px;
    }

    .btn-whatsapp {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
    }

    .btn-whatsapp span {
        display: none !important;
    }

    .btn-whatsapp i {
        font-size: 1.8rem;
        margin: 0;
    }

    .header-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
        justify-content: center;
        gap: 20px;
    }

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

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

/* Móviles */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 40px 0;
    }

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

    .hero-prepaga.landing-mode .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-prepaga.landing-mode .hero-badges {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

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

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

    .trust-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .trust-list li {
        justify-content: start;
        text-align: left;
    }

    .trust-image {
        display: none;
    }

    .privacy-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .privacy-features li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .shield-img {
        width: 220px;
    }

    .privacy-intro {
        font-size: 1rem;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .blog-image {
        height: 200px;
    }

    .directory-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-social {
        margin-top: 12px;
    }

    .footer-logo {
        margin: 0 auto 15px auto;
    }

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

    .faq-body {
        padding-left: 20px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline;
    }

    .legal-container {
        padding: 25px;
    }

    .legal-section h1 {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-image-wrapper {
        height: 250px;
    }

    .filters-container {
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 18px;
        font-size: 0.85rem;
    }

    .list-cols-2 ul {
        columns: 1;
    }

    .article-author {
        align-items: flex-start;
    }

    .author-avatar {
        width: 48px;
        height: 48px;
    }

    /* WhatsApp flotante en móvil */
    .btn-whatsapp {
        position: fixed;
        bottom: 25px;
        right: 20px;
        z-index: 9999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        padding: 12px 18px;
        font-size: 1rem;
        animation: slideInUp 0.5s ease-out;
    }

    .btn-whatsapp .mobile-only {
        display: inline-block;
        margin-left: 5px;
    }

    @keyframes slideInUp {
        from {
            transform: translateY(100px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Quiénes Somos responsive */
    .about-hero h1 {
        font-size: 1.8rem;
    }

    .about-hero {
        padding: 50px 0 40px 0;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .about-cta-box h2 {
        font-size: 1.6rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .btn-whatsapp {
        width: 45px;
        height: 45px;
    }

    .btn-whatsapp i {
        font-size: 1.4rem;
    }
}

/* Tablet+ para columnas */
@media (min-width: 768px) {
    .list-cols-2 ul {
        columns: 2;
    }
}

/* Mobile pequeño para autor */
@media (max-width: 600px) {
    .article-author {
        align-items: flex-start;
    }

    .author-avatar {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================================
   FAB & Mobile Navigation Styles
   ========================================================================== */

/* Floating Action Button (FAB) */
.fab-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 32px;
    text-decoration: none;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(10px);
    white-space: nowrap;
}

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

/* Mobile Navigation Drawer/Responsive Styles */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f0f0;
        gap: 10px;
        align-items: stretch;
    }

    .header-nav.active {
        display: flex;
        /* Shown when active */
    }

    .header-nav .nav-link {
        text-align: center;
        padding: 12px;
        width: 100%;
        border-radius: 8px;
    }

    .header-nav .nav-link:hover {
        background-color: #f5f5f5;
    }
}