/* CSS Document */

/* Web Clinica Privada Hispano Argentina - xhtml */


/* Elementos HTML */

html {
    font-size: 62.5%;
    /* Reset para REMS - 62.5% = 10px de 16px */
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: 'PT Sans', sans-serif;
}

a:link,
a:visited,
a:active {
    text-decoration: none;
}

.texto-general {
    font-size: 1.6px;
}

/* Globales */


/* Utilidades */

.contenedor {
    width: 95%;
    max-width: 120rem;
    margin: 0 auto;
}

.contenedor-reducido {
    width: 95%;
    max-width: 100rem;
    margin: 0 auto;
}

.no-margin {
    margin: 0;
}

.activo {
    background-color: #3496bc;
    color: white !important;
}

.importante {
    color: red !important;
    font-weight: bold;
}

.inactivo {
    color: rgb(209, 202, 202) !important;
}

.inactivo:hover {
    color: rgb(209, 202, 202) !important;
    border-bottom: none !important;
    cursor: default;
}

.enlaceInterno {
    margin-left: .8rem;
    font-size: 1.5rem;
}

.fondoRojo {
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    padding: 0 .8rem;
    background-color: #dc3545;
    color: white;
    margin-bottom: 2rem;
}

.subtexto {
    font-size: 1.8rem;
    font-weight: normal !important;
    color: #495057;

}

/**** INDEX ****/

/* Header */
#cabecera {
    -webkit-box-shadow: 0 0 2rem 0.1rem rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0 0 2rem 0.1rem rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 2rem 0.1rem rgba(0, 0, 0, 0.75);
    position: relative;
    z-index: 2;
}

.botonera-header {
    background-color: #a6c8e1;
    font-size: 1rem;
    border-bottom: 0.1rem solid #dcd6d6;
}

@media (min-width: 768px) {
    .botonera-header {
        font-size: 1.5rem;
    }
}

.contenido-botonera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

div.intranet-boton,
div.contactos-consultorios {
    display: flex;
    align-items: center;
}

div.contenido-botonera-header .redesSociales {
    margin-right: 1rem;
}

div.contenido-botonera-header .redesSociales a {
    padding: 0;
    background-color: #ccc;
    margin-left: .8rem;
    background-color: #a6c8e1;
}

div.contenido-botonera-header .redesSociales a i {
    margin: 0;
    color: #303030;
}

div.contenido-botonera-header .redesSociales a i:hover {
    opacity: .5;
}

.contenido-botonera-header p {
    display: none;
    margin-right: 2rem;
    color: #333333;
    font-size: .9rem;
}

@media (min-width: 768px) {
    .contenido-botonera-header p {
        font-size: 1.3rem;
    }
}

@media (min-width: 524px) {
    .contenido-botonera-header p {
        display: block;
    }
}

.contenido-botonera-header a {
    display: inline-block;
    padding: 0.8rem 1.3rem;
    color: white;
    background: #3496bc;
}

.contenido-botonera-header a:hover {
    color: #000;
    background-color: #ccc;
    text-decoration: none;
}

.contenido-botonera-header a i {
    margin-right: 0.8rem;
}

.btnPrinMargenLeft {
    color: #fff;
    margin-right: 0.8rem;
}

.contenedor-brand {
    display: flex;
}

.brand-logo {
    height: 7rem;
    width: auto;
}


#menuPrincipal a {
    display: inline-block;
    font-size: 1.3rem;
    color: black;
}

@media (min-width: 768px) {
    #menuPrincipal a {
        font-size: .9rem;
    }

    @media (min-width: 857px) {
        #menuPrincipal a {
            font-size: 1.1rem;
        }
    }

}

@media (min-width: 946px) {
    #menuPrincipal a {
        font-size: 1.3rem;
    }

}

#menuPrincipal a:hover {
    text-decoration: none;
    color: #89bdd3;
}


.navegacion-principal li a {
    display: inline-block;
    padding: 2.9rem 1.2rem !important;
    border-bottom: 8px solid white;
}


.navegacion-principal li a:hover {
    border-bottom: 8px solid #3496bc;
}

