/*
Theme Name: Clinica Leticia
Theme URI: http://clinicaletica.com/
Description: CLinica en leticia
Author: Pamela LG 
Author URI: http://www.racoagencia.com
Version: 1.0
*/

/*----------------GENERAL----------------*/
@font-face {
    font-family: 'Cent-Got';
    src: url(../fonts/Cent-Got.ttf) format('truetype');
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    padding-top: 80px;
    /* Ajuste para la altura del encabezado fijo */
}

img {
    border: none;
}

/*--Wraps--*/
.wrap {
    width: 87%;
    margin: 0 auto;
}

.wrap-100 {
    width: 100%;
    margin: 0;
    padding: 0;
}

.wrap-beige {
    width: 100%;
    margin: 0 auto;
    background-color: #e8e8e8;
    padding: 2.5em 0 3em 0;
}

.wrap-60 {
    width: 60%;
    margin: 0 auto;
    padding-top: 1em;
}

.wrap-70 {
    width: 70%;
    margin: 0 auto;
    padding-top: 1em;
}

.wrap-80 {
    width: 80%;
    margin: 0 auto;
    padding-top: 2em;
    text-align: center;
}

.wrap-90 {
    width: 90%;
    margin: 0 auto;
}

.wrap-90-1 {
    width: 95%;
}

.clear {
    clear: both;
}

/* clear float */

/*--text--*/
strong {
    font-weight: bold;
}

h1 {
    font-family: 'Cent-Got', sans-serif;
    font-size: 1.8em;
    margin: 0;
    font-weight: bold;
}

h2 {
    color: #086BA8;
    font-size: 2.5em;
    font-family: 'Cent-Got', sans-serif;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(8, 107, 168, 0.1);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

h3 {
    color: #086BA8;
    font-family: 'Cent-Got', sans-serif;
    font-weight: bold;
    font-size: 1.8em;
    text-shadow: 0 2px 4px rgba(8, 107, 168, 0.08);
    letter-spacing: 0.3px;
}

p {
    color: #555;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.75em;
    font-size: 1.05em;
    text-align: justify;
    letter-spacing: 0.02em;
    font-weight: normal;
}

p strong {
    color: #666;
}

a {
    text-decoration: none;
    color: #333333;
}

.titulo h2 {
    padding: 3.5em 0 1em 0;
}

img {
    max-width: 100%;
}

.left p {
    text-align: left !important;
    padding-left: 3em;
}

.left {
    text-align: left;
}

.center {
    text-align: center;
    margin: 0;
    padding: 0;
}

.top {
    margin-top: 2.4em;
}

.white {
    color: #fff;
}

.blue {
    color: #086BA8;
    font-weight: 600;
}

/* Animaciones adicionales */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Efecto para el slider principal */
.slider {
    box-shadow: 0 10px 40px rgba(8, 107, 168, 0.15);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    position: relative;
}

.slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0A7EC1 0%, #086BA8 50%, #0A7EC1 100%);
    z-index: 100;
}

.margen {
    padding: 1em 0 1em 0;
}

.margen-l {
    padding: 1em 1em 1em 1em;
}

.m-left {
    padding-right: 1.5em;
}

.gray {
    background: #DFE5E7;
}

.center,
.center p {
    text-align: center;
}

.uper {
    text-transform: uppercase;
}

/*--Grids EU--*/
.col_1_of_grids {
    display: block;
    float: left;
    line-height: 1.5em;
}

/*50 EU*/
.span_1_of_2 {
    width: 50%;
}

/*33*/
.span_1_of_3 {
    width: 33.33%;
}

/*25*/
.span_1_of_4 {
    width: 25%;
}

/*66*/
.span_1_of_6 {
    width: 16.6%;
    height: 9em;
    overflow: hidden;
}

/*35*/
.span_1_of_35 {
    width: 35%;
}

/*66*/
.span_1_of_65 {
    width: 65%;
}

/*35 EU*/
.span_1_of_30 {
    width: 30%;
}

/*66 EU*/
.span_1_of_70 {
    width: 70%;
}

/*66*/
.span_1_of_40 {
    width: 40%;
}

.span_1_of_60 {
    width: 60%;
}

