/* =========================================
   FUNDACION MEDICA CMS - DISEÑO CLÍNICO ROBUSTO
   Elegancia, Autoridad y Solidez Médica
   ========================================= */

/* --- Variables de Identidad Médica --- */
:root {
    --primary-dark: #071E3D;
    --primary-blue: #0A58CA;
    --accent-color: #17A2B8;
    --whatsapp-color: #25D366;
    
    --text-dark: #212529;
    --text-muted: #6C757D;
    --bg-white: #ffffff;
    --bg-light: #F8F9FA;
    --border-color: #E9ECEF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(10, 88, 202, 0.15);
    --radius-md: 8px;
    --transition-fast: all 0.3s ease;
}

/* --- Resets y Globales --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: transparent;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.content-wrapper { background-color: var(--bg-white); position: relative; z-index: 2; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); }
.bg-light { background-color: var(--bg-light); }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--primary-dark); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }

/* --- Vanguardia: Animaciones Flotantes --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- Video de Fondo Fijo Cinematográfico (Parallax Effect) --- */
.video-bg {
    position: fixed; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%; width: auto; height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover; background: #000;
    filter: blur(5px) brightness(0.8);
}
.video-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(7,30,61,0.95) 0%, rgba(7,30,61,0.8) 50%, rgba(7,30,61,0.5) 100%);
    z-index: -1;
}