.navegacion-principal li a.importante:hover {
    border-bottom: 8px solid red;
}

.principalActivo {
    border-bottom: 8px solid #3496bc !important;
}

a.importante.principalActivo {
    border-bottom: 8px solid red !important;
}


/* Slider --- Usando Swiper */

.swiper-container {
    width: 90%;
    height: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.swiper-slide {
    text-align: center;
    font-size: 1.8rem;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}


/* Destacados */

.cont-destacados {
    width: 90%;
    max-width: none;
    margin: 0 auto 1rem;
}

.cont-destacados h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1f2d33;
    margin-top: 2.8rem;
    margin-bottom: 2.6rem;
    padding-bottom: 1rem;
    position: relative;
}

.cont-destacados h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5rem;
    height: 0.4rem;
    border-radius: 0.4rem;
    background-color: #3496bc;
}

.articulos-destaca {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 8rem;
}

@media (min-width: 576px) {
    .articulos-destaca {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .articulos-destaca {
        grid-template-columns: repeat(4, 1fr);
    }
}

.articulo-desta {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e2e8ea;
    border-radius: 0.7rem;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.9rem rgba(0, 0, 0, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.articulo-desta:hover {
    transform: translateY(-0.4rem);
    box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.14);
}

.img-destaca {
    display: block;
    overflow: hidden;
    position: relative;
}

.destaca-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.3);
}

/* Fondo semitransparente solo en el home (el texto queda solido) */
.destaca-badge.badge-plan {
    background-color: rgba(31, 95, 116, 0.8);
}

.destaca-badge.badge-consultorios {
    background-color: rgba(52, 150, 188, 0.8);
}

.destaca-badge.badge-institucional {
    background-color: rgba(94, 107, 115, 0.8);
}

.destaca-badge.badge-covid {
    background-color: rgba(192, 86, 47, 0.8);
}

.destaca-badge.badge-imagenes {
    background-color: rgba(106, 76, 147, 0.8);
}

.img-destaca img {
    display: block;
    width: 100%;
    height: 18rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Encuadre para fotos de perfil (retratos): muestra la cara, no el centro */
.foto-medico {
    object-position: center 20%;
}

/* Placa apaisada de espinografia: encuadra hacia la radiografia (derecha) */
.foto-espino {
    object-position: right;
}

.articulo-desta:hover .img-destaca img {
    transform: scale(1.05);
}

.contenido-desta {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.8rem;
    min-width: 0;
}

.contenido-desta a {
    color: #3496bc;
}

.contenido-desta a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.titulo-destaca {
    display: block;
    margin-bottom: 1rem;
}

.contenido-desta h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2d33;
    line-height: 1.3;
    margin: 0;
}

.titulo-destaca:hover h2 {
    color: #3496bc;
}

.contenido-desta p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    line-height: 1.6;
    font-size: 1.4rem;
    color: #555;
    text-align: left;
    margin: 0;
}


/* Pie de Pagina */


.footer-prin {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .footer-prin {
        flex-direction: row;
        justify-content: space-between;
    }

}


#contenedor-logo-pie {
    display: flex;
    justify-content: center;
}


#contenedor-logo-pie strong {
    color: #303030;
    display: inline-block;
    font-size: 1.4rem;
}

#contenedor-logo-pie img {
    margin-right: 0.8rem;
}

.direcciones {
    text-align: center;
    margin-bottom: 1rem;
}

.direcciones-footer {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    color: #333333;
}

.direcciones-footer i {
    margin-right: 0.5rem;
}

#contenedor-footer-cen {
    border-left: solid 0.1rem #2b7c9c;
    border-right: solid 0.1rem #2b7c9c;
}

#contenedor-footer-cen a {
    color: #303030;
}

#contenedor-footer-cen a:hover {
    text-decoration: none;
    opacity: 0.5;
}

#enlace-logo-pie {
    display: block;
    overflow: hidden;
}

#enlace-logo-pie:hover {
    opacity: 0.5;
    text-decoration: none;
}

#contenedor-footer-der p {
    font-size: 1.2rem;
}


.site-footer {
    padding-top: 2rem;
    background: #a6c8e1;

}