/*botones*/
.boton-blue {
    box-shadow: 0 4px 12px rgba(8, 107, 168, 0.3);
    position: relative;
    font-size: 1.1em;
    display: inline-block;
    padding: 0.8em 2.2em;
    color: #fff;
    text-shadow: none;
    border-radius: 10px;
    letter-spacing: 0.3px;
    text-decoration: none;
    margin-bottom: 0.5em;
    background: linear-gradient(135deg, #0A7EC1 0%, #086BA8 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border: 2px solid transparent;
}

.boton-blue:hover {
    background: linear-gradient(135deg, #086BA8 0%, #064b73 100%);
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(8, 107, 168, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.boton-gris:hover p {
    background: #999;
    color: #fff;
}

.boton-gris p {
    margin: 0;
    text-align: center;
    font-size: 1em;
}

.boton-gris:hover {
    background: #999;
    cursor: pointer;
}

.boton-white {
    box-shadow: none;
    position: relative;
    font-size: 1.1em;
    display: inline-block;
    padding: 0.7em 2em 0.7em 2em;
    color: #fff;
    text-shadow: none;
    border: 2px solid #fff;
    letter-spacing: 0;
    text-decoration: none;
    margin-top: 1.8em;
    transition: background 0.3s ease, color 0.3s ease;
    /* Transición suave */
}

.boton-white:hover p {
    background: #fff;
    color: #086BA8;
}

.boton-white p {
    margin: 0;
    text-align: center;
    font-size: 1em;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.06em;
}

.boton-white:hover {
    background: #fff;
    color: #086BA8;
    /* Cambiar el color del texto a azul */
}

/*---Lineas--*/
.white-line {
    border-top: 1px solid #fff;
    width: 100%;
    margin: 1.5em 0 1.5em 0;
}

.blue-line {
    border-top: 3px solid #086BA8;
    width: 100%;
    margin: 2em 0 0em 0;
}

.gray-line {
    border-top: 1px solid #999;
    width: 100%;
    margin: 2em 0 1em 0;
}

/*----------------HEADER----------------*/

.top-blue-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    /* Altura mejorada */
    background: linear-gradient(90deg, #0A7EC1 0%, #0B5A8A 50%, #086BA8 100%);
    z-index: 10001;
    /* Mayor que el header */
    box-shadow: 0 2px 8px rgba(8, 107, 168, 0.3);
}

header {
    width: 100%;
    z-index: 9999;
    position: fixed;
    top: 6px;
    /* Posicionado justo debajo de la barra azul superior */
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    box-shadow: 0 3px 15px rgba(8, 107, 168, 0.15);
    /* Sombra azul sutil */
    border-bottom: 1px solid rgba(8, 107, 168, 0.1);
}

header.smaller {
    height: 80px;
    /* Altura más pequeña al hacer scroll */
    padding-top: 5px;
    /* Ajuste del padding */
    background: rgba(255, 255, 255, 0.95);
    /* Fondo más sólido */
    backdrop-filter: blur(20px);
    /* Efecto de desenfoque más pronunciado */
    -webkit-backdrop-filter: blur(20px);
    /* Safari */
    box-shadow: 0 5px 20px rgba(8, 107, 168, 0.25);
    /* Sombra azul más pronunciada */
}

header .wrap {
    display: flex;
    align-items: center;
    width: 87%;
    margin: 0 auto;
    justify-content: space-between;
    flex-wrap: nowrap;
    /* Evitar que los elementos se envuelvan */
}

header .logo {
    width: auto;
    display: block;
    padding-top: 0;
    flex-shrink: 0;
    /* Asegurarse de que el logo no se encoja */
}

header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: auto;
}

header .logo img {
    max-height: 75px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(8, 107, 168, 0.2));
}

header .logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 10px rgba(8, 107, 168, 0.3));
}

