/* =========================================================
SOAR MEDICAL GROUP - ARTICLE STYLE (SEO + EEAT)
CSS CORREGIDO - VERSIÓN COMPLETA RESPONSIVE
========================================================= */

:root {
    --primary: #4B1D73;
    --primary-light: #6C3BA3;
    --secondary: #7FBF3F;
    --dark: #0F172A;
    --text: #334155;
    --soft: #64748B;
    --white: #FFFFFF;
    --light: #F8FAFC;
    --border: #E2E8F0;
    --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.06);
    --shadow-medium: 0 20px 60px rgba(15, 23, 42, 0.10);
    --radius: 28px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 26px;
}

h3 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 18px;
    color: var(--primary);
}

p {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.8;
    margin-bottom: 28px;
    color: var(--text);
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

.container {
    width: 100%;
    max-width: 1380px;
    margin: auto;
    padding-inline: 24px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 42px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* ==================== MENÚ HAMBURGUESA ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    z-index: 10001;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    transition: right 0.3s ease;
    padding: 100px 30px 40px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links li a {
    text-decoration: none;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 8px 0;
    transition: var(--transition);
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    color: var(--primary);
    padding-left: 10px;
}

.mobile-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9997;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== HEADER ACTIONS ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 60px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==================== BOTONES ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 15px 40px rgba(75, 29, 115, 0.22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(75, 29, 115, 0.32);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.18);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    background: #128C7E;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* ==================== HERO CON VIDEO ==================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(75, 29, 115, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    text-align: center;
    color: white;
}

.hero h1 {
    color: white;
    margin-bottom: 24px;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 60px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 600;
}

.hero-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hero-trust h3 {
    color: white;
    font-size: clamp(24px, 4vw, 38px);
    margin-bottom: 4px;
}

.hero-trust span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.breadcrumbs a:hover {
    color: white;
}

/* ==================== ARTICLE META ==================== */
.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    flex-wrap: wrap;
}

/* ==================== TABLE OF CONTENTS ==================== */
.table-contents {
    padding: 60px 0 40px;
    background: white;
}

.toc-box {
    max-width: 980px;
    margin: auto;
    padding: 48px;
    background: linear-gradient(180deg, #FFFFFF, #FAFBFC);
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.toc-box h2 {
    font-size: clamp(28px, 4vw, 32px);
    margin-bottom: 32px;
}

.toc-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.toc-box li {
    padding: 16px 24px;
    background: #F8FAFC;
    border-radius: 18px;
    transition: var(--transition);
}

.toc-box li:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: var(--shadow-soft);
}

.toc-box a {
    font-size: clamp(15px, 2vw, 17px);
    font-weight: 600;
    color: var(--primary);
}

/* ==================== ARTICLE PAGE ==================== */
.article-page {
    padding: 60px 0 100px;
    background: white;
}

.seo-article {
    max-width: 980px;
    margin: auto;
}

.seo-article section {
    margin-bottom: 80px;
}

.seo-article h2 {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 38px;
}

.seo-article h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.seo-article h3 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.seo-article ul,
.seo-article ol {
    padding-left: 28px;
    margin-bottom: 32px;
}

.seo-article li {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--text);
}

/* ==================== INLINE CTA ==================== */
.inline-cta-box {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    margin-top: 80px;
}

.faq-item {
    padding: 32px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(18px, 2.5vw, 22px);
}

.faq-item p {
    margin-bottom: 0;
    font-size: clamp(15px, 2vw, 17px);
}

/* ==================== AUTHOR BOX ==================== */
.author-box {
    margin-top: 80px;
}

.author-inner {
    display: flex;
    gap: 34px;
    align-items: center;
    padding: 48px;
    background: linear-gradient(180deg, #FFFFFF, #FAFBFC);
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-inner h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.author-inner p {
    margin-bottom: 0;
}

/* ==================== CTA FINAL ==================== */
.article-cta {
    padding: clamp(40px, 8vw, 80px);
    border-radius: 40px;
    background: linear-gradient(135deg, #24103a, #4B1D73);
    text-align: center;
    margin-top: 100px;
}

.article-cta h2 {
    color: white;
    margin-top: 0;
}

.article-cta h2::after {
    display: none;
}

.article-cta p {
    max-width: 700px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 20px);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== RELATED ARTICLES ==================== */
.related-articles {
    margin-top: 100px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.related-grid a {
    padding: 36px;
    border-radius: 28px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.related-grid a:hover {
    transform: translateY(-6px);
    background: white;
    box-shadow: var(--shadow-medium);
}

.related-grid h3 {
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.4;
    margin: 0;
    color: var(--dark);
}

.related-grid p {
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--soft);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 50px 0;
    background: #0F172A;
    text-align: center;
    margin-top: 80px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

/* ==================== SEARCH MODAL ==================== */
.search-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.search-modal-content {
    background: white;
    margin: 20% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 28px;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.search-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #64748B;
    transition: color 0.3s;
}

.search-modal-close:hover {
    color: #4B1D73;
}

.search-modal-content h3 {
    margin-bottom: 16px;
    color: #0F172A;
}

.search-modal-content input {
    width: 100%;
    padding: 14px 20px;
    margin: 20px 0;
    border: 1px solid #E2E8F0;
    border-radius: 60px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.search-modal-content input:focus {
    outline: none;
    border-color: #4B1D73;
}

.search-modal-content button {
    background: linear-gradient(135deg, #4B1D73, #6C3BA3);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s;
}

.search-modal-content button:hover {
    transform: translateY(-2px);
}

.search-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #0F172A;
    padding: 8px;
    transition: color 0.3s;
}

.search-icon-btn:hover {
    color: #4B1D73;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .hero {
        padding-top: 120px;
        min-height: 60vh;
    }
    
    .toc-box {
        padding: 28px;
    }
    
    .toc-box ul {
        grid-template-columns: 1fr;
    }
    
    .article-cta {
        padding: 40px 24px;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .author-inner {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }
    
    .container {
        padding-inline: 20px;
    }
    
    .hero-trust {
        gap: 20px;
        margin-top: 40px;
    }
    
    .search-modal-content {
        margin: 40% auto;
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-grid a {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 11px;
    }
    
    .breadcrumbs {
        font-size: 11px;
        gap: 8px;
    }
    
    .toc-box li {
        padding: 12px 16px;
    }
    
    .toc-box a {
        font-size: 14px;
    }
    
    .faq-item {
        padding: 20px;
    }
}