.subtitulo-footer {
    color: #303030;
    font-size: 1.2rem;
}

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

.enlaces-pie a {
    display: block;
    margin-bottom: 1.2rem;
}

.enlaces-pie a:last-child {
    margin-bottom: 0;
}

.enlaces-pie img {
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.enlaces-pie img[src*="DATAWEB"] {
    width: 75px;
}

.final-footer {
    background-color: #3496bc;
}

.final-footer p {
    text-align: center;
    font-size: 1.2rem;
}

.final-footer a {
    color: white;
}

.menu-pie {
    display: none;
}

@media (min-width: 992px) {
    .menu-pie {
        display: block;
    }
}

.menu-pie ul {
    list-style: none;
    font-size: 1.2rem;
}

.menu-pie li {
    margin-bottom: 0.1rem;
    font-weight: bold;
}

.menu-pie li a {
    color: #333333;
    text-decoration: none;
}

.menu-pie li a:hover {
    opacity: 0.5;
}

/* Aire y legibilidad en los modales de terminos / privacidad */
#privacidad-modal .modal-content,
#terminos-modal .modal-content {
    border: none;
    border-radius: 0.6rem;
}

#privacidad-modal .modal-header,
#terminos-modal .modal-header,
#privacidad-modal .modal-footer,
#terminos-modal .modal-footer {
    padding: 1.8rem 2.6rem;
    border-color: #e2e8ea;
}

#privacidad-modal .modal-title,
#terminos-modal .modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2b7c9c;
}

#privacidad-modal .modal-body,
#terminos-modal .modal-body {
    padding: 2.2rem 2.6rem;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 1.5rem;
    line-height: 1.7;
}

#privacidad-modal .modal-body h6,
#terminos-modal .modal-body h6 {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    color: #2b7c9c;
    margin-top: 2.4rem;
    margin-bottom: 0.9rem;
}

#privacidad-modal .modal-body h6:first-child,
#terminos-modal .modal-body h6:first-child {
    margin-top: 0;
}

#privacidad-modal p,
#terminos-modal p {
    text-align: justify;
}

#terminos-modal ul {
    list-style: none;
    text-align: justify;
    padding-left: 1rem;
}

#terminos-modal li {
    margin-bottom: 0.6rem;
}

/*** INSTITUCIONAL ***/

.subsite-header {
    display: flex;
    align-items: flex-end;
    height: 20.5rem;
    background-position: center bottom;
    background-size: cover;
}

.institucionalback {
    background-image: url("../images/institucional.jpg");
}

.serviciosback {
    background-image: url("../images/nuestros.jpg");
}

.coronavirusback {
    background-image: url("../images/coronavirus.jpg");
}

.novedadesback {
    background-image: url("../images/novedades.jpg");
}


.contenedor-subpaginas {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 1rem;
}

@media (min-width: 768px) {
    .contenedor-subpaginas {
        display: grid;
        grid-template-columns: 25% 75%;
        grid-column-gap: 1rem;
    }
}

.submenu-institucional,
.submenu-nuestros {
    font-size: 1.5rem;
}

.submenu-nuestros {
    padding: .5rem 1rem;
    display: none;
}

@media (min-width: 768px) {
    .submenu-nuestros {
        display: block;
    }
}