header h1 {
    font-size: 1.9em;
    background: linear-gradient(135deg, #0A7EC1 0%, #086BA8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.1;
    flex-shrink: 1;
    word-break: break-word;
    white-space: normal;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(8, 107, 168, 0.1);
}

.menu {
    width: auto;
    display: flex;
    font-family: 'Cent-Got';
    font-size: 1.0em;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
}

/*--Menu-prin--*/
.menu-principal {
    /* background-color: #C9E2ED; */
    /* Color de fondo para sombrear el menú (eliminado) */
}

.menu-principal>ul {
    list-style-type: none;
    line-height: 2em;
    padding: 0;
    margin: 0;
}

.menu-principal>ul>li {
    display: inline-block;
    position: relative;
}

.menu-principal>ul>li>a {
    text-decoration: none;
    color: #086BA8;
    padding: 0.8em 1em;
    /* Mejor padding */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border-radius: 8px;
    position: relative;
    font-weight: 600;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.4em;
    /* Espacio entre icono y texto */
    font-family: 'Cent-Got', sans-serif;
    justify-content: center;
}

.menu-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.menu-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
    stroke: currentColor;
    stroke-width: 2.3;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.menu-text {
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.menu-principal>ul>li>a:hover {
    text-decoration: none;
    color: #086BA8;
    transform: translateY(-2px);
}

.menu-principal>ul>li>a:hover .menu-icon {
    transform: scale(1.1);
}

.menu-principal>ul>li.active a {
    color: #086BA8;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid #086BA8;
}

.menu-principal>ul>li>.submenu {
    display: none;
}

.menu-principal>ul>li:hover>.submenu {
    display: inline-block;
}

/* Estilos para el nuevo menú desplegable */
.menu-principal>ul>li.dropdown {
    position: relative;
}

.menu-principal>ul>li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(8, 107, 168, 0.25);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    margin-top: 5px;
    border-radius: 12px;
    border: 1px solid rgba(8, 107, 168, 0.15);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-principal>ul>li.dropdown .dropdown-menu li {
    border-bottom: 1px solid rgba(8, 107, 168, 0.08);
}

.menu-principal>ul>li.dropdown .dropdown-menu li:last-child {
    border-bottom: none;
}

.menu-principal>ul>li.dropdown .dropdown-menu li a {
    color: #086BA8;
    padding: 14px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-principal>ul>li.dropdown .dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #0A7EC1 0%, #086BA8 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-principal>ul>li.dropdown .dropdown-menu li a:hover::before {
    transform: scaleY(1);
}

.menu-principal>ul>li.dropdown .dropdown-menu li a:hover {
    background: linear-gradient(90deg, rgba(10, 126, 193, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    color: #064b73;
    padding-left: 24px;
}

.menu-principal>ul>li.dropdown:hover>a {
    background: none;
    color: #086BA8;
}

.menu-principal>ul>li.dropdown:hover .dropdown-menu {
    display: block;
}

/* Media queries para responsividad del menú desplegable */
@media (max-width: 768px) {
    .menu-principal>ul>li.dropdown .dropdown-menu {
        position: static;
        /* Cambiar a estático para que fluya en el layout */
        width: 100%;
        box-shadow: none;
        border-radius: 8px;
        background: linear-gradient(180deg, #f8fbfd 0%, #e3f2fd 100%);
        margin-top: 8px;
    }

    .menu-principal>ul>li.dropdown .dropdown-menu li a {
        padding-left: 2.8em;
        /* Sangría para subelementos en móvil */
    }

    .menu-principal>ul>li.dropdown:hover .dropdown-menu {
        display: block;
        /* Asegurarse de que se despliegue también al pasar el ratón */
    }

    /* Ocultar dropdown por defecto en móvil y mostrarlo con JS si es necesario */
    .menu-principal>ul>li.dropdown .dropdown-menu {
        max-height: 0;
        /* Ocultar inicialmente para la animación */
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        /* Transición para el despliegue */
    }

    .menu-principal>ul>li.dropdown.active>a {
        background: none;
        color: #086BA8;
    }

    .menu-principal>ul>li.dropdown.active .dropdown-menu {
        /* Clase "active" manejada con JS */
        max-height: 600px;
        /* Suficiente para mostrar todos los elementos */
        animation: fadeInUp 0.4s ease;
    }
}

.submenu {
    position: absolute;
    right: 0;
    width: 10em;
    background: #000;
    text-align: left;
    padding-right: 1em;
}

.submenu>ul {
    list-style-type: none;
    line-height: 2em;
    padding: 1em 1em 0.5em 1em;
}

.submenu>ul>li {
    padding-right: 1em;
}

.submenu>ul>li>a {
    color: #fff;
    font-size: 1em;
}

.submenu>ul>li>a:hover {
    text-decoration: underline;
}

.rmenu {
    display: none;
    /* Ocultar por defecto para escritorio */
    position: fixed;
    top: 6px;
    /* Posicionado debajo de la barra azul superior */
    right: 15px;
    z-index: 10002;
    /* Para que esté encima del header */
    padding: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(8, 107, 168, 0.2);
    border: 2px solid rgba(10, 126, 193, 0.15);
}

.rmenu .line1 {
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
}

.rmenu .line1:hover {
    transform: scale(1.05);
}

.rmenu .line-1 {
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #0A7EC1 0%, #086BA8 100%);
    margin: 6px 0;
    transition: all 0.4s ease;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(8, 107, 168, 0.2);
}

.rsubmenu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.rsubmenu li a {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 14px 18px;
    text-decoration: none;
    color: #086BA8;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 0;
    position: relative;
    overflow: hidden;
}

.rsubmenu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #0A7EC1 0%, #086BA8 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.rsubmenu li a .menu-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.rsubmenu li a .menu-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.3;
}

.rsubmenu li a:hover {
    background: linear-gradient(90deg, rgba(10, 126, 193, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    color: #064b73;
    padding-left: 24px;
}

.rsubmenu li a:hover::before {
    transform: scaleY(1);
}

.rsubmenu li a:hover .menu-icon {
    transform: scale(1.1);
}

/*-----CONTENIDO------*/

/* ==================== ESTILOS DEL FOOTER MEJORADO ==================== */
footer {
    background: linear-gradient(135deg, #086BA8 0%, #0B5A8A 50%, #064b73 100%);
    color: #fff;
    box-shadow: 0 -5px 30px rgba(8, 107, 168, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0A7EC1 0%, #086BA8 50%, #0A7EC1 100%);
}

.footer-content {
    padding: 2em 0 1.5em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    margin-bottom: 1.5em;
}

/* Columnas de Enlaces */
.footer-title {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 0.8em;
    color: #fff;
    position: relative;
    padding-bottom: 0.4em;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #0A7EC1;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5em;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 12px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 20px;
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

/* Columna de Contacto */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.7em;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8em;
    line-height: 1.5;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    stroke: #0A7EC1;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact span {
    flex: 1;
}

.footer-contact strong {
    color: #fff;
}

/* Horarios */
.footer-hours {
    margin-top: 1.5em;
    padding: 1.2em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #0A7EC1;
}

.footer-hours h5 {
    font-size: 0.95em;
    font-weight: 700;
    margin: 0 0 0.8em 0;
    color: #fff;
}

.footer-hours p {
    margin: 0.4em 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Sección de Entidades */
.footer-entities {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-entities .footer-title {
    text-align: center;
    margin: 0 auto 1em;
    font-size: 0.95em;
}

.footer-entities .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1) contrast(1);
    opacity: 0.9;
}

.footer-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Footer Bottom - Copyright */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1em 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.75);
}

.footer-legal {
    margin-top: 0.5em !important;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 8px;
}

.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8em;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .footer-content {
        padding: 1.5em 0 1em;
    }

    .footer-hours {
        margin-top: 0.8em;
    }

    .footer-entities {
        margin-top: 1.2em;
        padding-top: 1.2em;
    }

    .footer-logos-wrapper {
        gap: 20px;
    }

    .footer-logo {
        max-height: 45px;
    }

    .footer-bottom {
        padding: 1em 0;
    }

    .footer-legal a {
        display: block;
        margin: 0.3em 0;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 0.95em;
    }

    .footer-links a {
        font-size: 0.8em;
    }

    .footer-contact li {
        font-size: 0.75em;
    }

    .footer-logo {
        max-height: 40px;
    }

    .footer-bottom p {
        font-size: 0.75em;
    }
}

/*----------------SECCIONES DE CONTENIDO (INDEX)----------------*/

/* Aparición suave al hacer scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* Descripción de servicios arriba del bloque de servicios */
/* Primera sección: Servicios Integrales (con imagen) */
.services-description {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(8, 107, 168, 0.15);
    padding: 2.8em;
    display: flex;
    flex-direction: column;
    /* Asegura que el título vaya arriba */
    gap: 1.8em;
    /* Espacio entre título y contenido flex */
    width: 100%;
    margin: 0 auto 3em auto;
    max-width: 1200px;
    transition: all 0.4s ease;
    border: 2px solid rgba(10, 126, 193, 0.1);
    position: relative;
    overflow: hidden;
}

.services-description::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 126, 193, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.services-description:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(8, 107, 168, 0.25);
    border-color: rgba(10, 126, 193, 0.3);
}

.services-description .wrap.content-flex {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    /* Permite que los elementos se envuelvan en pantallas pequeñas */
    gap: 2.5em;
}

.services-description .text-content {
    flex: 1 1 55%;
    /* El texto ocupa más espacio */
    min-width: 300px;
}

.services-description .image-content {
    flex-basis: 40%;
    min-width: 250px;
    max-width: 280px;
    /* Reducir un poco más para que sea más proporcional al texto */
    text-align: center;
}

.services-description .image-content img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(8, 107, 168, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 3px solid rgba(10, 126, 193, 0.1);
}

.services-description .image-content img:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 15px 40px rgba(8, 107, 168, 0.35);
    border-color: rgba(10, 126, 193, 0.3);
}

.services-description h2 {
    font-size: 2.3em;
    color: #086BA8;
    margin-bottom: 0.7em;
    font-weight: bold;
    line-height: 1.3;
}

.services-description p {
    font-size: 1.15em;
    line-height: 1.8;
    color: #444;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: justify;
}

.services-description p.section-intro {
    font-size: 1.2em;
    font-weight: 500;
    color: #086BA8;
    line-height: 1.7;
    margin-bottom: 1.5em;
    text-align: justify;
}

/* Visión / Compromiso */
.vision-commitment {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    width: 100%;
    margin: 0 auto 3em auto;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(8, 107, 168, 0.15);
    padding: 2.8em;
    max-width: 1200px;
    transition: all 0.4s ease;
    border: 2px solid rgba(10, 126, 193, 0.1);
    position: relative;
    overflow: hidden;
}

.vision-commitment::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 126, 193, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.vision-commitment:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(8, 107, 168, 0.25);
    border-color: rgba(10, 126, 193, 0.3);
}

.vision-commitment h2 {
    font-size: 2.3em;
    margin-bottom: 0.8em;
}

.vision-commitment p {
    font-size: 1.15em;
    line-height: 1.8;
    text-align: center;
    max-width: 85%;
    margin: 0 auto;
}

/* Dos columnas: Preservación / Sanación */
.two-column-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(8, 107, 168, 0.15);
    padding: 2.8em;
    display: flex;
    justify-content: center;
    gap: 2.5em;
    width: 100%;
    margin: 0 auto 3em auto;
    max-width: 1200px;
    transition: all 0.4s ease;
    border: 2px solid rgba(10, 126, 193, 0.1);
    position: relative;
    overflow: hidden;
}

.two-column-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 126, 193, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.two-column-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(8, 107, 168, 0.25);
    border-color: rgba(10, 126, 193, 0.3);
}

