/* ==========================================================================
   Cardio Salud - Dra. Nelly Margoth Iza Cofre
   International Medical Luxury Design System
   Paleta Exclusiva: Blanco Médico (#FFFFFF), Rojo Cardiológico (#D32F2F), 
   Rosado Claro (#FFF0F3), Gris Perla (#F8FAFC), Rojo Vino Elegante (#800020)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600;1,700&family=Inter:wght@300;400;500;600;700&family=Manrope:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-white: #FFFFFF;
    --bg-pearl: #F8FAFC;
    --bg-gray-light: #F1F5F9;
    --bg-blush: #FFF0F3;
    --bg-blush-soft: #FFF5F7;
    --bg-gold-tint: #FFFDF7;
    --bg-ice-tint: #F4F8FA;

    /* Primary Accent Colors */
    --red-cardiology: #D32F2F;
    --red-cardiology-soft: #E53935;
    --red-glow: rgba(211, 47, 47, 0.15);
    
    --wine-elegant: #800020;
    --wine-soft: rgba(128, 0, 32, 0.08);

    --gold-prestige: #C5A059;
    --gold-border: rgba(197, 160, 89, 0.35);

    /* Text & Slates */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-subtle: #64748B;
    
    --border-light: #E2E8F0;
    --border-red: rgba(211, 47, 47, 0.2);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 22px 45px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px rgba(211, 47, 47, 0.12);

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-ui: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Settings */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Top Theme Switcher Bar */
.theme-switcher-bar {
    background: #0F172A;
    color: #FFFFFF;
    padding: 0.55rem 0;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    position: relative;
    z-index: 2000;
}

.switcher-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.switcher-title {
    font-weight: 700;
    color: var(--gold-prestige);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switcher-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.switcher-btn {
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.switcher-btn:hover, .switcher-btn.active {
    background: var(--red-cardiology);
    border-color: var(--red-cardiology);
    color: #FFFFFF;
}

/* Container */
.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* Alternating Soft Background Colors (Cambio 4) */
.section {
    padding: 4.5rem 0;
    position: relative;
}

.section-hero {
    background: linear-gradient(180deg, #FFF0F3 0%, #FFFFFF 100%);
}

.section-gold {
    background-color: var(--bg-gold-tint);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.section-pearl {
    background-color: var(--bg-pearl);
    border-bottom: 1px solid var(--border-light);
}

.section-blush {
    background-color: var(--bg-blush-soft);
    border-bottom: 1px solid var(--border-red);
}

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

.section-ice {
    background-color: var(--bg-gray-light);
    border-top: 1px solid var(--border-light);
}

.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3rem auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    background: var(--bg-blush);
    border: 1px solid var(--border-red);
    border-radius: 50px;
    color: var(--red-cardiology);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-family: var(--font-body);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.65rem;
    border-radius: 12px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-cardiology) 0%, var(--wine-elegant) 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 20px var(--red-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(211, 47, 47, 0.35);
    background: linear-gradient(135deg, #B71C1C 0%, #660019 100%);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-blush-soft);
    border-color: var(--border-red);
    color: var(--red-cardiology);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #1EBE5B;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

.btn-youtube {
    background: #FF0000;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.25);
}

.btn-youtube:hover {
    background: #CC0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

/* Header & Navigation (Cambio 1: MAYÚSCULAS y Perfectamente Separados) */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.85rem 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold-prestige);
}

.logo-header-text h2 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.logo-header-text p {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--red-cardiology);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem; /* Perfect Spacing */
    list-style: none;
}

.nav-link {
    font-family: var(--font-ui);
    font-weight: 800; /* Bold */
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase; /* MAYÚSCULAS Exigidas */
    letter-spacing: 0.8px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--red-cardiology);
    transition: var(--transition);
    border-radius: 4px;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3.5rem 0;
    position: relative;
}

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

.hero-main-title {
    font-size: 2.7rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--wine-elegant);
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.hero-sub-clinic {
    font-size: 1.35rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--red-cardiology);
    margin-bottom: 0.85rem;
}

.hero-impact-slogan {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--gold-prestige);
}

/* Russia Higher Studies Authority Badge */
.russia-badge {
    background: var(--bg-gold-tint);
    border: 1.5px solid var(--gold-prestige);
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.russia-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid var(--gold-prestige);
    color: var(--wine-elegant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.russia-text h4 {
    font-family: var(--font-ui);
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--wine-elegant);
    text-transform: uppercase;
}

.russia-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

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

/* Doctor Hero Portada Banner Box */
.hero-full-banner-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #FFFFFF;
}

.hero-full-banner-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.hero-full-banner-box:hover img {
    transform: scale(1.02);
}

/* Doctor Profile Section */
.profile-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
}

.profile-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.profile-img-holder {
    position: relative;
    max-width: 260px;
    margin: 0 auto 1.5rem auto;
}

.profile-img-holder img.doctor-pic {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.profile-img-holder img.logo-badge {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: var(--shadow-md);
}

.profile-russia-banner {
    background: var(--wine-soft);
    border: 1.5px solid var(--gold-border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-russia-banner span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--wine-elegant);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.profile-russia-banner h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wine-elegant);
}

.features-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-blush);
    color: var(--red-cardiology);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 10 Services Premium Cards Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 1.85rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-red);
}

.service-img-wrapper {
    width: 100%;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--bg-blush);
    color: var(--red-cardiology);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.service-link {
    color: var(--red-cardiology);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    text-decoration: none;
}

.service-card:hover .service-link {
    transform: translateX(4px);
    color: var(--wine-elegant);
}

/* YouTube Subscription Banner (Cambio 3: Solo Banner de Suscripción) */
.youtube-channel-banner {
    background: linear-gradient(135deg, #FFF0F0 0%, #FFE6E6 100%);
    border: 1.5px solid rgba(255, 0, 0, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

/* Google Reviews Grid (Cambio 5: Una Junto a la Otra en Fila Horizontal) */
.reviews-horizontal-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 05 Reseñas lado a lado */
    gap: 1.25rem;
}

.review-card-compact {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.35rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-cardiology), var(--wine-elegant));
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stars {
    color: #FFC107;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

/* Contact & Google Maps */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2.25rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-blush);
    color: var(--red-cardiology);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    min-height: 400px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* Footer */
.footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 4rem 0 2rem 0;
    font-size: 0.92rem;
}

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

.footer h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2.25rem;
    width: 90%;
    max-width: 560px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--red-cardiology);
}

/* Floating WhatsApp Button (Cambio 2: En esquina fija para no estorbar) */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .reviews-horizontal-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid, .profile-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-main-title {
        font-size: 2.2rem;
    }

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #FFFFFF;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

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

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

@media (max-width: 600px) {
    .reviews-horizontal-row {
        grid-template-columns: 1fr;
    }
}