.submenu-nuestros a {
    text-decoration: none;
    color: #495057;
    font-size: 1.5rem;
    display: block;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.submenu-nuestros a:not(.activo):hover {
    background-color: #f8f9fa;
    color: #495057 !important;
}

.encabezado-subpaginas-nuestros {
    height: 20.5rem;
    background-image: url("../images/nuestros.jpg");
    background-position: center bottom;
    background-size: cover;
}

.subsite-header h1,
.encabezado-subpaginas-nuestros h1 {
    opacity: 0.7;
    font-size: 3rem;
    background-color: #fff;
    display: inline-block;
    padding-left: 1rem;
    padding-right: 3rem;
    font-weight: 700;
}

@media (min-width: 486px) {
    .subsite-header h1 {
        padding-right: 12rem;
    }
}

.menu-subpaginas .active {
    border-bottom: none;
    border-top: none;
    background-color: #3496bc;
}

/* Color base de los items inactivos del submenu (incluye el primero al
   desactivarse, que si no cae al gris oscuro por defecto de Bootstrap) */
.menu-subpaginas .list-group-item-action {
    color: rgb(209, 202, 202);
}

/* El item activo siempre en blanco, aunque conserve la clase .inactivo
   (Bootstrap solo togglea .active y no quita .inactivo) */
.menu-subpaginas .list-group-item.active {
    color: #fff !important;
}

/* Los items del submenu son pestañas clickeables: cursor pointer aunque
   tengan la clase .inactivo (que por defecto pone cursor: default) */
.menu-subpaginas .list-group-item-action:hover {
    cursor: pointer;
}

.primer-enlace-submenu {
    border: none;
}

.submenu-mobile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.boton-submenu,
.boton-submenu-nuestros {
    margin-bottom: 0.5rem;
    background: none;
    border: 0;
}

@media (min-width: 768px) {

    .boton-submenu,
    .boton-submenu-nuestros {
        display: none;
    }
}


.contenido-subpaginas {
    margin-top: 1rem;
    margin-bottom: 10rem;
}


.contenido-subpaginas h2 {
    padding-bottom: 0.8rem;
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.contenido-subpaginas h2::after {
    content: "";
    display: block;
    width: 8rem;
    height: .5rem;
    background-color: #2b7c9c;
    margin-top: .9rem;
}

.contenido-subpaginas h3 {
    margin-bottom: 3rem;
    padding-bottom: .8rem;
    color: #2b7c9c;
    font-size: 2.2rem;
    border-bottom: 1px solid rgb(192, 188, 188);
}

.contenido-subpaginas h3 span {
    font-weight: bold;
}


.contenido-subpaginas h4 {
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: #ccc solid 0.1rem;
    color: #2b7c9c;
    font-weight: bold;
}

.contenido-subpaginas dl {
    font-size: 1.6rem;
    padding-bottom: 0.8rem;

}

.contenido-subpaginas dt {
    padding-bottom: 0.8rem;

}

.cont-valores {
    margin-bottom: 5rem;
}

.cont-texto-valores {
    padding: 0 0 0 1.7rem;
}

#historia p,
#valores p,
#autoridades p,
#comites p,
#ubicacion p {
    text-align: justify;
    font-size: 1.6rem;
}

.cont-destacados ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    align-items: start;
}

.cont-texto-destacados ul li {
    min-width: 100%;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1rem 0;
}

.cont-texto-destacados ul li span {
    color: #005cbf;
    font-weight: 700;
    font-size: 1.7rem;
    padding: 1rem 0;
}

#valores ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    align-items: start;
}

#valores ul li {
    text-align: center;
    min-width: 100%;
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
    padding: 1rem 0;
    border-radius: .5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 486px) {
    #valores ul li {
        min-width: 30rem;
    }

}

.contenedor-consejo,
.contenedor-direccion-med,
.contenedor-direccion-adm {
    margin-left: 3rem;
    margin-bottom: 5rem;
}


.contenedor-cuentas {
    margin-left: 2rem;
}

.contenedor-jurado {
    margin-left: 2rem;
}

.contenedor-direccion-med p,
.contenedor-direccion-adm p {
    text-transform: uppercase;
    font-weight: bold;
}


/* Nuestros Servicios */

#internacion p,
#cirugia p,
#guardia p,
#uti p,
#enfermeria p {
    text-align: justify;
    font-size: 1.6rem;
}

.texto-servicios {
    margin-top: 1.5rem;
}

.texto-servicios p {
    font-size: 1.6rem;
}

.texto-servicios ul {
    font-size: 1.6rem;
}

#ubicacion h5 {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    color: #2b7c9c;
    padding: 0.4rem 0 0.4rem 1rem;
    border-left: 0.4rem solid #3496bc;
}

.acordeones h4 {
    padding-bottom: 0;
    border: none;
    text-decoration: none;
}

.acordeones button {
    font-size: 1.6rem;
    text-decoration: none;
}