.two-column-section .left-column,
.two-column-section .right-column {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(8, 107, 168, 0.12);
    padding: 2em;
    transition: all 0.35s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-basis: 45%;
    max-width: 45%;
    border: 1px solid rgba(10, 126, 193, 0.1);
    position: relative;
}

.two-column-section .left-column::after,
.two-column-section .right-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0A7EC1 0%, #086BA8 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.two-column-section .left-column:hover::after,
.two-column-section .right-column:hover::after {
    transform: scaleX(1);
}

.two-column-section .left-column:hover,
.two-column-section .right-column:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(8, 107, 168, 0.2);
    border-color: rgba(10, 126, 193, 0.25);
}

#noticias-column .left-column {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    margin: 0 auto;
    /* Centrar la columna si es necesario */
}

/* Estilos para las tarjetas de noticias */
.news-card {
    background-color: #fff;
    padding: 1.8em;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 2em;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.news-card img {
    border-radius: 12px;
    margin-bottom: 1em;
    width: 100%;
    height: 200px;
    /* Altura fija para las imágenes */
    object-fit: cover;
    /* Para que las imágenes cubran el espacio sin distorsionarse */
}

.news-card h4 {
    color: #086BA8;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.toggle-news-content {
    background-color: #086BA8;
    color: #fff;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1em;
    transition: background-color 0.3s ease;
}

.toggle-news-content:hover {
    background-color: #06548a;
}

/* Estilos para la sección de agradecimientos */
#agradecimientos-section h2 {
    margin-bottom: 1em;
    /* Espacio debajo del título principal */
}

/* Estilos para la sección de agradecimientos */
.testimonial-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 2em;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para la sección de agradecimientos */
.testimonial-card {
    background-color: #fff;
    padding: 1.8em;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    flex: 1 1 calc(33% - 2em);
    /* Para que ocupe un tercio del ancho menos el gap */
    min-width: 280px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Estilos para la sección de agradecimientos */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Estilos para la sección de agradecimientos */
.testimonial-text {
    flex-grow: 1;
    /* Permite que el texto ocupe el espacio disponible */
}

.testimonial-author {
    flex-grow: 1;
    /* Permite que el texto ocupe el espacio disponible */
}

/* Estilos para la sección de contáctenos */
#contactenos-main {
    padding-bottom: 3em;
}

