.studies-item {
    position: relative;
    overflow: hidden;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.studies-item:hover .overlay-text {
    opacity: 1;
}

.practice-area-about {
    background-color: #A0181B;
    /* Color de fondo similar a la imagen */
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-text-about {
    max-width: 800px;
    /* Limita el ancho del texto */
    color: #fff;
    font-size: 22px;
    font-style: droid-serif;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
}

.service-text-about::before,
.service-text-about::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: white;
    margin: 20px auto;
}

.asociaciones-section {
    text-align: center;
    padding: 50px 20px;
}

.asociaciones-section h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.asociaciones-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.logos-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    /* Espaciado entre logos */
    max-width: 90%;
    margin: auto;
}

.logos-container-index {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 40px;
    /* Espaciado entre logos */
    max-width: 90%;
    margin: auto;
}

@media screen and (max-width: 768px) {

    .logos-container,
    .logos-container-index {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        /* Espaciado entre logos en móviles */
    }

}

.logos-container img {
    max-height: 100%;
    width: auto;
}

.img-logo-index {
    max-width: 180px;
}

.justify-text {
    text-align: justify;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-10 {
    margin-bottom: 50px;
}

.socios-text {
    font-size: 18px !important;
    color: #000 !important;
    margin-bottom: 30px !important;
}

.text-size {
    font-size: x-large;
    padding-bottom: 25px;
}

.footer-top .row {
    display: flex;
    justify-content: space-between;
    /* Espacia los divs uniformemente */
    align-items: center;
    /* Alinea verticalmente */
    flex-wrap: wrap;
    /* Permite que se ajusten en móviles */
}

.footer-top .col-lg-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    /* Opcional si quieres centrar el contenido */
}

.footer-logo img {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .footer-top .col-lg-4.footer-logo {
        align-items: center;
        /* Centra verticalmente los hijos del flex */
        text-align: center;
        /* Centra el texto */
        max-width: 220px;
        justify-self: center;
    }

    .footer-logo img {
        margin-left: auto;
        margin-right: auto;
        /* Centra la imagen dentro del bloque */
    }
}

.row-socios {
    display: flex;
    justify-content: space-between;
    /* Distribuye los elementos en la fila */
    flex-wrap: nowrap;
    /* Evita que los elementos se bajen de línea */
}

.expert-single-socios {
    max-width: 180px;
    /* Limita el ancho de cada tarjeta */
    text-align: center;
}

.expert-img-socios img {
    width: 100%;
    /* Hace que las imágenes se adapten */
    max-width: 175px;
    /* Reduce el tamaño de la imagen */
    height: auto;
}

.expert-content-socios h3 {
    font-size: 20px;
    /* Reduce tamaño del nombre */
    margin-bottom: 5px;
    margin-top: 5px;
}

.expert-content-socios span {
    font-size: 15px;
    /* Reduce el tamaño del cargo */
    color: #9b9691;
}

.modal-body p {
    font-size: 18px;
    color: #000;
    text-align: justify;
}

.fondo-colab {
    background-color: #cdc6c0;
    /* Color de fondo */
    min-height: 100px;
    /* Ocupa toda la altura de la pantalla */
    width: 100%;
    /* Ocupa todo el ancho de la pantalla */
    display: flex;
    align-items: center;
    /* Centra verticalmente el contenido */
    justify-content: center;
    /* Centra horizontalmente el contenido */
    padding: 40px 0;
    /* Añade espaciado arriba y abajo */
}

.contact-page-item p {
    font-size: 18px;
    color: #000;
    text-align: justify;
}

.blog-item {
    padding-bottom: 20px;
    /* Espacio entre cada blog-item */
    border-bottom: 3px solid #b1282e;
    /* Línea separadora */
    margin-bottom: 30px;
    /* Espaciado extra para mejor lectura */
}

.blog-content-2 h2 {
    color: #570d17;
    /* Color de los títulos */
    font-size: 24px;
    font-weight: bold;
}

.blog-content-2 p {
    color: #333;
    /* Color de texto para mejor legibilidad */
    font-size: 16px;
    line-height: 1.6;
}

.blog-content-2 a {
    display: inline-block;
    margin-top: 10px;
    color: #b1282e;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}

.blog-content-2 a:hover {
    border-bottom: 2px solid #b1282e;
    color: #570d17;
}

/* Estilos generales reutilizados */
.contact-page-item,
.contact-area {
    padding-bottom: 20px;
    /* Espacio entre elementos */
    margin-bottom: 30px;
}

.contact-page-item h3,
.contact-area h2 {
    color: #570d17;
    /* Color de títulos */
    font-size: 24px;
    font-weight: bold;
}

.contact-page-item span,
.contact-area p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.contact-page-item a {
    color: #b1282e;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #b6b0a9;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.theme-btn-s3 {
    background-color: #b1282e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.theme-btn-s3:hover {
    background-color: #570d17;
}

/* Google Maps Responsive */
.contact-map iframe {
    width: 100%;
    border-radius: 10px;
}

.servicios-section {
    background-color: #f3f3f3;
    /* Color de fondo gris claro */
    padding: 60px 0;
    text-align: center;
}

.servicios-p p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 20px;
}

.btn-servicios a {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    /* Rojo oscuro del branding */
    background-color: #b1282e;
    border: 2px solid #570d17;
    border-radius: 5px;
    text-decoration: none;
}

.btn-servicios a:hover {
    background-color: #570d17;
    color: #fff;
}

.expert-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expert-area {
    background-color: #f9f9f9;
    margin-top: 60px;
    margin-bottom: 60px;
}

.section-title2 span {
    display: block;
    font-size: 18px;
    color: #9c1c29;
    font-weight: bold;
}

.section-title2 h2 {
    font-size: 32px;
    font-weight: bold;
    color: #212121;
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-custom {
    background-color: #570d17;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    padding: 10px 38px;
    border: 2px solid transparent;
    text-transform: capitalize;
    display: inline-block;
    margin-top: 6px;
}

.btn-custom:hover {
    background-color: #8a1624;
    /* Un tono más claro para el hover */
    transform: scale(1.05);
}

.btn-custom i {
    font-size: 18px;
}

.text-bordo {
    color: #570d17;
}

.hr-bordo {
    border-top: 2px solid #570d17;
}

.icon-bullet {
    color: #570d17;
}

.bg-bordo-soft {
    background-color: #f3e9ea;
    /* Un tono claro que combina bien como fondo */
    border-left: 5px solid #570d17;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.hover-img {
    transition: filter 0.5s ease;
    filter: grayscale(100%);
}

.hover-img:hover {
    filter: grayscale(0%);
}

.service-text ul {
    padding-left: 1rem;
    list-style-type: disc;
    color: #570d17;
    /* Cambia el color de los bullets */
}

.service-text ul li {
    margin-bottom: 5px;
}

.service-text a {
    color: #570d17;
    text-decoration: none;
}

.service-text a:hover {
    text-decoration: underline;
    text-decoration-color: #570d17;
    /* Subrayado en color personalizado */
}

.service-text hr {
    border: none;
    border-top: 2px solid #570d17;
    margin: 1.5rem 0;
}