.acordeones button:hover,
.acordeones button:focus {
    text-decoration: none;
}

.medicos-especialidad p {
    margin-left: 1rem;
    margin-bottom: 0;
    color: rgb(80, 80, 80);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;

}

.medicos-especialidad p span {
    font-weight: 700;

}

.card-header {
    border-bottom: none;
}

.button-estudios {
    margin-top: 2rem;
    padding: 2rem;
    font-size: 2rem;
    margin-left: 12rem;
}


/* === PLAN DE SALUD / NOVEDADES === */

.intro-plan {
    text-align: justify;
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
}

/* Grid de cards del Plan de Salud */
.cards-plan {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

@media (min-width: 576px) {
    .cards-plan {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cards-plan {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cards-plan--mini {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .cards-plan--mini {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Dos columnas (Misión / Visión) */
.cards-plan--duo {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .cards-plan--duo {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Una columna, cards a lo ancho (contenido con mucho texto) */
.cards-plan--stack {
    grid-template-columns: 1fr;
}

.card-plan {
    background-color: #fff;
    border: 1px solid #e2e8ea;
    border-radius: 0.6rem;
    padding: 2rem 1.8rem;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-plan:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.12);
}

.card-plan .icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    background-color: #d9e6ea;
    color: #2b7c9c;
    font-size: 1.9rem;
    margin-bottom: 1.3rem;
}

.card-plan h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2b7c9c;
    border: none;
    padding: 0;
    margin: 0 0 0.7rem;
}

.card-plan p {
    font-size: 1.4rem;
    color: #555;
    text-align: left;
    margin-bottom: 0;
}

.card-plan p + p {
    margin-top: 1rem;
}

/* Responsable destacado dentro de una card (comites) */
.card-plan .card-responsable {
    color: #2b7c9c;
    font-weight: 700;
    font-size: 1.45rem;
}

/* Encabezado de card en horizontal: icono + titulo grande a la derecha */
.card-plan-header {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

.card-plan-header .icono {
    flex-shrink: 0;
    margin-bottom: 0;
}

.contenido-subpaginas .card-plan-header h4 {
    margin: 0;
    font-size: 2rem;
    border: none;
    padding: 0;
}

/* Variante compacta: solo icono + titulo, centrada (especialidades) */
.cards-plan--mini .card-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 1rem;
}

.cards-plan--mini .card-plan h4 {
    margin-bottom: 0;
}

/* Card destacada de contacto / llamada a la accion */
.card-plan--cta {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    background-color: #eef4f6;
    border-color: #cfe0e6;
}

.card-plan--cta .icono {
    flex-shrink: 0;
    margin-bottom: 0;
    background-color: #2b7c9c;
    color: #fff;
}

.card-plan--cta:hover {
    transform: none;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.06);
}

.intro-novedades {
    font-size: 1.6rem;
    text-align: justify;
    margin-bottom: 3rem;
}

/* Pagina Novedades (novedades.php) */
.cont-novedades {
    width: 90%;
    max-width: 85rem;
    margin: 3.5rem auto 8rem;
}

.novedades-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.novedad-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e2e8ea;
    border-radius: 0.7rem;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.9rem rgba(0, 0, 0, 0.07);
}

.novedad-card-img {
    height: 20rem;
    overflow: hidden;
}

.novedad-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novedad-card-img picture {
    display: block;
    height: 100%;
}

.novedad-card-body {
    padding: 2rem 2.2rem;
    min-width: 0;
}

@media (min-width: 768px) {
    .novedad-card {
        flex-direction: row;
        align-items: stretch;
    }

    .novedad-card-img {
        flex-shrink: 0;
        width: 30%;
        max-width: 28rem;
        height: auto;
    }

    .novedad-card-body {
        flex: 1 1 auto;
    }
}

.novedad-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.novedad-meta .novedad-fecha {
    margin-bottom: 0;
}

.novedad-badge {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: #fff;
    background-color: #2b7c9c;
    padding: 0.35rem 1.1rem;
    border-radius: 0.4rem;
    white-space: nowrap;
}

.badge-plan {
    background-color: #1f5f74;
}

.badge-consultorios {
    background-color: #3496bc;
}

.badge-institucional {
    background-color: #5e6b73;
}

.badge-covid {
    background-color: #c0562f;
}

.badge-imagenes {
    background-color: #6a4c93;
}

.novedad-card .novedad-titulo {
    margin-bottom: 1.1rem;
}

.novedad-card .novedad-cuerpo p:last-child {
    margin-bottom: 0;
}

.novedad-cuerpo ol,
.novedad-cuerpo ul {
    font-size: 1.6rem;
    line-height: 1.6;
    text-align: left;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.novedad-cuerpo li {
    margin-bottom: 0.6rem;
}

.lista-novedades {
    display: flex;
    flex-direction: column;
}

.novedad {
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgb(192, 188, 188);
}

.novedad:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.novedad-fecha {
    font-size: 1.3rem;
    color: #3496bc;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 0.6rem;
}

.novedad-fecha span {
    margin-right: 0.4rem;
}

.novedad-titulo {
    color: #2b7c9c;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.novedad-subtitulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3496bc;
    margin-bottom: 1.5rem;
}

.novedad-media {
    margin-bottom: 1.5rem;
}

.novedad-media img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 0.4rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
}

.novedad-cuerpo p {
    font-size: 1.6rem;
    text-align: justify;
    margin-bottom: 1rem;
}


/* === AUTORIDADES (TABLA) === */

/* Contenedor que agrupa cada titulo principal con su contenido */
.bloque-autoridades {
    background-color: #fff;
    border: 1px solid #e2e8ea;
    border-radius: 0.6rem;
    padding: 2rem 2rem 0.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.06);
}

/* Titulo principal (nivel 1) */
.contenido-subpaginas h3.titulo-seccion {
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: #2b7c9c;
    line-height: 1.3;
    padding: 0.2rem 0 0.9rem 1.1rem;
    border-left: 0.5rem solid #2b7c9c;
    border-bottom: 2px solid #e2e8ea;
    margin-bottom: 2.2rem;
}

/* Sub-seccion anidada dentro de un bloque principal */
.subbloque-autoridades {
    margin: 0 0 1.5rem 1.4rem;
    padding-left: 1.4rem;
    border-left: 2px solid #cdd8dc;
}

/* Sub-titulo (nivel 2) */
.contenido-subpaginas h4.subtitulo-seccion {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    color: #3496bc;
    border: none;
    padding-bottom: 0;
    margin-bottom: 1.2rem;
}

.tabla-autoridades {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.8rem;
    font-size: 1.5rem;
    background-color: #fff;
    box-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    overflow: hidden;
}

.tabla-autoridades thead th {
    background-color: #d9e6ea;
    color: #1f5f74;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04rem;
    font-size: 1.35rem;
    text-align: left;
    padding: 1rem 1.4rem;
    width: 50%;
    border-bottom: 2px solid #bcd0d7;
}

.tabla-autoridades td {
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid #e7ebed;
    vertical-align: top;
    line-height: 1.5;
}

.tabla-autoridades tbody tr:last-child td {
    border-bottom: none;
}

.tabla-autoridades tbody tr:nth-child(even) {
    background-color: #f4f7f8;
}

.tabla-autoridades tbody tr:hover {
    background-color: #e8eef1;
}

.tabla-autoridades td.cargo {
    font-weight: 700;
    color: #2b7c9c;
    width: 40%;
}

/* Separacion entre nombres cuando un cargo tiene mas de un integrante */
.tabla-autoridades td .nombre {
    display: block;
}

.tabla-autoridades td .nombre + .nombre {
    margin-top: 0.8rem;
}


/* === HISTORIA (TIMELINE DE HITOS) === */

.timeline {
    list-style: none;
    position: relative;
    margin: 1rem 0 0;
    padding: 0;
}

/* Linea vertical del timeline */
.timeline::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    background-color: #cfe0e6;
}

.timeline-item {
    position: relative;
    padding-left: 3.4rem;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Punto sobre la linea */
.timeline-marker {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background-color: #2b7c9c;
    border: 0.35rem solid #d9e6ea;
    box-sizing: border-box;
}

.timeline-card {
    background-color: #fff;
    border: 1px solid #e2e8ea;
    border-radius: 0.6rem;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.06);
}

.timeline-fecha {
    display: inline-block;
    background-color: #2b7c9c;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.contenido-subpaginas .timeline-card h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2b7c9c;
    border: none;
    padding: 0;
    margin: 0 0 0.8rem;
}

.timeline-card p {
    font-size: 1.5rem;
    color: #444;
    text-align: justify;
    margin-bottom: 0;
}


/* === UBICACION (MINI CARDS DE DIRECCIONES) === */

#direcciones-ubicacion .card-direccion {
    background-color: #fff;
    border: 1px solid #e2e8ea;
    border-radius: 0.5rem;
    padding: 1.3rem 1.6rem;
    box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.06);
    margin-bottom: 1.3rem;
    transition: box-shadow 0.15s ease;
}

