/* --- 1. VARIABLES Y RESETEO --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --color-azul-oscuro: #0D2C54;
    --color-azul-claro: #F0F4F8;
    --color-acento-principal: #0cbccc;
    --color-texto: #333333;
    --color-blanco: #FFFFFF;
    --font-principal: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-principal);
    color: var(--color-texto);
    line-height: 1.6;
    padding-top: 80px; /* Espacio para el header fijo */
    background-color: #fdfdfd; 
    position: relative;
}

/* Trama de fondo sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/ivan-bandura.jpg');
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.3; 
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 2. HEADER Y NAVEGACIÓN --- */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 80px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo img {
    height: 55px; 
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--color-azul-oscuro);
    text-decoration: none;
    margin: 0 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--color-acento-principal);
}

.search-icon {
    color: var(--color-azul-oscuro);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: color 0.3s ease;
}
.search-icon:hover {
    color: var(--color-acento-principal);
}

.btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--color-acento-principal);
    color: var(--color-blanco);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-left: 1rem;
    white-space: nowrap;
    text-shadow: none;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--color-azul-oscuro);
    cursor: pointer;
    z-index: 1100;
}

/* Selector de Idioma */
.lang-switcher {
    text-decoration: none;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switcher img {
    width: 30px; 
    height: 20px;
    border-radius: 3px; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); 
    display: block;
    transition: transform 0.3s ease;
}

.lang-switcher:hover {
    transform: scale(1.1);
}

/* Panel de Búsqueda */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.search-overlay.active {
    display: flex;
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--color-blanco);
    font-size: 2.5rem;
    cursor: pointer;
}

.search-bar {
    width: 80%;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--color-acento-principal);
    color: var(--color-blanco);
    font-size: 2rem;
    text-align: center;
    padding: 1rem;
}

.search-bar input:focus {
    outline: none;
}

/* --- 3. SECCIONES GENERALES Y HOME --- */
.section {
    padding: 6rem 0;
    background-color: transparent;
    position: relative;
}

.section-title {
    font-family: var(--font-principal);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--color-azul-oscuro);
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-blanco);
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content h1 {
    font-family: var(--font-principal);
    font-weight: 700;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Grid de Especialidades (Home) */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.specialty-card-link {
    text-decoration: none;
    color: inherit;
}
.specialty-card {
    background: var(--color-blanco);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.specialty-card i {
    font-size: 3rem;
    color: var(--color-acento-principal);
    margin-bottom: 1rem;
}

.specialty-card h3 {
    font-family: var(--font-principal);
    font-weight: 700;
    color: var(--color-azul-oscuro);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Dos Columnas */
.two-columns {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.column-text {
    flex: 1;
}

.column-image {
    flex: 1;
    text-align: center;
}

.column-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bg-light {
    background-color: var(--color-azul-claro);
}

/* Contacto/Mapa (Home) */
.contact-info p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}
.contact-info i {
    color: var(--color-acento-principal);
    font-size: 1.2rem;
    width: 35px; 
    text-align: center;
    margin-right: 10px;
    margin-top: 4px;
}
.contact-info strong {
    color: var(--color-azul-oscuro);
}
.map-container {
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ / Acordeón */
.faq-section {
    padding-bottom: 3rem;
}
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background-color: var(--color-blanco);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-azul-oscuro);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-principal);
}
.accordion-header i {
    color: var(--color-acento-principal);
    transition: transform 0.3s ease;
    font-size: 1.3rem;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 1rem;
}
.accordion-content p, .accordion-content ul {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.7;
}
.accordion-content ul {
    padding-left: 2.5rem;
}
.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}

/* CTA Final */
.cta-section {
    padding: 3rem 0; 
    background-color: var(--color-azul-claro);
    padding-top: 3rem;
    padding-bottom: 6rem;
}
.cta-section .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.cta-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-azul-oscuro);
    text-align: center;
    max-width: 600px;
}

