/* =========================================
   CSS UNIFICADO - PÁGINA WEB PRINCIPAL
   ========================================= */

/* =========================================
   VARIABLES & RESET (Sistema de Diseño)
   ========================================= */
   /* --- Arial Regular Font globales --- */
@font-face {
    font-family: 'Arial';
    src: url('../fonts/arial.ttf') format('truetype');
    font-weight: 400; 
    font-style: normal;
}
@font-face {
    font-family: 'Arial';
    src: url('../fonts/arialbd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Arial';
    src: url('../fonts/ariali.ttf') format('truetype');
    font-weight: 400; 
    font-style: italic;
}
@font-face {
    font-family: 'Arial';
    src: url('../fonts/arialbi.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Arial Black';
    src: url('../fonts/ariblk.ttf') format('truetype');
    font-weight: 900; 
    font-style: normal;
}


:root {
    /* Paleta de colores de la marca */
    --primary: #003C82;      /* Azul Oscuro - Confianza */
    --primary-light: #0a4fa0;
    --secondary: #E41E26;    /* Rojo Clínico - Urgencia/Vida */
    --accent: #37A1E0;       /* Celeste - Higiene/Tecnología */
    
    /* Neutros */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    
    /* Espaciado y Layout */
    --container-width: 1280px;
    --header-height: 90px;
    
    /* Sombras Suaves (Estilo Moderno) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Estilos para el texto normal del cuerpo --- */
body {
    /* Cambiado a Arial para texto general */
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- Estilos para Títulos --- */
h1, h2, h3, h4, h5, h6 {
    /* Cambiado a Arial Black o Arial con peso Bold */
    font-family: 'Arial Black', 'Arial', sans-serif;
    /* Si 'Arial Black' (900) no carga, 'Arial' usará su versión Bold (700) o Black (900) */
    font-weight: 900; 
    line-height: 1.2;
    color: var(--primary);
}
p {
    /* Cambiado a Arial para texto general y párrafos */
    font-family: 'Arial', sans-serif;
   
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

ul { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* Contenedor General */
.container-custom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   COMPONENTES BASE REUTILIZABLES
   ========================================= */

/* Botones Profesionales */
.btn-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: white;
}

.btn-primary-custom:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary-custom:hover {
    background-color: var(--primary);
    color: white;
}

.btn-red-custom {
    background-color: var(--secondary);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-red-custom:hover {
    background-color: var(--white);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

/* Badge Personalizado (Estilo Pill) */
.badge-custom {
    display: inline-block;
    background-color: rgba(0, 60, 130, 0.1);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

/* Icon Box Reutilizable */
.icon-box {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 60, 130, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.top-bar {
    background-color: var(--primary);
    color: white;
    font-size: 0.85rem;
    padding: 10px 0;
}

.top-bar .container-custom {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.top-contact i { 
    color: var(--white); 
    margin-right: 5px; 
}

    /* 1. Contenedor para posicionamiento relativo */
.top-bar .social-icons .whatsapp-icon-wrapper {
    position: relative;
    display: inline-flex; /* Para centrar el ícono si es necesario */
    padding: 0 5px; /* Pequeño padding para separarlo de otros iconos */
    text-decoration: none;
    color: inherit; /* Heredar color de los otros iconos */
}

/* 2. Estilo del número superpuesto (el distintivo) */
.top-bar .social-icons .whatsapp-badge {
    position: absolute;
    top: -5px;          /* Posiciona arriba */
    right: 0px;         /* Posiciona a la derecha */
    color: white;
    font-size: 8px;     /* Tamaño de fuente pequeño */
    font-weight: bold;
    line-height: 1;
    padding: 3px 3px;
    border-radius: 50%; /* Lo hace circular */
    border: 1px solid white; /* Borde pequeño para destacarlo del fondo */
    min-width: 12px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header {
    background: white;
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.nav-menu .main-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    font-size: 1rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-link:hover, 
.nav-link.active { 
    color: var(--primary); 
}

.dropdown-icon { 
    font-size: 0.7rem; 
    transition: transform 0.3s; 
}

.menu-item-has-children:hover .dropdown-icon { 
    transform: rotate(180deg); 
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 4px 4px;
    border-top: 3px solid var(--secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1100;
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.sub-menu li:last-child a { 
    border-bottom: none; 
}

.sub-menu li a:hover { 
    background-color: #f9f9f9; 
    color: var(--primary); 
    padding-left: 25px; 
}

.menu-item-has-children { 
    position: relative; 
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle { 
    display: none; 
    font-size: 1.5rem; 
    color: var(--primary); 
    cursor: pointer; 
}

.mobile-action { 
    display: none; 
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: calc(100vh - var(--header-height) - 40px);
    background-color: rgb(244, 243, 243);
    position: relative;
    overflow: hidden;
}

.hero-visual {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

.slider-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active { 
    opacity: 1; 
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(0,60,130,0.3), transparent);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px 60px 50px;
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 240px;
    height: 130px;
    background-image: 
        radial-gradient(var(--accent) 20%, transparent 21%),
        radial-gradient(var(--accent) 20%, transparent 21%);
    background-size: 25px 25px;
    background-position: 0 0, 12.5px 12.5px;
    opacity: 0.08;
    z-index: -1;
    border-radius: 8px;
    filter: blur(0.5px);
}

.hero-title {
    font-size: 3.3rem;
    margin-bottom: 20px;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.location-highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.location-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(55, 161, 224, 0.2);
    border-radius: 4px;
    z-index: -1;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 90%;
    line-height: 1.7;
}

.hero-desc strong {
    color: var(--text-dark);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-features {
    display: flex;
    gap: 40px;
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item:hover .icon-box {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.feature-text h6 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
    font-weight: 700;
}

.feature-text span {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: 1;
}

.about-badge-float {
    position: absolute;
    top: 30px;
    right: -30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    text-align: center;
    border-bottom: 4px solid var(--secondary);
}

.about-badge-float strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 900;
    line-height: 1;
}

.about-badge-float span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
}

.section-tag {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.checklist {
    margin-top: 20px;
    margin-bottom: 30px;
}

.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--primary);
}

.checklist li i {
    color: var(--white);
    background: var(--accent);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-right: 12px;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
    background-color: rgb(244, 243, 243);
    padding: 100px 0;
    position: relative;
}

.section-header {
   
    margin: 0 auto 60px auto;
    text-align: center;
}

.section-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    background: rgba(228, 30, 38, 0.08);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-bottom-color: var(--primary);
}

.card-image {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    opacity: 0.6;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.3s;
}

.service-card:hover .card-content h3 {
    color: var(--secondary);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.3s;
}

.service-card:hover .read-more {
    gap: 12px;
    color: var(--primary);
}

.service-card.card-highlight:hover {
    border-bottom-color: var(--secondary);
}

/* =========================================
   SPECIALTIES SECTION
   ========================================= */
.specialties-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.section-desc {
    font-family: 'Roboto', sans-serif;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
}

.specialty-list li {
    margin-bottom: 12px;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specialty-list li i {
    color: #fca311;
    font-size: 0.9rem;
    font-weight: 900;
}

.custom-btn {
    background-color: #002B5C;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: white;
}

.custom-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.bubbles-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.bubble-item {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
    z-index: 2;
}

.bubble-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.main-bubble {
    width: 58%;
    height: 68%;
    top: 15%;
    right: 0;
    border-radius: 50% 50% 50% 5px;
}

.sub-bubble-top {
    width: 35%;
    aspect-ratio: 1/1;
    top: 0;
    left: 10%;
}

.sub-bubble-bottom {
    width: 32%;
    aspect-ratio: 1/1;
    bottom: 5%;
    left: 5%;
    z-index: 3;
}

.sub-bubble-float {
    width: 25%;
    aspect-ratio: 1/1;
    bottom: 15%;
    right: -5%;
    border: 4px solid #fff;
    border-style: dashed;
    border-color: var(--accent);
}

/* =========================================
   NEWS SECTION
   ========================================= */
.news-section {
    padding: 100px 0;
    background-color: rgb(244, 243, 243);
}

.btn-link-arrow {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
}

.btn-link-arrow:hover {
    gap: 15px;
    color: var(--secondary);
}

.news-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.news-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 60, 130, 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    width: 50px;
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    line-height: 1;
}

.date-badge .day {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
}

.date-badge .month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
}

.news-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
    transition: border-color 0.3s;
}

.news-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    background-image: linear-gradient(var(--text-dark), var(--text-dark));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size .3s, color .3s;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    width: fit-content;
}

.read-more-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* News Card Hover Effects */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.1);
}

.news-card:hover .news-title a {
    color: var(--primary);
    background-size: 100% 1px;
}

.news-card:hover .read-more-link::after {
    transform: scaleX(1);
}

.news-card:hover .news-body {
    border-top-color: var(--secondary);
}


/* =========================================
   DOCTORES
   ========================================= */

.doctors-section_doctor {
    padding: 80px 0;
    background-color: #ffffff; /* Fondo blanco limpio para diferenciar */
    position: relative;
}

/* Badge personalizado para esta sección */
.doctors-section_doctor .badge-custom {
    background-color: rgba(var(--primary-rgb), 0.1); /* Ajusta si no usas vars RGB */
    background-color: #eef2ff; /* Color de respaldo */
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- TARJETAS DOCTORES (_doctor) --- */
.doc-card_doctor {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px; /* Un poco más de padding vertical */
    
    /* Borde sutil y sombra suave */
    border: 1px solid rgba(0, 0, 0, 0.23);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    z-index: 1;
}

.doc-card_doctor:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    border-color: var(--primary);
}

/* Header de la tarjeta */
.doc-header_doctor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.doc-img-wrapper_doctor {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.doc-img_doctor {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.doc-linkedin_doctor {
    color: #cbd3da; 
    font-size: 1.2rem;
    transition: 0.3s;
    margin-top: 5px;
}

.doc-linkedin_doctor:hover {
    color: #0077b5; 
    transform: scale(1.1);
}

/* Info Textos */
.doc-name_doctor {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.doc-colegiatura_doctor {
    font-size: 0.75rem;
    color: var(--primary);
    background-color: #f0f7ff; 
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 600;
}

.doc-bio_doctor {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botón Cargar Más */
.btn-load-more_doctor {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.btn-load-more_doctor:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.15); /* Sombra con color */
    transform: translateY(-2px);
}


/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    position: relative;
    background-color: var(--primary);
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

.footer-content {
    padding-top: 50px;
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-title {
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-info-footer li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.contact-info-footer i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 4px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    color: #fff;
}

.footer-bottom {
    background-color: #002B5C;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 2;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #fff;
}

/* =========================================
   FLOATING BUTTONS & CHAT
   ========================================= */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.whatsapp-btn {
    background-color: #25D366;
    font-size: 30px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

.chat-btn {
    background-color: var(--primary);
    font-size: 24px;
}

.chat-btn:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.chat-window {
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: absolute;
    bottom: 0;
    right: 0;
    pointer-events: none;
}

.chat-window.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
    position: relative;
}

.chat-header {
    background: var(--primary);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-title { 
    font-weight: 700; 
    font-size: 0.95rem; 
    display: block; 
}

.chat-status { 
    font-size: 0.75rem; 
    opacity: 0.8; 
    display: block; 
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-chat-btn:hover { 
    transform: rotate(90deg); 
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    background: white;
    color: #333;
    border-radius: 15px 15px 15px 0;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-message {
    background: var(--accent);
    color: white;
    border-radius: 15px 15px 0 15px;
    align-self: flex-end;
}

.chat-options-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}
    .chat-input-area {
        display: flex;
        align-items: center;
        padding: 10px;
        background: #f8f9fa;
        border-top: 1px solid #eee;
        gap: 8px;
        animation: slideUp 0.3s ease;
    }
    .chat-input-area input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 20px;
        outline: none;
        font-size: 14px;
    }
    .chat-input-area input:focus { border-color: #007bff; }
    .chat-input-area .send-btn {
        background: #007bff;
        color: white;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .chat-input-area .send-btn:hover { background: #0056b3; }
    .chat-input-area .cancel-btn {
        background: #dc3545;
        color: white;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    @keyframes slideUp {
        from { transform: translateY(10px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

.faq-btn {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.faq-btn:hover {
    background: var(--primary);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE / MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .hero-content { padding: 40px; }
}

@media (max-width: 900px) {
    .top-bar { display: none; }
    .desktop-only { display: none !important; }
    
    .menu-toggle { display: block; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        display: block;
    }

    .nav-menu.active {
        max-height: 600px;
        overflow-y: auto;
    }

    .nav-menu .main-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
    }

    .nav-menu li { width: 100%; }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        justify-content: space-between;
    }

    .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #f8f9fa;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
    }
    
    .sub-menu.open { display: block; }

    .sub-menu li a { border-bottom: 1px solid #e9ecef; }

    .mobile-action {
        display: block;
        padding: 20px;
    }

    .hero {
        min-height: auto;
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-visual {
        height: 400px;
        clip-path: none;
    }

    .hero-content {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content::before { display: none; }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-wave { top: -50px; }
    .footer-wave svg { height: 50px; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .card-image { height: 200px; }
    .news-title { font-size: 1.15rem; }
    .section-desc { font-size: 1rem; margin-bottom: 20px; }
    .footer-legal { margin-top: 10px; }
    .footer-legal a { margin: 0 10px; }
}

@media (max-width: 576px) {
    .bubbles-wrapper {
        aspect-ratio: 1 / 1;
        transform: scale(1);
        margin-top: 40px;
    }

    .main-bubble {
        width: 65%;
        height: 65%;
        top: 15%;
        right: 5%;
    }

    .sub-bubble-top { width: 35%; left: 0; }
    .sub-bubble-bottom { width: 35%; bottom: 0; left: 0; }
    .sub-bubble-float { right: 0; bottom: 5%; width: 28%; }
    
    .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .hero-visual { height: 300px; }
    .chat-window {
        width: 300px;
        height: 450px;
    }
    .floating-container {
        right: 20px;
        bottom: 20px;
    }
}

   /* =========================================
   INTERFACES ESPECÍFICAS - CSS CONSOLIDADO
   ========================================= */

/* =========================================
   SERVICIOS - INTERFAZ ESPECÍFICA
   ========================================= */

/* Hero Services */
.hero-services {
    position: relative;
    height: 40vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 1. Aplicamos el desenfoque a la imagen */
.hero-services-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* --- CAMBIOS AQUÍ --- */
    /* Agregamos un filtro de desenfoque fuerte (ajusta el valor de 'px' a tu gusto) */
    filter: blur(100px); 
    /* Opcional: Escalar ligeramente la imagen para evitar bordes blancos después del desenfoque */
    transform: scale(1.05); 
    /* --- FIN CAMBIOS --- */
}

/* 2. Mantenemos el overlay oscuro para garantizar la legibilidad del texto */
.hero-services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mantenemos el fondo semitransparente oscuro (rgba(0, 0, 0, 0.5)) */
    background: rgba(0, 0, 0, 0.326); 
    z-index: 2;
}

/* Opcional: Asegúrate de que el contenedor de la imagen tiene el z-index correcto */
.hero-services-bg {
    position: absolute; /* Debe ser absoluto para que el overlay lo cubra bien */
    width: 100%;
    height: 100%;
    z-index: 1; /* La imagen desenfocada es la capa 1 */
    overflow: hidden; /* Esto oculta los bordes que podrían aparecer con el transform: scale() */
}

.hero-services-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-services-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contenido Principal Servicios */
.services-main-content {
    padding: 80px 0;
    background-color: white;
}

.services-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.services-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

/* Columna Principal - Contenido del Servicio */
.service-content {
    background: white;
}

.service-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.service-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 700;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.service-description p {
    margin-bottom: 20px;
}

.service-details {
    margin-bottom: 40px;
}

.service-details h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-details ul {
    list-style: none;
    padding: 0;
}

.service-details li {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    color: var(--text-dark);
    line-height: 1.6;
}

.service-details li:last-child {
    border-bottom: none;
}

.service-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Sidebar de Servicios */
.services-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #dedede;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Widget de Servicios Relacionados */
.related-services {
    list-style: none;
    padding: 0;
}

.related-service-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
}

.related-service-item:last-child {
    border-bottom: none;
}

.related-service-item a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-service-item:hover {
    transform: translateX(5px);
}

.related-service-item:hover a {
    color: var(--primary);
}

/* Widget de Información de Contacto */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 10px 0;
    color: var(--text-dark);
    line-height: 1.5;
}

.contact-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Sección de Noticias Relacionadas */
.related-news {
    background: #f8f9fa;
    padding: 80px 0;
}

.news-grid_gen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-read-more:hover {
    color: var(--primary-light);
}

/* =========================================
   INTERFAZ DE NOTICIAS
   ========================================= */

/* Hero Noticias */
.hero-news {
    background-color: rgb(244, 243, 243);
    padding: 50px 0;
    border-bottom: 1px solid #eaeaea;
}

.hero-news-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-news-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 700;
}

/* Buscador */
.news-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.news-search {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.news-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 60, 130, 0.15);
    transform: translateY(-2px);
}

.news-search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Contenido Principal Noticias */
.news-main-content {
    padding: 80px 0;
    background: white;
}

.news-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Grid de Noticias */
.news-articles-grid {
    display: grid;
    gap: 35px;
}

.news-article {
    background: white;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-article:hover .article-image img {
    transform: scale(1.08);
}

.article-content {
    padding: 35px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-category {
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.article-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.article-read-more:hover {
    gap: 15px;
    color: var(--primary-light);
}

/* Sidebar de Noticias */
.news-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #dedede;
    box-shadow: var(--shadow-sm);
    padding: 35px;
    margin-bottom: 35px;
}

.sidebar-section-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--text-light);
}

/* Categorías */
.categories-list {
    list-style: none;
    padding: 0;
}

.category-item {
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: transform 0.3s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    transform: translateX(5px);
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.category-item a:hover {
    color: var(--primary);
}

.category-count {
    background: #f8f9fa;
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-item:hover .category-count {
    background: var(--primary);
    color: white;
}

/* Noticias Destacadas */
.featured-news-list {
    list-style: none;
    padding: 0;
}

.featured-news-item {
    padding: 18px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: transform 0.3s ease;
}

.featured-news-item:last-child {
    border-bottom: none;
}

.featured-news-item:hover {
    transform: translateX(5px);
}

.featured-news-item a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-news-item a:hover {
    color: var(--primary);
}

.featured-news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.featured-news-title {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

/* Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: #f8f9fa;
    color: var(--text-dark);
    padding: 7px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #eaeaea;
    font-weight: 500;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Paginación */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    min-width: 45px;
    text-align: center;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.pagination-btn.disabled:hover {
    background: white;
    color: var(--text-dark);
    border-color: #e0e0e0;
    box-shadow: var(--shadow-md);
}

/* Estados de búsqueda */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* =========================================
   CÓMO LLEGAR - INTERFAZ MEJORADA
   ========================================= */

/* Hero Cómo Llegar */
.hero-directions {
    position: relative;
    height: 35vh;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
      background-color: rgb(244, 243, 243);
   
}

.hero-directions-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 10px;
}

.hero-directions-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-directions-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 300;
}

/* Contenido Principal */
.directions-main-content {
    padding: 60px 0;
     background: #f8f9fa;
}

/* Layout Principal */
.directions-layout {
    min-height: 500px;
}

/* Sección del Mapa */
.map-section {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

#directionsMap {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Estilos personalizados para Leaflet */
.leaflet-container {
    background: #f8f9fa;
    font-family: 'Roboto', sans-serif;
    border-radius: 12px;
}

.leaflet-popup-content {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}

.leaflet-control-zoom a {
    background: white;
    color: var(--text-dark);
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-weight: 600;
}

.leaflet-control-zoom a:hover {
    background: var(--primary);
    color: white;
}

/* Panel de Información */
.directions-panel {
    height: 100%;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.panel-header {
    margin-bottom: 25px;
    text-align: center;
}

.panel-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.panel-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Controles de Geolocalización */
.location-controls {
    margin-bottom: 25px;
}

.location-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 60, 130, 0.3);
}

.location-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.location-btn i {
    font-size: 1.1rem;
}

/* Información de la Ruta */
.route-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    display: none;
}

.route-info.active {
    display: block;
}

.route-details {
    margin-bottom: 0;
}

.route-distance, .route-duration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.route-distance:last-child, .route-duration:last-child {
    border-bottom: none;
}

.route-label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.route-value {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.route-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.secondary-btn {
    flex: 1;
    padding: 12px 16px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Información del Hospital */
.hospital-info {
    margin-top: auto;
    border-top: 2px solid #f1f3f4;
    padding-top: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 0 6px 0;
    font-size: 0.95rem;
}

.info-description {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Estados de Carga y Error */
.loading-state, .error-state {
    display: none;
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 25px;
}

.loading-state.active, .error-state.active {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text, .error-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.error-text {
    color: var(--secondary);
}

/* Información Adicional */
.additional-info {
    padding: 80px 0;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.info-card-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    font-weight: 700;
}

.info-card-content {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* =========================================
   GALERÍA - INTERFAZ ESPECÍFICA
   ========================================= */

/* Hero Galería */
.hero-gallery {
    position: relative;
    height: 40vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-gallery-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 1. Aplicamos el desenfoque a la imagen de la galería */
.hero-gallery-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* --- APLICANDO FILTRO BLUR Y SCALADO --- */
    /* Agregamos un filtro de desenfoque fuerte (15px) */
    filter: blur(15px); 
    /* Opcional: Escalar ligeramente la imagen para evitar bordes */
    transform: scale(1.05); 
    /* ------------------------------------- */
}

/* 2. Mantenemos el overlay oscuro para garantizar la legibilidad del texto */
.hero-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mantenemos el fondo semitransparente oscuro (rgba(0, 0, 0, 0.5)) */
    background: rgba(0, 0, 0, 0.5); 
    z-index: 2;
}

.hero-gallery-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-gallery-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filtros de Galería */
.gallery-filters {
    padding: 60px 0 30px;
    background: white;
}

.gallery-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Grid de Galería */
.gallery-grid-section {
    padding: 0 0 80px;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 60, 130, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-info {
    text-align: center;
    color: white;
    padding: 20px;
}

.gallery-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.gallery-item-category {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 15px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-light);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 42, 42, 0.674);
    color: white;
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.lightbox-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
}

.lightbox-description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* =========================================
   MEDIA QUERIES - RESPONSIVE
   ========================================= */

/* Servicios Responsive */
@media (max-width: 1024px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-sidebar {
        position: static;
    }
    
    .sidebar-widgets {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .hero-services-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-services {
        height: 35vh;
        min-height: 300px;
    }
    
    .hero-services-title {
        font-size: 2rem;
    }
    
    .service-featured-image {
        height: 300px;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-services {
        height: 30vh;
        min-height: 250px;
    }
    
    .hero-services-title {
        font-size: 1.6rem;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .service-featured-image {
        height: 250px;
    }
}

/* Noticias Responsive */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-sidebar {
        position: static;
    }
    
    .sidebar-sections {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .hero-news-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-news {
        padding: 80px 0 60px;
    }
    
    .hero-news-title {
        font-size: 2.2rem;
    }
    
    .article-image {
        height: 220px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-pagination {
        flex-wrap: wrap;
    }
    
    .sidebar-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-news-title {
        font-size: 2rem;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .sidebar-section {
        padding: 20px;
    }
    
    .news-search {
        padding: 15px 50px 15px 20px;
    }
}

/* Cómo Llegar Responsive */
@media (max-width: 992px) {
    .directions-layout {
        gap: 30px;
    }
    
    .map-section {
        height: 400px;
    }
    
    #directionsMap {
        min-height: 400px;
    }
    
    .hero-directions-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .hero-directions {
        height: 30vh;
        min-height: 220px;
    }
    
    .hero-directions-title {
        font-size: 2rem;
    }
    
    .hero-directions-subtitle {
        font-size: 1rem;
    }
    
    .directions-main-content {
        padding: 40px 0;
    }
    
    .map-section {
        height: 350px;
    }
    
    #directionsMap {
        min-height: 350px;
    }
    
    .directions-panel {
        padding: 25px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .route-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-directions {
        height: 25vh;
        min-height: 180px;
    }
    
    .hero-directions-title {
        font-size: 1.7rem;
    }
    
    .map-section {
        height: 300px;
    }
    
    #directionsMap {
        min-height: 300px;
    }
    
    .directions-panel {
        padding: 20px;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .panel-title {
        font-size: 1.3rem;
    }
}

/* Galería Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .hero-gallery-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-gallery {
        height: 35vh;
        min-height: 300px;
    }
    
    .hero-gallery-title {
        font-size: 2rem;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-gallery {
        height: 30vh;
        min-height: 250px;
    }
    
    .hero-gallery-title {
        font-size: 1.6rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}


        /* Estilos para el contenido inyectado (CKEditor) */
.ck-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

/* Espaciado entre elementos */
.ck-content p {
    margin-bottom: 20px;
}

/* Títulos dentro del contenido */
.ck-content h2, .ck-content h3 {
    color: var(--text-dark); /* Tu azul */
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}

.ck-content h4 {
    color: var(--text-dark); /* Tu rojo */
    font-weight: 600;
    margin-top: 30px;
}

/* Listas bonitas */
.ck-content ul {
    list-style: none; /* Quitar puntos por defecto */
    padding-left: 0;
    margin-bottom: 30px;
}

.ck-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.ck-content ul li::before {
    /* --- CAMBIOS AQUÍ --- */
    content: "\2022"; /* Código Unicode para un punto sólido (Bullet) */
    font-family: Arial, sans-serif; /* Usamos una fuente estándar en lugar de Font Awesome */
    font-weight: normal; /* Ya no es necesario el font-weight 900 */
    /* --- FIN CAMBIOS --- */
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--text-dark); /* Tu celeste */
}
/* Citas / Bloques destacados */
.ck-content blockquote {
    background: #f8f9fa;
    border-left: 5px solid var(--secondary);
    padding: 20px;
    font-style: italic;
    color: #555;
    margin: 30px 0;
}

/* Tablas */
.ck-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
.ck-content table td, .ck-content table th {
    border: 1px solid #ddd;
    padding: 12px;
}
.ck-content table th {
    background-color: var(--primary);
    color: white;
}
    
    /* --- WIDGET DOCTORES SIDEBAR (_doctores) --- */

.doctors-list_doctores {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doctor-card_doctores {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.doctor-card_doctores:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    border-color: var(--primary); /* Asegúrate que esta variable exista, si no usa un color hex */
}

.doctor-img-wrapper_doctores {
    position: relative;
    flex-shrink: 0;
}

.doctor-img_doctores {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Círculo perfecto */
    object-fit: cover;
    border: 2px solid #e9ecef;
}

/* Indicador de estado (opcional, punto verde) */
.doctor-status_doctores {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border: 2px solid #fff;
    border-radius: 50%;
}

.doctor-info_doctores {
    margin-left: 15px;
    flex-grow: 1;
}

.doctor-name_doctores {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
    line-height: 1.2;
}

.doctor-specialty_doctores {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-bottom: 6px;
}

.doctor-link_doctores {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary); /* O usa tu color principal */
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.doctor-link_doctores:hover {
    color: #0056b3;
    text-decoration: underline;
}

    /* --- ESTILOS NOTICIA DETALLE (_detail) --- */

.news-detail-section_detail {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Contenedor del Artículo */
.article-wrapper_detail {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Imagen Principal */
.article-hero-img_detail {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Meta datos (Fecha, Autor) */
.article-meta_detail {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-meta_detail i {
    color: var(--primary); /* Tu color principal */
    margin-right: 8px;
}

/* Título */
.article-title_detail {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Cuerpo del contenido (Rich Text) */
.article-body_detail {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.article-body_detail p {
    margin-bottom: 1.5rem;
}

.article-body_detail h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-body_detail blockquote {
    border-left: 4px solid var(--primary);
    background: #f8f9fa;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

/* Sidebar Sticky */
.sidebar-sticky_detail {
    position: sticky;
    top: 20px; /* Se queda fijo al hacer scroll */
}

/* Widget Genérico del Sidebar (Reutilizable) */
.sidebar-widget_detail {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.widget-title_detail {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    color: #2c3e50;
}

/* Lista de recientes en sidebar */
.recent-post-item_detail {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-img_detail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-info_detail h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.recent-post-info_detail h5 a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.recent-post-info_detail h5 a:hover {
    color: var(--primary);
}

.recent-post-date_detail {
    font-size: 0.8rem;
    color: #999;
}

    .search-results-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border: 1px solid #ddd;
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: 300px;
        overflow-y: auto;
        display: none; /* Oculto por defecto */
    }
    .search-result-item {
        display: flex;
        align-items: center;
        padding: 10px;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.2s;
    }
    .search-result-item:hover { background: #f9f9f9; color: var(--primary); }
    .search-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; margin-right: 10px; }
    .search-meta { font-size: 0.8rem; color: #888; }
                        /* ------------------------------------------------------------------- */
/* ESTILOS DE POSICIONAMIENTO DE LA MASCOTA */
/* ------------------------------------------------------------------- */

.mascot-animation-container {
    position: absolute; 
    
    /* Para moverlo a la izquierda del texto */
    right: 100%; 
    
    /* Ajuste fino: Moverlo 10px hacia adentro del H1 (overlap) */
    margin-right: -55px; 
    
    /* Alineación vertical al centro del H1 */
    top: 29%; 
    transform: translateY(-50%); 
    
    /* Dimensiones sugeridas para un título */
    width: 250px; 
    height: 250px;
    
    /* Configuración de animación/visibilidad */
    pointer-events: none;
    z-index: 10; 
    opacity: 1; 
    transition: opacity 0.6s ease-out; /* Controla la velocidad de la desaparición */
}

/* Estado inicial: Oculto */
.hidden-mascot { opacity: 0; }

/* Estado final: Oculto después de la reproducción */
.mascot-hide { opacity: 0; }

/* Ajuste del video */
.mascot-animation-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ajuste del H1 para evitar que el texto se superponga */
.hero-title {
    position: relative; /* CRUCIAL para el posicionamiento absoluto del video */
    /* Agrega espacio a la izquierda para el video */
 
}
                        
                         

/* ------------------------------------------------------------------- */
/* REESTRUCTURACIÓN DE LA BARRA SUPERIOR */
/* ------------------------------------------------------------------- */

/* Ajuste del top-contact para alinear todo y separar los elementos de contacto */
.top-contact {
    display: flex;
    align-items: center; 
    gap: 15px; /* Espacio entre el email y el bloque de redes sociales */
}

/* ------------------------------------------------------------------- */
/* ESTILOS DE REDES SOCIALES (NUEVO DISEÑO) */
/* ------------------------------------------------------------------- */

/* Contenedor de los iconos para agruparlos */
.top-contact .social-icons {
    /* Usar un margin-left para separarlo un poco más del email/teléfono */
    margin-left: 20px; 
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio reducido entre los iconos para un look más compacto */
}

/* Estilización de los iconos como enlaces */
.top-contact .social-icons a {
    color: white !important; /* Color sutil, como el resto del texto de la barra */
    font-size: 15px; 
    padding: 2px; /* Pequeño padding para el área de clic */
    transition: all 0.3s ease;
}

/* Efecto hover: Cambio a color primario y un ligero aumento de tamaño */
.top-contact .social-icons a:hover {
    color: var(--primary); /* El color de acento del hospital */
    transform: scale(1.3); /* Icono se agranda ligeramente */
}