#direcciones-ubicacion .card-direccion:last-child {
    margin-bottom: 0;
}

#direcciones-ubicacion .card-direccion:hover {
    box-shadow: 0 0.4rem 1.1rem rgba(0, 0, 0, 0.1);
}

#ubicacion #direcciones-ubicacion .card-direccion h5 {
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    color: #2b7c9c;
    border: none;
    padding: 0;
    margin: 0 0 0.9rem;
}

#ubicacion #direcciones-ubicacion .card-direccion h5 .fas {
    margin-right: 0.5rem;
    color: #3496bc;
}

#ubicacion #direcciones-ubicacion .card-direccion .dato {
    display: flex;
    align-items: baseline;
    font-size: 1.45rem;
    color: #444;
    margin: 0 0 0.4rem;
    text-align: left;
}

#ubicacion #direcciones-ubicacion .card-direccion .dato:last-child {
    margin-bottom: 0;
}

#direcciones-ubicacion .card-direccion .dato .fas {
    width: 1.4rem;
    margin-right: 0.6rem;
    font-size: 1.1rem;
    color: #3496bc;
    flex-shrink: 0;
}


/* --- 90.º aniversario: sello junto al logo --- */
.contenedor-brand{display:flex;align-items:center}
#menuPrincipal .sello-90{position:relative;display:flex;flex-direction:column;align-items:center;gap:.3rem;margin-left:1.6rem;padding-left:1.6rem;color:#9d0119;text-decoration:none}
#menuPrincipal .sello-90::before{content:"";position:absolute;left:0;top:18%;bottom:18%;width:2px;background:#e3d3b0}
.sello-90:hover{text-decoration:none;color:#9d0119}
.sello-90-icono{height:3.6rem;width:auto;overflow:visible}
.sello-90-fechas{font-family:'PT Sans',sans-serif;font-size:.95rem;line-height:1.35;letter-spacing:.12em;color:#ba9138;font-weight:700;white-space:nowrap;text-align:center}
.sello-90-fechas b{display:block;color:#9d0119;letter-spacing:.18em;font-size:.85rem}
@media (prefers-reduced-motion:no-preference){
 .s90-rojo{animation:s90-entra .7s ease-out both}
 .s90-dorado{animation:s90-traza 1.1s .5s cubic-bezier(.4,0,.2,1) both}
 .sello-90-fechas{animation:s90-entra .6s 1.2s ease-out both}
 .sello-90:hover .s90-dorado{animation:s90-traza .9s cubic-bezier(.4,0,.2,1) both}
}
@keyframes s90-entra{from{opacity:0;transform:translateY(.4rem)}to{opacity:1;transform:none}}
@keyframes s90-traza{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@media (max-width:767px){
 #menuPrincipal .contenedor-brand{flex:1 1 0;min-width:0;align-items:center}
 #menuPrincipal .contenedor-brand>a:first-child{flex:1 1 auto;min-width:0}
 #menuPrincipal .brand-logo{width:100%;height:auto;max-height:7rem}
 #menuPrincipal .sello-90{flex:none;gap:.15rem;margin:0 .8rem;padding-left:.8rem}
 .sello-90-icono{height:3.2rem}
 .sello-90-fechas{display:none}
}