/* Estilos para la sección de contáctenos */
.contact-section-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5em;
    margin-top: 2.5em;
    background-color: #C9E2ED;
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    padding: 2em;
    /* Ajuste de padding */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para la sección de contáctenos */
.contact-section-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Estilos para la sección de contáctenos */
.contact-info-column {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 1.8em;
    /* Ajuste de padding */
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Estilos para la sección de contáctenos */
.contact-info-column h3 {
    font-size: 1.5em;
    /* Ajuste de font-size */
    margin-bottom: 1em;
    color: #086BA8;
}

/* Estilos para la sección de contáctenos */
.contact-details {
    display: flex;
    align-items: center;
    /* Asegura alineación vertical */
    gap: 0.4em;
    /* Ajuste de gap */
    margin-bottom: 1em;
}

/* Estilos para la sección de contáctenos */
.contact-details .icon {
    width: 17px;
    /* Ajuste de tamaño para igualar iconos de menú */
    height: 17px;
    /* Ajuste de tamaño para igualar iconos de menú */
    flex-shrink: 0;
    color: #086BA8;
}

/* Estilos para la sección de contáctenos */
.contact-details .icon svg {
    vertical-align: middle;
    /* Alineación vertical */
}

/* Estilos para la sección de contáctenos */
.contact-details p {
    margin: 0;
    font-size: 0.95em;
    /* Ajuste de font-size */
    color: #555;
    line-height: 1.5;
}

/* Estilos para la sección de contáctenos */
.icon-text,
.icon-text-link {
    font-size: 0.95em;
    /* Tamaño de fuente para el texto al lado del icono */
    color: #555;
    line-height: 1.5;
}

/* Estilos para la sección de contáctenos */
.contact-info-column>p {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Estilos para la sección de contáctenos */
.contact-details a {
    color: #086BA8;
    text-decoration: none;
}

/* Estilos para la sección de contáctenos */
.contact-details a:hover {
    text-decoration: underline;
}

/* Estilos para la sección de contáctenos */
.contact-form .form-field {
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

/* Estilos para la sección de contáctenos */
.contact-form label {
    font-size: 0.95em;
    font-weight: 600;
    color: #086BA8;
}

/* Estilos para la sección de contáctenos */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    color: #333;
    background-color: #fcfcfc;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para la sección de contáctenos */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #086BA8;
    box-shadow: 0 0 0 3px rgba(8, 107, 168, 0.1);
}

/* Estilos para la sección de contáctenos */
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estilos para la sección de contáctenos */
.contact-form .boton-blue {
    margin-top: 1.5em;
    align-self: flex-start;
}

/* Estilos para la sección de contáctenos */
.map-container {
    width: 100%;
    max-width: 1200px;
    height: 450px;
    margin: 2em auto;
    /* Ajuste de margin-top */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para la sección de contáctenos */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.two-column-section h3 {
    font-size: 1.7em;
    color: #086BA8;
    margin-bottom: 0.7em;
}

.two-column-section p {
    font-size: 1.05em;
    line-height: 1.75;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1.5em;
    text-align: justify;
}

.two-column-section img {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    margin-top: auto;
    display: block;
    box-shadow: 0 6px 20px rgba(8, 107, 168, 0.15);
    border: 2px solid rgba(10, 126, 193, 0.1);
}

.two-column-section img:hover {
    transform: scale(1.1) rotate(-1deg);
    box-shadow: 0 12px 35px rgba(8, 107, 168, 0.3);
    border-color: rgba(10, 126, 193, 0.25);
}

/* Bloque de servicios (tarjetas) */
.servicios-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    padding: 3em 2em;
    border-radius: 24px;
    overflow: hidden;
    max-width: 1400px;
    /* Aumentado para dar más espacio */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3em;
    width: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(8, 107, 168, 0.15);
    border: 2px solid rgba(10, 126, 193, 0.1);
    position: relative;
}

.servicios-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 126, 193, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.servicios-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(8, 107, 168, 0.25);
    border-color: rgba(10, 126, 193, 0.3);
}

.servicios-container h2 {
    font-size: 2.5em;
    color: #086BA8;
    margin-bottom: 1.8em;
    text-align: center;
}

.servicios-flex-container {
    display: flex;
    flex-wrap: nowrap;
    /* No permitir que se envuelvan */
    justify-content: center;
    /* Centrar las tarjetas */
    align-items: stretch;
    /* Hacer que todas tengan la misma altura */
    gap: 1.5em;
    max-width: 1300px;
    margin: 0 auto;
}

.servicios-col {
    flex: 1 1 24%;
    /* Cada columna ocupa 24% del ancho */
    min-width: 0;
    /* Permitir que se encoja si es necesario */
    max-width: 300px;
    /* Ancho máximo por tarjeta */
    display: flex;
    /* Para que el hijo ocupe todo el alto */
}

.servicios-1 {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    padding: 2em 1.5em;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(8, 107, 168, 0.12);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribuir contenido uniformemente */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid rgba(10, 126, 193, 0.1);
    position: relative;
}

.servicios-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0A7EC1 0%, #086BA8 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.servicios-1:hover::before {
    transform: scaleX(1);
}