/* --- Componentes de UI Médicos --- */
.top-bar { background-color: var(--primary-dark); color: #fff; font-size: 0.85rem; padding: 10px 0; position: relative; z-index: 999; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.top-info span { margin-right: 20px; display: inline-flex; align-items: center; gap: 6px; }
.top-info i { color: var(--accent-color); }
.top-social a { color: #fff; margin-left: 15px; font-size: 1rem; }
.top-social a:hover { color: var(--accent-color); }

.header {
    background: var(--bg-white); box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 1000; transition: var(--transition-fast);
}
.header.scrolled { padding: 5px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { height: 75px; object-fit: contain; transition: var(--transition-fast); }
.header.scrolled .logo { height: 60px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; gap: 20px; }
.nav-link { font-size: 0.95rem; font-weight: 600; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.5px; position:relative;}
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary-blue); transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

@keyframes menuPulse {
   0% { color: var(--primary-dark); transform: scale(1); }
   30% { color: var(--accent-color); transform: scale(1.03); }
   100% { color: var(--primary-dark); transform: scale(1); }
}
.pulse-catalogo {
   animation: menuPulse 2.5s infinite;
   font-weight: 800 !important;
}.mobile-menu-btn { display: none; font-size: 1.8rem; background: none; border: none; color: var(--primary-dark); cursor: pointer; }

/* Botones Premium */
.btn-primary, .btn-outline, .btn-wpp {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; font-size: 1rem; font-weight: 600; font-family: var(--font-heading);
    border-radius: 4px; cursor: pointer; border: none; transition: var(--transition-fast);
}

.btn-primary { background-color: var(--primary-blue); color: #fff; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); transition: 0.6s; z-index: 1; }
.btn-primary:hover::before { left: 150%; }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(10, 88, 202, 0.4); }

.btn-outline { background-color: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background-color: #fff; color: var(--primary-dark); }

.btn-wpp { background-color: var(--whatsapp-color); color: #fff; width: 100%; border-radius: var(--radius-md); }
.btn-wpp:hover { background-color: #1DA851; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(37,211,102,0.4); }

/* --- Hero Section - Video Parallax Modificado --- */
.hero { position: relative; padding: 180px 0 220px; color: #fff; z-index: 1; background: transparent; }
.hero-container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; }
.hero-box { max-width: 650px; }
.hero-box h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; margin-bottom: 20px; }
.hero-box p { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: 35px; line-height: 1.8; }
.hero-features { display: flex; gap: 30px; margin-bottom: 40px; }
.hf-item { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hf-item i { color: var(--accent-color); font-size: 1.3rem; }

/* --- Hero Mini para Servicios --- */
.hero-mini {
    position: relative;
    padding: 140px 0 100px;
    background: transparent;
    color: #fff;
    overflow: hidden;
    z-index: 1;
}
.hero-mini-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('imagenes/edificio.png') center/cover no-repeat fixed; /* Parallax Effect real */
    z-index: -2;
    animation: slowZoom 20s infinite alternate; /* Animación de zoom lento vanguardista */
}
.hero-mini-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(7,30,61,0.9) 0%, rgba(10,88,202,0.7) 100%);
    z-index: -1;
}
.hero-mini-box h1 { font-size: clamp(2rem, 4vw, 3.5rem); color: #fff; margin-bottom: 15px; }

/* --- Sección Por Qué Elegirnos (Trust Bar) --- */
.trust-bar {
    background: var(--bg-white); padding: 60px 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1); position: relative; z-index: 10; margin-top: -60px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.trust-item { padding: 30px 20px; border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition-fast); background: #fff;}
.trust-item:hover { border-color: var(--primary-blue); box-shadow: var(--shadow-hover); transform: translateY(-8px);}
.trust-item i { font-size: 3rem; color: var(--primary-blue); margin-bottom: 20px; display: inline-block; animation: float 6s ease-in-out infinite; }
.trust-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.trust-item p { font-size: 0.95rem; color: var(--text-muted); }

/* --- Títulos de Sección Institucionales --- */
.section-title { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-title span { color: var(--primary-blue); font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.section-title h2 { font-size: 2.5rem; margin: 10px 0 15px; }
.section-title p { font-size: 1.1rem; color: var(--text-muted); }
.section-title .divider { height: 4px; width: 60px; background: var(--primary-blue); margin: 20px auto 0; border-radius: 2px; }

/* --- Carrusel Promociones (Swiper Especializado) --- */
.swiper-wrapper { padding-bottom: 60px; } 
.campaign-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: var(--transition-fast); }
.campaign-card:hover { box-shadow: var(--shadow-hover); border-color: transparent; transform: translateY(-5px); }
.campaign-img { width: 100%; height: 280px; object-fit: contain; background: var(--bg-light); border-bottom: 3px solid var(--primary-blue); margin-bottom: 0; cursor: zoom-in; position: relative; transition: var(--transition-fast);}
.campaign-img:hover { opacity: 0.8; transform: scale(1.02); }
.swal-transparente { overflow: visible !important; width: 100% !important; max-width: 600px !important; }
.swal-transparente .swal2-close { color: #fff !important; background: rgba(0,0,0,0.4) !important; font-size: 2.2rem !important; position: absolute; top: 10px; right: 10px; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; outline: none; transition: 0.3s; }
.swal-transparente .swal2-close:hover { color: #FFB800 !important; background: rgba(0,0,0,0.8) !important; transform: scale(1.1); }
.swal-modal-custom-content { text-align: center; }
.swal-modal-text { margin-top: 20px; color: #fff; }
.swal-modal-text h3 { font-size: 1.8rem; margin-bottom: 8px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.swal-modal-text p { font-size: 1.05rem; color: #B0C4DE; margin-bottom: 25px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.swal-img-expand { max-height: 65vh; width: auto; object-fit: contain; max-width: 100%; border-radius: 12px; box-shadow: 0 15px 50px rgba(0,0,0,0.6); margin: 0 auto; display: block; background: #fff; }
.btn-pulsar { animation: pulseWarning 2s infinite; }
@keyframes pulseWarning { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37,211,102, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102, 0); } }
.campaign-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; border-top: 1px solid var(--border-color); }
.campaign-body h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary-dark); }
.campaign-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: var(--text-muted); opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--primary-blue); opacity: 1; width: 25px; border-radius: 5px; }
.swiper-button-next, .swiper-button-prev { color: var(--primary-dark) !important; background: rgba(255,255,255,0.9); width: 45px !important; height: 45px !important; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* --- Callout Acción --- */
.cta-banner { background: var(--primary-dark); color: #fff; padding: 80px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-inner h2 { color: #fff; font-size: 2.2rem; margin-bottom: 10px; }

/* --- Bloques Informativos Extra --- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.process-step { text-align: center; position: relative; padding: 30px 20px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); transition: var(--transition-fast); }
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.process-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(10,88,202,0.1); color: var(--primary-blue); font-size: 2.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; transition: var(--transition-fast); }
.process-step:hover .process-icon { background: var(--primary-blue); color: #fff; transform: rotateY(180deg); }
.process-step h3 { font-size: 1.3rem; margin-bottom: 15px; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; }

/* Acordeón FAQ Responsive y Limpio */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 15px; overflow: hidden; transition: var(--transition-fast); }
.faq-item:hover { border-color: var(--primary-blue); box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.faq-question { width: 100%; text-align: left; padding: 20px 25px; background: transparent; border: none; font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); }
.faq-question i { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: var(--primary-blue); background: rgba(10,88,202,0.1); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; background: #fff; color: var(--text-muted); line-height: 1.6; }
.faq-item.active .faq-answer { padding: 0 25px 25px; max-height: 500px; }
.faq-item.active .faq-question i { transform: rotate(180deg); background: var(--primary-blue); color: #fff; }

/* --- Página Servicios Vue (Directorio) --- */
/* Quitamos ese page-title-box blanco gigante y lo convertimos a sección normal de paso */
.filters-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 50px; }
.filter-btn { background: #fff; border: 1px solid var(--primary-blue); color: var(--primary-blue); padding: 10px 20px; border-radius: 4px; font-weight: 600; cursor: pointer; transition: var(--transition-fast); font-family: var(--font-body); }
.filter-btn:hover, .filter-btn.active { background: var(--primary-blue); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(10,88,202,0.2);}

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.service-card { border: 1px solid var(--border-color); background: #fff; padding: 30px; border-radius: var(--radius-md); transition: var(--transition-fast); position: relative; overflow: hidden;}
.service-card::before { content:''; position: absolute; top:0; left:0; width:4px; height:0%; background: var(--primary-blue); transition: 0.3s ease; }
.service-card:hover::before { height: 100%; }
.service-card:hover { border-color: var(--primary-blue); box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.service-icon { width: 55px; height: 55px; background: rgba(10, 88, 202, 0.1); color: var(--primary-blue); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; border-radius: 8px; margin-bottom: 20px; transition: var(--transition-fast);}
.service-card:hover .service-icon { background: var(--primary-blue); color: #fff; border-radius: 50%;}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary-dark); }
.service-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }
.btn-text { background: none; border: none; font-weight: 700; color: var(--primary-blue); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 0.95rem;}
.btn-text:hover { color: var(--primary-dark); gap: 10px;}

.skel-card { border: 1px solid var(--border-color); padding: 30px; border-radius: var(--radius-md); }
.skel-icon { width: 55px; height: 55px; background: #e9ecef; border-radius: 8px; margin-bottom: 20px; animation: pulse 1.5s infinite; }
.skel-title { height: 20px; width: 70%; background: #e9ecef; margin-bottom: 15px; animation: pulse 1.5s infinite; }
.skel-text { height: 12px; width: 100%; background: #e9ecef; margin-bottom: 8px; animation: pulse 1.5s infinite; }

/* --- Footer Masivo Autoritorio --- */
.footer-main { background-color: #051326; color: #fff; padding: 80px 0 40px; position:relative; z-index:2; border-top: 4px solid var(--primary-blue);}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 15px; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--primary-blue); }

/* Corrección de recuadro blanco: Si el logo es un fondo sólido, un filter invert(1) puede causar esto. Se remueve para asegurar fidelidad */
.footer-logo { max-height: 80px; margin-bottom: 20px; background: #fff; padding: 10px; border-radius: 6px; } 

.footer-col p { color: #A0B0C0; font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #A0B0C0; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-blue); }
.footer-links a:hover { color: #fff; transform: translateX(5px); }

.footer-contact li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; color: #A0B0C0; font-size: 0.95rem; }
.footer-contact i { color: var(--primary-blue); font-size: 1.2rem; margin-top: 3px; }

.footer-hours-box { background: rgba(255,255,255,0.05); padding: 20px; border-radius: var(--radius-md); border-left: 3px solid var(--primary-blue); }
.footer-hours-box li { display: flex; justify-content: space-between; flex-wrap:wrap; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 8px 0; color: #A0B0C0; font-size: 0.9rem;}
.footer-hours-box li:last-child { border-bottom: none; }

.footer-bottom { background-color: #030B17; padding: 20px 0; color: #8096A8; font-size: 0.9rem; text-align: center; position:relative; z-index:2;}

.footer-social { display: flex; gap: 15px; margin-top: 15px; }
.footer-social a { color: rgba(255,255,255,0.7); font-size: 1.25rem; transition: 0.3s; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.05); }
.footer-social a:hover { color: #fff; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.footer-social a.fb:hover { background: #1877F2; }
.footer-social a.ig:hover { background: #E4405F; }
.footer-social a.tk:hover { background: #000000; color: #69C9D0; }
.footer-social a.yt:hover { background: #FF0000; }

.subscribe-invite { margin-top:15px; color:#FFB800; font-size:1.05rem; font-weight:700; font-family:var(--font-heading); animation: pulseWarning 2s infinite; }
@keyframes bounceUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.social-bounce { animation: bounceUp 2s infinite ease-in-out; }
/* Botón WPP Pulso */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--whatsapp-color); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    z-index: 9999; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); animation: wppPulse 2s infinite; border:none; cursor:pointer;
}
@keyframes wppPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Responsive Clínico --- */
@media screen and (max-width: 1024px) {
    .cta-inner { flex-direction: column; text-align: center; }
}
@media screen and (max-width: 1140px) {
    .top-bar { display: none; }
    .hero { padding: 80px 0 120px; text-align: center; }
    .hero-mini { padding: 100px 0 80px; text-align: center; }
    .hero-features { justify-content: center; flex-direction: column; gap: 15px; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-bar { margin-top: -30px; padding: 40px 0;}
    
    .nav { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 20px 25px; box-shadow: 0 15px 30px rgba(0,0,0,0.2); display: none; z-index: 1000; border-top: 1px solid var(--border-color); }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; gap: 0; margin-bottom: 20px; text-align: center; }
    .nav-list li { margin-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 12px; width: 100%; display:flex; justify-content:center; }
    .nav-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .nav-link { font-size: 1.05rem; display: block; width: 100%; text-align: center; white-space: normal; line-height: 1.3; }
    .nav .btn-primary { width: 100%; text-align: center; }

    .mobile-menu-btn { display: block; }
}