/* --- 4. FOOTER --- */
.footer {
    background-color: var(--color-azul-oscuro);
    color: var(--color-blanco);
    padding: 4rem 0 2rem 0;
    position: relative;
    text-shadow: none;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h4 {
    font-family: var(--font-principal);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer p, .footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: var(--color-blanco);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer .social-icons a {
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.footer .social-icons a:last-child {
    margin-right: 0;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- 5. EQUIPO MÉDICO (Listado General) --- */
.team-category-title {
    font-size: 1.8rem;
    color: var(--color-azul-oscuro);
    border-bottom: 2px solid var(--color-acento-principal);
    padding-bottom: 0.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px); 
    gap: 2.5rem;
    justify-content: center; 
}

.doctor-card {
    text-decoration: none;
    color: var(--color-texto);
    background-color: var(--color-blanco);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(13, 44, 84, 0.1); 
}

.doctor-photo {
    background-color: #E0E0E0; 
    overflow: hidden;
}

.doctor-photo img {
    width: 100%;
    height: 350px; 
    object-fit: cover;
    object-position: top center; 
    display: block;
}

.doctor-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-azul-oscuro);
    margin: 1rem 0 0.2rem 0;
    padding: 0 1rem;
    line-height: 1.2; 
}

.doctor-specialty {
    font-size: 0.9rem;
    color: #666;
    padding: 0 1rem 1.5rem 1rem;
}

/* --- 6. PERFILES MÉDICOS INDIVIDUALES --- */

.breadcrumbs-container {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs {
    list-style: none;
    display: flex;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumbs li::after {
    content: '/';
    margin: 0 0.5rem;
    color: #ccc;
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--color-azul-oscuro);
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: var(--color-acento-principal);
}

.profile-section {
    padding: 4rem 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Barra Lateral Perfil */
.profile-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.profile-photo-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-quick-info h3 {
    font-size: 1.1rem;
    color: var(--color-azul-oscuro);
    border-bottom: 2px solid var(--color-acento-principal);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.profile-quick-info p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.profile-quick-info i {
    width: 25px;
    color: var(--color-acento-principal);
    text-align: center;
    margin-right: 0.5rem;
}

.btn-full-width {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 1.5rem;
}

/* Contenido Principal Perfil */
.doctor-title {
    font-size: 2.5rem;
    color: var(--color-azul-oscuro);
    margin-bottom: 0.5rem;
}

.doctor-subtitle {
    font-size: 1.5rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.profile-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 2rem;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.profile-details-block {
    margin-bottom: 2.5rem;
}

.profile-details-block h3 {
    font-size: 1.4rem;
    color: var(--color-azul-oscuro);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.profile-details-block h3 i {
    color: var(--color-acento-principal);
    margin-right: 10px;
}

.custom-list {
    list-style: none;
    padding-left: 1rem;
}

.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.custom-list li::before {
    content: '•';
    color: var(--color-acento-principal);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.profile-action-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0 3rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* --- 7. PÁGINAS DE ESPECIALIDADES --- */
.lead-text {
    font-size: 1.3rem;
    color: #666;
    max-width: 800px;
}

.check-list {
    list-style: none;
    margin: 1.5rem 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.check-list li::before {
    content: '\f00c'; /* Check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-acento-principal);
    position: absolute;
    left: 0;
    top: 2px;
}

.info-box {
    background-color: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--color-azul-oscuro);
    margin-top: 2rem;
}

.info-box h4 {
    color: var(--color-azul-oscuro);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-box h4 i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.specialty-main-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.specialty-team-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.specialty-team-box h3 {
    font-size: 1.2rem;
    color: var(--color-azul-oscuro);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-acento-principal);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.team-list-links {
    list-style: none;
    padding: 0;
}

.team-list-links li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.team-list-links li:last-child {
    border-bottom: none;
}

.team-list-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s;
    display: block;
}

.team-list-links a:hover {
    color: var(--color-acento-principal);
    padding-left: 5px;
}

/* --- 8. BLOG --- */
.blog-section {
    padding-top: 2rem;
    background-color: #f9f9f9;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    grid-column: 1 / -1; 
    display: flex;
    flex-direction: row;
    align-items: center;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    width: 100%;
}

.featured-card .blog-image {
    width: 50%;
    height: 100%;
    min-height: 350px;
}

.featured-card .blog-content {
    width: 50%;
    padding: 3rem;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-acento-principal);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-title a {
    text-decoration: none;
    color: var(--color-azul-oscuro);
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--color-acento-principal);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    text-decoration: none;
    color: var(--color-acento-principal);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.read-more:hover i {
    margin-left: 10px;
}

/* Estilos Artículos Individuales */
.article-section {
    padding: 4rem 0;
    background-color: #fff;
}

.blog-post-full {
    max-width: 800px; 
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    color: var(--color-azul-oscuro);
    margin: 1rem 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    text-align: left;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #eee;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.author-info a {
    text-decoration: none;
    color: var(--color-azul-oscuro);
    font-weight: 700;
}

.author-role {
    color: #666;
    font-size: 0.85rem;
}

.article-main-image {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.article-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: #444;
}

.article-content strong {
    color: var(--color-azul-oscuro);
}

.article-footer {
    margin-top: 4rem;
    text-align: center;
}

.back-link {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--color-acento-principal);
}

/* --- 9. PÁGINA DE CONTACTO (UNIFICADO) --- */

.contact-main-section {
    padding-bottom: 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.contact-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #f0f0f0;
    border-top: 4px solid var(--color-acento-principal); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%; 
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--color-acento-principal);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--color-azul-oscuro);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Alineación vertical del texto */
    text-align: center;
}

.btn-contact {
    background-color: var(--color-azul-oscuro);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
    margin-bottom: 0.5rem;
    align-self: center;
    display: inline-block;
}

.btn-contact:hover {
    background-color: var(--color-acento-principal);
}

.small-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    display: block;
}

.text-link {
    color: var(--color-azul-oscuro);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.text-link:hover {
    text-decoration: underline;
    color: var(--color-acento-principal);
}

.address-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--color-azul-oscuro);
}

.transport-info {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.transport-info h4 {
    margin-bottom: 1rem;
    color: #444;
}

.transport-info ul {
    list-style: none;
    padding: 0;
}

.transport-info li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 400px;
}

/* --- 10. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .nav-actions, .nav-menu:not(.active) {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-blanco);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 998;
    }
    .nav-menu a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--color-azul-claro);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .two-columns {
        flex-direction: column;
    }
    .section-title {
        font-size: 2rem;
    }
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo img {
        margin: 0 auto 1rem auto;
    }
    .footer .social-icons h4 {
        margin-bottom: 1rem; 
    }
    .footer .social-icons-container {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
    .footer .social-icons-container a {
        font-size: 1.8rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
    .doctor-title {
        font-size: 2rem;
        text-align: center;
    }
    .doctor-subtitle {
        text-align: center;
    }
    
    .featured-card {
        flex-direction: column;
    }
    .featured-card .blog-image, 
    .featured-card .blog-content {
        width: 100%;
    }
    .featured-card .blog-image {
        height: 250px;
    }
    .article-title {
        font-size: 2rem;
    }
    .article-content {
        font-size: 1.05rem;
    }
}

/* Configuración del contenedor HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa toda la altura de la pantalla, ajústalo si prefieres una altura fija (ej: 600px) */
    display: flex;
    align-items: center; /* Centra el texto verticalmente */
    justify-content: center; /* Centra el texto horizontalmente */
    overflow: hidden; /* Corta cualquier parte del video que sobre */
    color: white; /* Texto blanco para que resalte sobre el video */
    text-align: center;
}

/* Configuración del VIDEO de fondo */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; /* Lo manda al fondo */
    transform: translateX(-50%) translateY(-50%); /* Centra el video perfectamente */
    object-fit: cover; /* Hace que el video cubra todo sin deformarse */
}

/* Configuración de la CAPA OSCURA (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Color Negro con 50% de opacidad */
    z-index: 1; /* Se pone encima del video pero debajo del texto */
}

/* Configuración del CONTENIDO (Texto) */
.hero-content {
    position: relative;
    z-index: 2; /* Se asegura de estar encima de todo */
    padding: 20px;
    max-width: 800px;
}