.servicios-1:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(8, 107, 168, 0.25);
    border-color: rgba(10, 126, 193, 0.3);
}

.servicios-1 a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.servicios-1 img.prod {
    width: 100%;
    height: 120px;
    /* Altura fija para todas las imágenes */
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 1.5em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0.8em;
    background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(8, 107, 168, 0.1);
}

.servicios-1 img.prod:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 8px 20px rgba(8, 107, 168, 0.2);
}

.servicios-1 h1 {
    font-size: 1.25em;
    color: #086BA8;
    margin: 0 0 0.8em 0;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
    min-height: 2.6em;
    /* Altura mínima para 2 líneas */
}

.servicios-1 p {
    font-size: 0.95em;
    line-height: 1.65;
    color: #555;
    text-align: center;
    /* Centrar el texto para mejor presentación */
    margin: 0;
    flex-grow: 1;
    /* Permitir que el párrafo crezca y llene el espacio */
}

/* Media query para mantener servicios en una línea en pantallas grandes */
@media (min-width: 1200px) {
    .servicios-col {
        flex: 1 1 24%;
        max-width: 320px;
        /* Más espacio en pantallas grandes */
    }

    .servicios-1 h1 {
        font-size: 1.3em;
    }

    .servicios-1 p {
        font-size: 1em;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .servicios-flex-container {
        gap: 1.2em;
    }

    .servicios-col {
        flex: 1 1 23%;
        max-width: 260px;
    }

    .servicios-1 {
        padding: 1.5em 1.2em;
    }

    .servicios-1 h1 {
        font-size: 1.15em;
    }

    .servicios-1 p {
        font-size: 0.9em;
    }

    .servicios-1 img.prod {
        height: 100px;
    }
}

/* En tablets y móviles, permitir que se envuelvan */
@media (max-width: 991px) {
    .servicios-flex-container {
        flex-wrap: wrap;
        /* Permitir envolver en pantallas pequeñas */
        justify-content: center;
    }

    .servicios-col {
        flex: 1 1 45%;
        /* Dos columnas en tablets */
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .servicios-col {
        flex: 1 1 100%;
        /* Una columna en móviles */
        max-width: 100%;
    }
}

/* Espaciador explícito entre Servicios y Aliados */
.spacer-large {
    height: 3em;
    background: transparent;
}

/* Aliados: carrusel sencillo horizontal, sin solaparse */
.aliados-section {
    background: transparent;
    padding: 0;
    margin: 3em 0 5em 0;
}

.aliados-section>.wrap {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(8, 107, 168, 0.15);
    padding: 2.8em;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s ease;
    border: 2px solid rgba(10, 126, 193, 0.1);
    position: relative;
    overflow: hidden;
}

.aliados-section>.wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 126, 193, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.aliados-section>.wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(8, 107, 168, 0.25);
    border-color: rgba(10, 126, 193, 0.3);
}

.aliados-section h2 {
    font-size: 2.3em;
    margin-bottom: 1.2em;
}

.aliados-logos {
    overflow: hidden;
}

.aliados-inner-scroll {
    display: flex;
    align-items: center;
    gap: 3em;
    animation: aliados-scroll 30s linear infinite;
}

.aliados-inner-scroll:hover {
    animation-play-state: paused;
}

.aliado-logo {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 1em;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(8, 107, 168, 0.12);
    border: 2px solid rgba(10, 126, 193, 0.1);
}

.aliado-logo:hover {
    transform: scale(1.18) translateY(-8px) rotate(2deg);
    box-shadow: 0 12px 30px rgba(8, 107, 168, 0.25);
    border-color: rgba(10, 126, 193, 0.3);
}

@keyframes aliados-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Estilos para la sección PQRS */
.pqrs-section {
    padding: 3em 0;
    background-color: transparent;
    margin-bottom: 5em;
}

.pqrs-section .wrap {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #C9E2ED;
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    padding: 2.5em;
}

.pqrs-section h2 {
    font-size: 2.3em;
    color: #086BA8;
    margin-bottom: 0.6em;
    text-align: center;
}

.pqrs-section>.wrap>p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #555;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2em auto;
}

.pqrs-form-container {
    background-color: #fff;
    padding: 2em;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.pqrs-inner-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2em;
}

.pqrs-inner-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.pqrs-inner-form .form-field.full-width {
    grid-column: 1 / -1;
}

.pqrs-form-container label {
    font-size: 0.95em;
    color: #086BA8;
    font-weight: 600;
    display: block;
}

.pqrs-form-container input[type="text"],
.pqrs-form-container input[type="email"],
.pqrs-form-container input[type="tel"],
.pqrs-form-container input[type="file"],
.pqrs-form-container select,
.pqrs-form-container textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    color: #333;
    background-color: #fcfcfc;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pqrs-form-container input:focus,
.pqrs-form-container select:focus,
.pqrs-form-container textarea:focus {
    outline: none;
    border-color: #086BA8;
    box-shadow: 0 0 0 3px rgba(8, 107, 168, 0.1);
}

.pqrs-form-container select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23086BA8" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8em top 50%;
    background-size: 1.2em;
    padding-right: 2.5em;
}

.pqrs-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.pqrs-form-container button[type="submit"] {
    grid-column: 1 / -1;
    margin: 1.5em auto 0 auto;
    padding: 0.75em 2em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    max-width: 220px;
    width: 100%;
    display: block;
    background-color: #086BA8;
    color: white;
    border: none;
    border-radius: 8px;
}

