/* VARIABLES GLOBALES */
:root {
    --primary: #1c75bc;
    --dark-blue: #134e7a;
    --cyan: #00cbd6;
    --dark-text: #2c3e50;
    --light-text: #666666;
    --bg-light: #f8faff;
    --border: #dbe3f0;
}

/* CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}
/* --- CONFIGURACIÓN GLOBAL DE ANCHO MÍNIMO PARA TODA LA PÁGINA --- */
html {
    overflow-x: auto; /* Permite el scroll horizontal general en todo el navegador */
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Evita desbordamientos horizontales no deseados */
}

.pagina-wrapper {
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    box-sizing: border-box;
}

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
    box-sizing: border-box;
}
.section-padding { padding: 75px 0; }
.bg-light { background-color: var(--bg-light); }
.margin-top-sm { margin-top: 15px; }
.margin-top-md { margin-top: 35px; }
.margin-bottom-sm { margin-bottom: 15px; }

/* ENCABEZADOS DE SECCIÓN */
.section-header { text-align: center; margin-bottom: 45px; }
.section-header h2 { font-size: 32px; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.section-header p { font-size: 16px; color: var(--light-text); max-width: 800px; margin: 0 auto; }

/* DISEÑOS EN GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* 1. BARRA SUPERIOR */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 50px;
    background-color: #051958;
    font-size: 13px;
    color: #ffffff; /* Texto general en blanco para buen contraste */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Borde sutil */
}

.top-left { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    color: #ffffff; /* Asegura que teléfono y ubicación sean blancos */
}

.top-left i {
    color: var(--cyan); /* Resalta los iconos con el color cian para darle estilo */
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4); /* Borde blanco semitransparente */
    padding: 3px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Fondo ligeramente traslúcido para la caja */
}

.search-box i {
    color: #ffffff; /* Icono de lupa en blanco */
}

.search-box input { 
    border: none; 
    outline: none; 
    margin-left: 5px; 
    font-size: 12px; 
    width: 110px; 
    background: transparent; /* Fondo transparente para el input */
    color: #ffffff; /* Texto que escribas en blanco */
}

/* Color para el texto del input (placeholder) */
.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.top-right a { 
    text-decoration: none; 
    color: #ffffff; /* Enlaces de redes sociales en blanco */
    margin-left: 15px; 
    transition: color 0.2s;
}

.top-right a:hover {
    color: var(--cyan); /* Cambia a cian al pasar el cursor */
}

/* 2. LOGO (NUEVO DISEÑO EN LÍNEA) */
.main-header-inline {
    background-color: #ffffff; /* Fondo blanco del encabezado */
    padding: 15px 0;
    border-bottom: 1px solid var(--border); /* Línea sutil debajo del header */
}

.logo-inline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Permite que baje de renglón si la pantalla es chica */
    text-align: center;
}

.logo-wrapper-link {
    text-decoration: none;
    display: block;
}

.logo-img-inline {
    max-height: 130px; /* Ajusta el tamaño de la imagen para que coincida con la referencia */
    width: auto;
    object-fit: contain;
}