.pqrs-form-container button[type="submit"]:hover {
    transform: translateY(-2px);
    background-color: #065a8a;
    box-shadow: 0 4px 12px rgba(8, 107, 168, 0.3);
}

/* Modal PDF viewer */
.modal-pdf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-pdf {
    width: 90%;
    max-width: 1100px;
    height: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.modal-pdf header {
    padding: 0.6em 1em;
    background: #086BA8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-pdf .pdf-container {
    flex: 1 1 auto;
    background: #f5f5f5;
}

.modal-pdf .pdf-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-portfolio {
    display: inline-block;
    padding: 0.6em 1em;
    background: #086BA8;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-portfolio:hover {
    background: #065a8a;
}

/* Estilos para h2.blue.center cuando son títulos de sección principales */
.wrap-100 h2.blue.center,
.services-description h2.blue.center {
    /* También aplica a títulos dentro si ya estaban allí y no deben moverse */
    font-size: 2.3em;
    color: #086BA8;
    text-align: center;
    margin-bottom: 1.5em;
    /* Espacio para separarlo de la caja de contenido */
    font-weight: bold;
    line-height: 1.3;
}

.vision-image-content {
    flex-basis: 40%;
    min-width: 90px;
    max-width: 90px;
    /* Ajuste final para reducir aún más el tamaño de la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-description .text-content .consulta-sub-section h3 {
    color: #086BA8;
    /* Color azul para los títulos de subsección */
    font-size: 1.3em;
    margin-bottom: 0.8em;
}

.services-description .text-content .consulta-sub-section ul {
    list-style: disc inside;
    /* Ojo de disco dentro del texto */
    padding-left: 1em;
    line-height: 1.6;
    color: #333;
}

.services-description .text-content .consulta-sub-section ul li {
    margin-bottom: 0.3em;
}

.services-description .text-content h3 {
    color: #086BA8;
    /* Color azul para los títulos de subsección */
    font-size: 1.3em;
    margin-bottom: 0.8em;
    /* Espacio debajo del h3 */
}

.services-description .text-content ul.specialties-list-card {
    list-style: disc inside;
    padding-left: 1em;
    line-height: 1.6;
    color: #333;
    background-color: #e0f2f7;
    /* Fondo azul claro */
    border-radius: 12px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra para profundidad */
    padding: 1.5em;
    /* Aumentar el padding para el fondo */
    margin-bottom: 2em;
    /* Espacio debajo de cada lista/sección */
}

.services-description .text-content ul.specialties-list-card li {
    margin-bottom: 0.3em;
}

.specialties-cards-container {
    display: flex;
    flex-wrap: wrap;
    /* Permite que las tarjetas se envuelvan en pantallas pequeñas */
    justify-content: center;
    /* Centra las tarjetas horizontalmente */
    gap: 3em;
    /* Espacio entre las tarjetas */
    margin-bottom: 3em;
    /* Espacio debajo del contenedor */
    padding: 2.5em 0;
}

.specialties-cards-container .services-description {
    flex: 1 1 30%;
    /* Permite que cada tarjeta ocupe aproximadamente un tercio del ancho, ajustándose */
    max-width: 350px;
    /* Ancho máximo para cada tarjeta */
    min-width: 280px;
    /* Ancho mínimo para cada tarjeta antes de envolverse */
    padding: 0;
    /* Eliminar padding extra de services-description si se desea que el ul maneje todo */
    margin-bottom: 0;
    /* Asegurarse de que el margen lo controle el gap del contenedor */
}

.specialties-cards-container .services-description .wrap.content-flex {
    flex-direction: column;
    /* Apila el contenido verticalmente dentro de la tarjeta */
    align-items: flex-start;
    /* Alinea el contenido a la izquierda */
    justify-content: flex-start;
    /* Alinea el contenido al principio */
    padding: 0;
    /* Eliminar padding del wrap content-flex si existe */
}

.specialties-cards-container .services-description .text-content {
    width: 100%;
    /* El texto ocupa todo el ancho disponible dentro de la tarjeta */
    max-width: 100%;
    margin: 0;
    /* Eliminar margen automático */
    text-align: left;
    /* Alinea el texto a la izquierda */
}

.specialties-cards-container .services-description .text-content h3 {
    color: #086BA8;
    /* Color azul para los títulos de subsección */
    font-size: 1.3em;
    margin-bottom: 0.8em;
    /* Espacio debajo del h3 */
}

.specialties-cards-container .services-description .text-content ul.specialties-list-card {
    list-style: none;
    /* Quitar viñetas predeterminadas */
    padding-left: 0;
    /* Ajustar padding si las viñetas se manejaran con iconos */
    line-height: 1.6;
    color: #333;
    background-color: #e0f2f7;
    /* Fondo azul claro */
    border-radius: 12px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra para profundidad */
    padding: 1.5em;
    /* Aumentar el padding para el fondo */
    margin-bottom: 0em;
    /* No hay margen inferior si es la última sección */
}

.specialties-cards-container .services-description .text-content ul.specialties-list-card li {
    margin-bottom: 0.5em;
    /* Espacio entre ítems de la lista */
    position: relative;
    padding-left: 1.5em;
    /* Espacio para la viñeta personalizada */
}

.specialties-cards-container .services-description .text-content ul.specialties-list-card li::before {
    content: '\2022';
    /* Carácter de viñeta (bullet point) */
    color: #086BA8;
    /* Color azul para la viñeta */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.btn-more-info {
    display: block;
    width: fit-content;
    margin: 1.5em auto 0 auto;
    padding: 0.8em 1.5em;
    background-color: #086BA8;
    /* Color azul */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    /* Asegurar que no tenga subrayado si es un <a> */
}

.btn-more-info:hover {
    background-color: #064b73;
    /* Azul más oscuro al pasar el ratón */
    transform: translateY(-3px);
    /* Pequeña animación de elevación */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Estilos para la ventana modal */
.modal-overlay {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Asegurarse de que esté por encima de otros elementos */
}

.modal-overlay.active {
    display: flex;
    /* Mostrar cuando está activo */
}

.modal-content {
    background-color: #fff;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    max-width: 550px;
    /* Aumentar ligeramente el ancho máximo */
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    /* Efecto de entrada */
    transition: transform 0.3s ease-out;
    max-height: 90vh;
    /* Máximo 90% del viewport height */
    overflow-y: auto;
    /* Habilitar scroll vertical si el contenido es demasiado largo */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    /* Posición final */
}

.modal-content header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
    /* Mantener este margen pequeño para acercar header y body */
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.modal-content header h3 {
    color: #086BA8;
    font-size: 1.6em;
    margin: 0;
}

.modal-content .close-modal {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.modal-content .close-modal:hover {
    color: #086BA8;
}

.modal-content .modal-body {
    padding-top: 2em;
    /* Aumentar significativamente el padding superior */
    padding-bottom: 1em;
    /* Asegurarse de que el overflow-y sigue funcionando si el contenido es largo */
}

.modal-content .modal-body p {
    font-size: 1.1em;
    /* Restaurar tamaño de fuente */
    line-height: 1.7;
    color: #222;
    /* Restaurar color más oscuro */
    margin-bottom: 1em;
    text-align: left;
    font-weight: 600;
    /* Restaurar negrita */
}

.modal-content .modal-body h4 {
    color: #086BA8;
    font-size: 1.2em;
    margin-bottom: 0.8em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
}

.modal-content .modal-body ul {
    list-style: disc inside;
    padding-left: 1em;
    line-height: 1.8;
    color: #333;
    margin-top: 1em;
}

/* Estilos de footer-logos-wrapper ya definidos arriba en la sección de FOOTER MEJORADO */

/* Estilos para la página Nosotros */
.vision-text {
    font-size: 1.1em;
    line-height: 1.7;
    color: #444;
}

.vision-list {
    margin-top: 1em;
    line-height: 1.7;
    color: #333;
    font-size: 1.05em;
}

.purpose-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: #444;
}

.purpose-list {
    margin-top: 1em;
    line-height: 1.8;
    color: #333;
}

.purpose-conclusion {
    margin-top: 1em;
}

.purpose-content {
    width: 100%;
    max-width: 100%;
    margin: auto;
}

.portfolio-section {
    text-align: center;
    margin: 2em 0;
}

.modal-btn {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
}

.download-btn {
    margin-right: 15px;
}

.close-btn {
    font-size: 1.2em;
}

/* Estilos para la página Index */
.section-intro {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    font-weight: normal;
}

.section-description {
    font-size: 1.05em;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

/* Estilos para la página Servicios Clínicos */
.services-text-content {
    width: 100%;
    max-width: 100%;
    margin: auto;
}

.services-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

/* Estilos para la página Contáctenos */
.whatsapp-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-left: 0.5em;
}

.whatsapp-icon {
    color: #25D366;
}

.contact-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-top: 1.5em;
}

.assistant-text {
    font-weight: bold;
    color: #007bff;
}

.map-iframe {
    border: 0;
}

/* Estilos para las líneas de atención específicas */
.contact-lines-section {
    margin-top: 2em;
    padding: 1.5em;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #086BA8;
}

.contact-lines-section h4 {
    margin-bottom: 1em;
    font-size: 1.2em;
}

.contact-lines-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8em;
}

.contact-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-line-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.line-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.line-number {
    font-weight: bold;
    color: #086BA8;
    font-size: 1.1em;
    font-family: 'Courier New', monospace;
}

/* Responsive para las líneas de contacto */
@media (max-width: 768px) {
    .contact-line-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }

    .line-number {
        font-size: 1.2em;
    }
}