.text-wrapper-inline {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title-inline {
    font-size: clamp(28px, 4vw, 50px); /* Tamaño fluido que se reduce automáticamente */
    color: var(--dark-blue);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.logo-slogan-inline {
    font-size: clamp(14px, 2vw, 25px); /* Eslogan fluido */
    color: var(--light-text);
    letter-spacing: 2px;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    margin-left: 0 !important; /* Elimina el margen fijo grande que desplazaba el texto */
}



/* 3. NAVBAR RESPONSIVA CORREGIDA */
body {
    min-width: 850px;
    overflow-x: visible; 
}

/* --- BARRA DE NAVEGACIÓN BLINDADA (HORIZONTAL FIJA) --- */
.navbar { 
    background: #fff; 
    border-top: 1px solid #ccc; 
    border-bottom: 1px solid #ccc; 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    width: 100%;
    text-align: center; /* Centra los elementos internos en pantallas medianas/chicas */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Centra horizontalmente la lista de enlaces */
    width: 100%;
}

.navbar ul { 
    display: flex; 
    flex-direction: row; 
    justify-content: center; /* Centra los botones del menú */
    list-style: none; 
    margin: 0;
    padding: 0;
}

.navbar li { 
    border-right: 1px solid #ccc; 
    display: inline-block !important; /* Evita que actúen como bloques de ancho completo */
    width: auto !important; /* Cancela cualquier ancho del 100% que los esté estirando */
    flex-shrink: 0; 
}

.navbar li:first-child {
    border-left: 1px solid #ccc; 
}

.navbar a { 
    display: block; 
    padding: 14px 22px; 
    text-decoration: none; 
    color: #111; 
    font-weight: bold; 
    font-size: 14px; 
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.navbar a:hover, .navbar a.active { 
    background-color: #f7f7f7; 
    color: #1c75bc; 
}



/* 4. HERO SECTION */
.hero-section {
    background: url('assets/img/BANNER CLARO.png') no-repeat center center/cover;
    min-height: 540px; 
    padding: 50px 0; 
    display: flex; 
    align-items: center;
}
.hero-overlay { width: 100%; display: flex; justify-content: center; }
.hero-content { max-width: 1100px; text-align: center; color: white; }
.hero-content h2 { font-size: 38px; margin-bottom: 20px; font-weight: 700; }
.hero-subtitle { font-size: 15px; margin-bottom: 40px; opacity: 0.95; text-align: justify; line-height: 1.7; }

/* TARJETAS FLOTANTES DE IMAGEN */
.cards-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.card-item { background: #ffffff; text-decoration: none; color: #111; width: 210px; padding: 25px 15px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: transform 0.2s; }
.card-item:hover { transform: translateY(-4px); }
.card-icon { font-size: 26px; color: #333; border: 1px solid #333; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.card-item h3 { font-size: 14px; font-weight: bold; text-align: center; }
.btn-more { display: inline-block; padding: 8px 30px; border: 1px solid var(--cyan); color: var(--cyan); text-decoration: none; font-weight: bold; font-size: 13px; background: transparent; transition: all 0.3s; }
.btn-more:hover { background: var(--cyan); color: white; }

/* SECCIÓN EXCELENCIA MÉDICA CON ENFOQUE HUMANO */
.excelencia-section {
    background-color: #fcfdff; /* Fondo azul oscuro corporativo */
    color: #ffffff;
    padding: 75px 0;
}

.excelencia-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #0056b3;
}

.excelencia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.excelencia-card {
    display: flex;
    flex-direction: column;
}

.excelencia-img-box {
    width: 100%;
    height: 380px; /* Altura uniforme para las imágenes */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.excelencia-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    display: block;
}

.excelencia-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #79788a;
    text-align: left;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .excelencia-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .excelencia-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .excelencia-img-box {
        height: 280px;
    }
}

/* ESTILOS PARA LA SECCIÓN CONÓCENOS */
.grid-conocenos {
    display: grid;
    grid-template-columns: 450px 1fr; /* Ancho fijo para el logo y el resto para las pestañas */
    gap: 40px;
    align-items: center; /* Los centra verticalmente */
    margin-top: 30px;
}

.conocenos-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.conocenos-img-logo {
    max-width: 480px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 5. SISTEMA DE PESTAÑAS (TABS) */
.text-block { margin-bottom: 15px; font-size: 15px; color: #4a5568; text-align: justify; }
.font-highlight { font-size: 18px; font-weight: 600; color: var(--dark-blue); }
.tabs-container { background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-radius: 4px; overflow: hidden; }
.tabs-header { display: flex; background: #f1f5f9; border-bottom: 1px solid var(--border); }
.tab-btn { flex: 1; padding: 12px 5px; border: none; background: transparent; font-weight: 600; font-size: 13px; cursor: pointer; color: #64748b; transition: all 0.2s; }
.tab-btn.active { background: #fff; color: var(--primary); border-top: 3px solid var(--primary); }
.tabs-content { padding: 25px; min-height: 250px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane h4 { color: var(--dark-blue); margin-bottom: 8px; font-size: 16px; border-left: 3px solid var(--cyan); padding-left: 8px; }
.tab-pane p { font-size: 14px; color: #475569; text-align: justify; }
.bullet-list-two-columns { 
  display: grid; 
  grid-template-columns: 1fr; /* Cambiado de 1fr 1fr a una sola columna */
  gap: 15px; /* Opcional: puedes aumentar un poco el espacio vertical entre elementos */
  list-style: none; 
  font-size: 13px; 
}
.check-list-style { list-style: none; font-size: 13px; }
.check-list-style li { margin-bottom: 8px; }
.check-list-style i { color: var(--cyan); font-size: 10px; margin-right: 5px; }



/* 7. SECCIÓN PREMIUM (ORTOPEDIA) */
.premium-section { background-color: var(--dark-blue); color: white; }
.badge { background: var(--cyan); color: white; padding: 4px 12px; font-size: 11px; border-radius: 20px; display: inline-block; margin-bottom: 10px; font-weight: bold; }
.premium-intro-text { text-align: center; max-width: 950px; margin: 0 auto 30px auto; font-size: 15px; opacity: 0.9; }
.sub-specialties-container h3 { color: var(--cyan); font-size: 18px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 5px; }
.sub-specialty-item { margin-bottom: 18px; }
.sub-specialty-item h4 { font-size: 15px; color: #fff; margin-bottom: 4px; }
.sub-specialty-item p { font-size: 13px; opacity: 0.85; text-align: justify; }

.why-us-premium-box { background: #ffffff; padding: 35px; border-radius: 4px; color: var(--dark-text); height: fit-content; }
.why-us-premium-box h3 { color: var(--primary); margin-bottom: 15px; font-size: 20px; }
.premium-check-list { list-style: none; font-size: 13.5px; margin-bottom: 20px; }
.premium-check-list li { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.premium-check-list i { color: #16a34a; font-size: 16px; margin-top: 2px; }
.propuesta-valor-card { background: var(--bg-light); padding: 15px; border-left: 4px solid var(--cyan); }
.propuesta-valor-card h4 { font-size: 14px; color: var(--dark-blue); margin-bottom: 5px; }
.propuesta-valor-card p { font-size: 12.5px; color: #475569; }



/* 10. FORMULARIO CONTACTO */
.contact-details-box { background: #fff; padding: 35px; border-radius: 4px; border: 1px solid var(--border); }
.contact-details-box h3 { color: var(--dark-blue); margin-bottom: 15px; font-size: 19px; }
.contact-info-line { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-line i { font-size: 20px; color: var(--primary); margin-top: 4px; }
.contact-info-line strong { font-size: 14px; color: var(--dark-text); }
.contact-info-line p { font-size: 13px; color: var(--light-text); }

.contact-form-box { background: #fff; padding: 35px; border-radius: 4px; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.contact-form-box h3 { color: var(--dark-blue); margin-bottom: 20px; font-size: 19px; text-align: center; }
#clinic-form { display: flex; flex-direction: column; gap: 15px; }
#clinic-form input, #clinic-form select, #clinic-form textarea { width: 100%; padding: 11px; border: 1px solid #cbd5e1; border-radius: 4px; outline: none; font-size: 13.5px; }
#clinic-form textarea { height: 90px; resize: none; }
#clinic-form input:focus, #clinic-form select:focus, #clinic-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 5px rgba(28,117,188,0.2); }
.btn-form-submit { background: var(--primary); color: white; border: none; padding: 12px; font-weight: bold; border-radius: 4px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.btn-form-submit:hover { background: var(--dark-blue); }

.main-footer { background: #1e293b; color: #94a3b8; text-align: center; padding: 25px; font-size: 13px; border-top: 3px solid var(--cyan); }



/* DIRECTORIO DE ESPECIALISTAS */
.directory-filter-bar {
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.directory-filter-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 30px;
    outline: none;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: border-color 0.3s;
}

.directory-filter-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(28,117,188,0.15);
}

/* ==========================================
   DIRECTORIO DE ESPECIALISTAS (OPTIMIZADO)
   ========================================== */
.grid-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Obliga a todas las tarjetas de una fila a medir lo mismo */
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(28,117,188,0.1);
}

.doctor-photo {
    width: 100%;
    height: 240px; /* Altura fija para la foto para que no varíe el tamaño de las tarjetas */
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.doctor-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que el contenido interno ocupe el espacio disponible de manera uniforme */
    justify-content: space-between; /* Empuja las cédulas y botones hacia abajo de forma alineada */
}

.doctor-tag {
    background: rgba(28, 117, 188, 0.1);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 10px;
}

.doctor-info h3 {
    font-size: 17px;
    color: var(--dark-blue);
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.doctor-cv {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 12px;
    text-align: justify;
    line-height: 1.5;
}

/* Espacio organizado para los datos y cédulas */
.doctor-cedula {
    font-size: 11.5px;
    color: #64748b;
    margin-top: auto; /* Ancla los datos al fondo de la sección de texto */
    margin-bottom: 15px;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
    line-height: 1.4;
}

.btn-primary-sm {
    display: inline-block;
    text-align: center;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary-sm:hover {
    background-color: var(--dark-blue);
}

/* SECCIÓN CONTACTO Y UBICACIÓN */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

.contacto-info-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contacto-icon {
    font-size: 24px;
    color: var(--primary);
    margin-top: 3px;
}

.contacto-item h4 {
    font-size: 16px;
    color: var(--dark-blue);
    margin-bottom: 4px;
}

.contacto-item p {
    font-size: 14px;
    color: var(--light-text);
}

/* Contenedor de Botones Interactivos */
/* Contenedor de Botones Interactivos */
.contacto-buttons {
    display: flex;
    flex-direction: column;
    align-items: center; /* <-- Esto centra los botones horizontalmente */
    gap: 12px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    width: 100%;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    
    /* <-- Agrega estas dos líneas para que tengan un tamaño estático --> */
    width: 100%;
    max-width: 450px; /* Puedes cambiar este valor (ej. 400px o 500px) según el ancho fijo que prefieras */
    box-sizing: border-box;
}

.btn-contact:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Colores específicos para cada botón */
.btn-whatsapp {
    background-color: #25D366;
}

.btn-map {
    background-color: #4285F4;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Nota: corregido linear-stabilize por linear-gradient para que funcione bien */
    background-color: #e1306c; /* Respaldo sólido */
}

.btn-doctoralia {
    background-color: #00b3bb; /* Color característico de Doctoralia */
}

/* Estilo del Mapa Grande */
.contacto-map-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    background: #fff;
}

.contacto-map-box iframe {
    width: 100%;
    height: 420px;
    display: block;
}



/* Estilo del logotipo original en la sección Conócenos */
.conocenos-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.conocenos-img-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- SECCIÓN CARRUSEL - CLÍNICA MÉDICA ÁNGELES --- */
#carousel-section {
    background-color: #f8f9fa; /* Fondo blanco humo muy limpio y moderno */
    width: 100%;
    padding: 80px 0;
    color: #333333;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

#carousel-section h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 40px;
    color: #003366; /* Azul institucional médico */
    letter-spacing: 0.5px;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08); /* Sombra suave y pulcra en tono azulado */
    border: 1px solid #dcdfe6;
    background-color: #ffffff;
}

.carousel-slide {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img,
.carousel-slide .carousel-video-item {
    width: 100%;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    height: 550px; /* Altura equilibrada y profesional para instalaciones/personal */
}

/* Estilos específicos para el contenedor del video local */
.carousel-video-item {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
}

.carousel-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Botones de navegación corporativos */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.85);
    color: #003366;
    border: 1px solid #ccd2d9;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 1.4em;
    z-index: 10;
    border-radius: 50%; /* Botones circulares, más amigables al sector salud */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background-color: #0056b3; /* Azul más vivo al pasar el cursor */
    color: #ffffff;
    border-color: #0056b3;
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Puntos de navegación (Dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 10px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.dot:hover {
    background-color: #94a3b8;
}

.dot.active {
    background-color: #003366; /* Azul médico para indicar el elemento activo */
    transform: scale(1.25);
    box-shadow: 0 0 6px rgba(0, 51, 102, 0.3);
}

/* ==========================================
   ESTILOS: CENTRO DE EXCELENCIA EN ORTOPEDIA (FLUIDO)
   ========================================== */
.ortho-excellence-section {
    padding: 60px 20px;
    background-color: #ffffff; /* O transparente si prefieres que tome el fondo general */
    display: flex;
    justify-content: center;
}

.ortho-container {
    width: 100%;
    max-width: 900px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.ortho-header {
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 18px 24px;
    text-align: center;
    border-bottom: 3px solid #60a5fa;
    border-radius: 4px; /* Opcional: mantiene una ligera curvatura solo en la barra de título */
}

.ortho-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ortho-content {
    padding: 30px 10px;
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.7;
}

.ortho-content p {
    margin-bottom: 24px;
    text-align: justify;
}

.ortho-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   ESTILOS: MEDICINA REGENERATIVA (FLUIDO)
   ========================================== */
.regen-section {
    padding: 60px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.regen-container {
    width: 100%;
    max-width: 1100px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}

/* Encabezado y estilo de textos */
.regen-header h2 {
    color: #1e3a8a;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 3px solid #60a5fa;
    padding-bottom: 10px;
}

.regen-body h3 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 15px;
    font-weight: 600;
}

.regen-body p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* Lista con viñetas */
.regen-list {
    margin: 15px 0 20px 20px;
    color: #374151;
    line-height: 1.6;
}

.regen-list li {
    margin-bottom: 6px;
}

/* Contenedor de las dos imágenes de la derecha */
.regen-images-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.regen-img-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.regen-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.regen-img-wrapper img:hover {
    transform: scale(1.03);
}

/* ==========================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
   ========================================== */
/* Asegurar que la barra de navegación se adapte bien en pantallas pequeñas */
@media screen and (max-width: 768px) {
    .navbar-container {
        padding: 5px 10px;
    }

    .navbar ul {
        display: flex;
        flex-wrap: wrap; /* Permite que los botones pasen a la siguiente línea ordenadamente si no caben */
        justify-content: center;
        gap: 5px; /* Espacio pequeño entre botones */
    }

    .navbar li {
        margin: 2px 5px;
    }

    .navbar a {
        font-size: 13px; /* Reduce un poco el texto para que quepan mejor */
        padding: 6px 10px; /* Reduce el relleno de los botones */
    }
}
/* ==========================================
   ESTILOS PARA EL CARRUSEL PEQUEÑO DE REGENERATIVA
   ========================================== */
.regen-mini-carousel {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.mini-carousel-slide {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.mini-carousel-slide img {
    width: 100%;
    height: 180px; /* Altura compacta ajustada para el lado derecho */
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.mini-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.mini-dot {
    height: 8px;
    width: 8px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.mini-dot.active {
    background-color: #1e3a8a; /* Azul institucional */
    transform: scale(1.2);
}

.regen-images-content {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio entre la imagen fija y el carrusel */
}

.social-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto 0 auto;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    /* Cambiamos a un fondo blanco sólido o ligeramente tintado */
    background-color: #ffffff;
    /* Borde sutil grisáceo para delinear las tarjetas */
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 25px 20px;
    min-width: 140px;
    max-width: 180px;
    /* Color de texto e iconos principal: el mismo azul oscuro del título */
    color: #1a365d; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-btn:hover {
    /* Al pasar el cursor, se invierten los colores para destacar (Fondo azul, texto blanco) */
    background-color: #1a365d;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.2);
    border-color: #1a365d;
    cursor: pointer;
}

.social-btn i {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1;
}

.social-btn .btn-text {
    font-size: 1em;
    font-weight: 600;
    text-align: center;
}

/* --- ESTÁNDAR PARA ESCRITORIO (Diseño Base) --- */
.container, .container-bloque, .navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --- TABLETS Y PANTALLAS MEDIANAS (Menor a 992px) --- */
@media screen and (max-width: 992px) {
    .social-buttons-container {
        gap: 15px; /* Reduce un poco el espacio entre tarjetas */
    }
    
    .social-btn {
        min-width: 180px;
        flex: 1 1 calc(33.333% - 15px); /* Se adaptan 3 por fila */
    }
}

/* --- CELULARES Y PANTALLAS CHICAS (Menor a 768px) --- */
@media screen and (max-width: 768px) {
    /* Ajusta el menú para que los botones fluyan mejor o se apilen de forma limpia */
    .navbar ul {
        flex-wrap: wrap; 
        justify-content: center;
    }

    .navbar li {
        border: none; /* Quitamos bordes laterales pesados en móvil si estorban */
        border-bottom: 1px solid #eee;
        width: 100%; /* Opcional: si quieres que el menú se vuelva tipo lista vertical */
    }

    .navbar a {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* Las tarjetas de artículos se acomodan a 1 o 2 por fila para que no seamontonen */
    .social-btn {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px 15px;
    }

    .section-title {
        font-size: 1.6rem; /* Reducimos ligeramente los títulos para pantallas chicas */
    }
} 