/* ==================== RESPONSIVE HEADER IMPROVEMENTS ==================== */

/* Para tablets y pantallas medianas */
@media (max-width: 1021px) {
    header .wrap {
        flex-wrap: wrap;
        width: 95%;
        padding: 10px 0;
    }

    header .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    header .logo img {
        max-height: 60px;
    }

    header h1 {
        font-size: 1.3em;
    }

    header.smaller {
        height: auto;
        min-height: 70px;
    }
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
    header .wrap {
        width: 100%;
        padding: 8px 15px;
    }

    header .logo {
        width: calc(100% - 80px);
        text-align: left;
        margin-bottom: 0;
    }

    header .logo a {
        flex-direction: column;
        align-items: flex-start;
    }

    header .logo img {
        max-height: 50px;
        margin-right: 0;
        margin-bottom: 4px;
    }

    header h1 {
        font-size: 1.0em;
        line-height: 1.2;
    }
}

/* Para dispositivos móviles pequeños */
@media (max-width: 425px) {
    header .logo {
        width: calc(100% - 70px);
    }

    header .logo img {
        max-height: 45px;
    }

    header h1 {
        font-size: 0.9em;
    }

    .rmenu {
        top: 12px;
        right: 10px;
        padding: 8px;
    }

    .rmenu .line-1 {
        width: 28px;
    }
}