:root {
    --color-principal: #DA00FF;
    --color-secundario: #eba6f7;
    --color-terciario: #025E73;
    --color-rojo: #D71256;
    --color-rojo-hover: #8F0D3C;
    --bs-nav-link-color: #000000;
    --icon-plus-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4'/%3E%3C/svg%3E");
    --icon-dash-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8'/%3E%3C/svg%3E");
}

a.nav-link.link {
    color: white;
}

a:visited {
    color: inherit;
}

/* Mantener el texto blanco en todos los botones aunque hayan sido visitados */
a.btn,
a.btn:visited,
.btn:visited,
.btn-primary:visited,
.btn-footer-action:visited,
.btn-ver-blog:visited,
.btn-video-card:visited,
.btn-news-arrow:visited,
.boton-lic:visited,
.boton-header:visited,
.boton-footer:visited,
.link-lic:visited {
    color: #ffffff !important;
}

a.nav-link.link:hover {
    color: var(--color-principal);
}


.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: white;
}

body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    margin-bottom: 0 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.row {
    margin-left: 0;
}

img,
iframe,
div {
    max-width: 100%;
    box-sizing: border-box;
}

h1 {
    font-family: "Poppins", sans-serif;
    font-size: 35px;
    font-weight: 800;
    font-style: normal;
}

.page-404 {
    height: 50vh;
}

section.error-404.not-found {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

p {
    font-size: 13px;
}

p.text-center {
    font-size: 16   px;
}


.brand-bar {
    background-color: #000;
    min-height: 80px;
}

.brand-bar .container-menu {
    padding: 0 8rem;
    position: relative;
    min-height: 80px;
}

li a {
    font-family: "Poppins", sans-serif;
    color: white;
}

li a:hover {
    font-family: "Poppins", sans-serif;
    color: var(--color-principal);
}

.boton-header {
    border-radius: 0;
    background-color: var(--color-principal);
    border: none;
}

.boton-header:hover {
    border-radius: 0;
    background-color: var(--color-secundario);
    border: none;
    color: white;
}

.boton-lic {
    border-radius: 0;
    background-color: var(--color-rojo);
    border: none;
    margin-top: 15px;
}

.boton-lic:hover {
    border-radius: 0;
    background-color: var(--color-rojo-hover);
    border: none;
    margin-top: 15px;
}

.boton-footer {
    border-radius: 0;
    background-color: var(--color-principal);
    width: 250px;
    border: none;
}

a.btn-footer {
    padding: 0.5rem;
    border-radius: 0px;
    height: 40px;
}

.boton-footer:hover {
    border-radius: 0;
    width: 250px;
    background-color: var(--color-secundario);
    border: none;
}


.boton {
    display: flex;
    height: 40px;
    border: none;
}

.boton-boton:hover {
    border-radius: 0;
    background-color: var(--color-secundario);
    border: none;
}

.boton-video {
    border-radius: 0;
    background-color: var(--color-principal);
    border: none;
}

.boton-video:hover {
    border-radius: 0;
    background-color: var(--color-secundario);
    border: none;
}

.hero-header {
    position: relative;
    /* Necesario para el overlay y el contenido */
    overflow: hidden;
    /* Evita desbordamientos */
    height: 600px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: end;
}


.carousel-item {
    background-image: var(--bg-desktop);
    height: 600px;
    /* Asegura que las imágenes ocupen todo el contenedor */
    background-size: cover;
    background-position: center;
}

@media (max-width: 767.98px) {
    .carousel-item {
        /* En pantallas pequeñas, cambiamos a la imagen móvil */
        background-image: var(--bg-mobile);
    }
}

/*.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    Oscurece ligeramente el fondo
    z-index: 1;
}*/

.contenido-hero {
    position: relative;
    z-index: 2;
    /* Asegura que el contenido esté encima del overlay */
    padding: 2rem 1rem;
    margin-left: 1rem;
    margin-top: 4rem;
    text-align: center;
}

.contenido-hero h1,
.contenido-hero p {
    text-align: center;
    font-weight: 600;
    color: white;
    width: 90%;
    margin-left: 5rem;
}

@media (max-width: 768px) {
    .contenido-hero h1 {
        margin-left: 0rem;
        font-size: 20px;
    }
}

/* Ajustes responsivos */
@media (min-width: 768px) {
    .contenido-hero {
        width: 90rem;
        margin: 20px 0;
        /* Ajuste para tabletas */
    }
}

@media (min-width: 992px) {
    .texto-fondo h2 {
        font-size: 15rem;
        /* Tamaño mayor para pantallas grandes */
    }
}

.servicios {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.bloque {
    padding: 3rem 1rem 2.5rem 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: white;
    /* Fuerza a eliminar cualquier fondo previo */
}

.bloque::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hover-bg);
    background-size: cover;
    background-position: center;
    z-index: -2;
    /* Capa detrás del overlay */
    opacity: 0;
    /* Inicialmente invisible */
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1);
}

/* Overlay oscuro (inicialmente transparente) */
.bloque::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Ajusta la opacidad (0.5 = 50%) */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Efectos al hacer hover */
.bloque:hover::before {
    opacity: 1;
    transform: scale(1.1);
    /* Zoom */
}

.bloque:hover::after {
    opacity: 1;
    /* Muestra el overlay oscuro */
}

.bloque h3 {
    font-size: 20px;
    font-weight: 600;
}

.bloque:hover h3 {
    font-size: 20px;
    color: white;
}

.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 70rem;
}

hr:hover {
    background-color: white;
}

hr.linea-dec {
    width: 50px;
    height: 4px;
    border: 0;
}

hr.linea-dec:hover {
    color: white;
    width: 50px;
    height: 4px;
    border: 0;
}

p {
    font-size: 16px;
}

.text-servicio {
    margin: 2rem 0;
}


.servicio1 {
    grid-area: 1 / 1 / 2 / 2;
}

.servicio2 {
    grid-area: 1 / 2 / 2 / 3;
}

.servicio3 {
    grid-area: 1 / 3 / 2 / 4;
}

.servicio4 {
    grid-area: 1 / 4 / 2 / 5;
}

.servicio5 {
    grid-area: 2 / 1 / 3 / 2;
}

.servicio6 {
    grid-area: 2 / 2 / 3 / 3;
}

.servicio7 {
    grid-area: 2 / 3 / 3 / 4;
}

.servicio8 {
    grid-area: 2 / 4 / 3 / 5;
}




@media (max-width: 768px) {
    .parent {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en pantallas pequeñas */
        grid-template-rows: repeat(4, 1fr);
        /* 4 filas para acomodar los elementos */
    }


    /* Eliminar restricciones de área para reordenar automáticamente */
    .servicio1,
    .servicio2,
    .servicio3,
    .servicio4,
    .servicio5,
    .servicio6,
    .servicio7,
    .servicio8 {
        grid-area: auto;
        /* Permitir reflujo automático */
    }
}

.licencias {
    padding: 3rem;
    background: #833AB4;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
}

.parent-lic {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.parent-lic {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.img-licencia-home {
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.img-licencia-home:hover {
    transform: scale(1.1);
}

.img-lic {
    width: 170px;
    height: auto;
}

.link-lic {
    border-radius: 6px;
    margin: 3px;
}

.link-lic:hover {
    margin: 3px;
}



@media (max-width: 768px) {
    .parent-lic {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
}

.img-licencia .post-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f3f3;
    border-top-left-radius: 80px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 0;
}

.img-licencia .post-thumbnail img {
    margin: 4rem 4rem;
    width: 300px;
    height: auto;
}

.texto-pie.col-12 {
    text-align: center;
    margin-top: 20px;
}

.col-12.img-licencias.d-flex.flex-wrap.justify-content-center {
    margin-left: 1.8rem;
}

.lic-cont-1 p {
    text-align: justify;
}

.p-lic {
    margin-bottom: 0;
}

.lic-cont-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team {
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

.team p {
    text-align: justify;
    font-size: 1rem;
}

.img-team {
    width: 100%;
    max-width: 30rem;
    height: auto;
    border-radius: 1rem;
    /* Esquinas redondeadas para diseño moderno */
    margin-bottom: 1rem;
    /* Espaciado en pantallas pequeñas */
}

@media (max-width: 768px) {

    .team p {
        font-size: 0.9rem;
    }

    .img-team {
        max-width: 100%;
        margin-bottom: 2rem;
        /* Espaciado adicional en pantallas pequeñas */
    }
}

@media (max-width: 768px) {
    body {
        justify-content: flex-start;
        /* Alinea al inicio en pantallas grandes */
        align-items: flex-start;
    }
}

.logos {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    /* Opcional */
}

.logos-slide {
    display: grid;
    grid-template-rows: repeat(1, 1fr);
    /* Tres filas exactas */
    grid-auto-flow: column;
    /* Organiza los logos en columnas, llenando filas */
    /* Espaciado entre logos */
    animation: scroll 15s linear infinite;
    /* Animación continua */
}

.logos-slide-2 {
    display: grid;
    grid-template-rows: repeat(1, 1fr);
    /* Tres filas exactas */
    grid-auto-flow: column;
    /* Organiza los logos en columnas, llenando filas */
    /* Espaciado entre logos */
    animation: scroll 15s linear infinite reverse;
    /* Animación continua */
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    /* Ajusta el tamaño del logo */
}

.logo-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


.distribuidores > h2 {
    text-align: center;
    margin-top: 30px;
}

.cont-video {
    padding: 0 60px;
}

.video img {
    width: 300px;
    height: auto;
}

.contenedor-videos {
    margin: 20px;
}

.socios {
    margin-bottom: 3rem;
}

.log {
    margin-top: 3rem;
    text-align: center;
}


footer {
    background-color: #000000;
    padding-top: 5rem;
}

footer h4 {
    color: white;
}

footer p {
    text-align: justify;
}

.icono {
    background-color: #000000;
    padding: 1px 8px;
}


/* Single servicios */

.contenido-servicios {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.contenido-servicios img {
    border-radius: 30px;
}

.cont-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cont-2 h2 {
    font-weight: 600;
}

/*.cont-2 p{
    margin-bottom: 4rem;
}*/




.hero-servicios {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}

.h1-servicios {
    color: #fff;
}



/* Single servicios */


.mail {
    margin-left: 70px;
}

.contact {
    margin: 30px;
}

.img-servicios {
    height: auto;
}

.contenido-contact {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.contenedor-poli {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
}

.btn-contacto {
    margin: 40px 30px;
}

.direccion {
    margin-top: 30px;
}

.contenido-contact h5 {
    color: #858585
}

.contenido-contact h4 {
    font-weight: bold;
}

a.btn-footer {
    padding: 0.5rem;
    height: 40px;
}

.faq-acor.accordion-button.collapsed::after {
    background: var(--icon-plus-circle);
}

.faq-acor.accordion-button:not(.collapsed)::after {
    background: var(--icon-dash-circle);
    transform: var(--bs-accordion-btn-icon-transform);
}

.faq-acor.accordion-button::after {
    transition: transform 0.4s ease-in-out;
}

.contenido-faq {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
}

.contenido-news {
    padding: 2rem;
    background-color: white;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    margin-top: -2rem;
    z-index: 10;
}

.faq-titulo {
    font-size: 20px;
}

.faq-acor.accordion-button:not(.collapsed) {
    background: linear-gradient(25deg, rgba(72, 206, 179, 1) 17%, rgba(0, 130, 192, 1) 85%);
    color: white;
    transition: transform 0.4s ease-in-out;
}

.dropdown-menu.depth_0 {
    width: 30vw;
    max-width: 900px;
    padding: 1rem;
}

.dropdown-menu.depth_0 .menu-item {
    width: 100%;
    margin: 0;
    margin-top: 1rem;
}


.dropdown-menu.depth_0 .menu-item a.nav-link {
    text-align: center;
    height: 100%;
}


a.nav-link.link.dropdown-toggle {
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-nav .dropdown-menu {
        position: absolute;
    }

    .dropdown-menu.depth_0 {
        width: 90%;
    }

}


.container-fluid.justify-content-between.align-items-center {
    margin: 0 6rem;
}

@media (max-width: 768px) {
    .container-fluid.justify-content-between.align-items-center {
        margin: 0 1rem;
    }
}

.p-video-excerpt {
    margin-top: 1rem;
    font-size: 20px;
    font-weight: 600;
}

a.boton-video.btn.btn-primary {
    color: white;
}


/* CSS NEWS ELC 2026 */

.info-news {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    margin-bottom: 2rem;
}

.img-news h2 {
    background-color: #1668B0;
    color: white;
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1rem;
    font-size: 18px;
    align-items: center;
    height: 4rem;

}

p.fecha-news {
    color: #797878;
    margin-bottom: 0;
    width: 50%;
    font-size: 12px;
    text-transform: capitalize;
}

.btn-nota-completa {
    background-color: #9c9c9c;
    color: white;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-nota-completa:hover {
    background-color: #6e6e6e;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-enlace-global {
    display: block;
    text-decoration: none;
    /* Quita el subrayado */
    color: inherit;
    /* Mantiene el color original de tus textos */
}

.card-enlace-global:hover {
    text-decoration: none;
    color: inherit;
}



/* =========================================
   ESTILOS EXCLUSIVOS OFFCANVAS BLANCO (FRAME 31)
========================================= */

div#offcanvasMenu {
    width: 35%;
    padding: 0 2rem;
}

/* Forzar que los textos sean NEGROS (Soluciona el problema de las letras invisibles) */
.menu-offcanvas-personalizado li a {
    color: #000000 !important;
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    background: transparent !important;
}

.menu-offcanvas-personalizado li a:hover {
    color: var(--color-principal) !important;
}

/* Quitar los estilos por defecto de las listas de WordPress */
.menu-offcanvas-personalizado ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
}

/* IMPORTANTE: Los li principales deben ser 'static' para que el submenu absoluto funcione */
.menu-offcanvas-personalizado li {
    position: static;
}

/* ========================================================
   MAGIA DEL SUBMENÚ DESLIZABLE (Estilo SKF)
======================================================== */
.menu-offcanvas-personalizado .sub-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    padding: 1.5rem !important;

    /* Lo mantenemos oculto fuera de la pantalla hacia la derecha */
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    z-index: 10;
    overflow-y: auto;
    border: none;
    margin-top: 0;
}

/* Esta clase ".active" se la agrega el Javascript al hacer click */
.menu-offcanvas-personalizado .sub-menu.active {
    transform: translateX(0);
    /* Se desliza a la vista */
}

/* Botón "Volver" creado dinámicamente por JS */
.back-btn-menu {
    color: var(--color-principal) !important;
    font-weight: 600;
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem !important;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.back-btn-menu::before {
    content: "‹";
    font-size: 26px;
    margin-right: 10px;
    line-height: 1;
}

/* --- Botones --- */
/* Botones redondos superiores (Home y Cerrar) */


.btn-circular-offcanvas:hover {
    background-color: #8c8c8c;
}

/* Botón Rosa "Contáctanos" */
.btn-contacto-rosa {
    background-color: var(--color-principal);
    color: #ffffff !important;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 25px;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-contacto-rosa:hover {
    background-color: var(--color-secundario);
    color: #ffffff !important;
}

/* Íconos de Redes Sociales */
.offcanvas-body .text-dark:hover {
    color: var(--color-principal) !important;
}

/* ========================================================
   BRAND BAR — Logo centrado con Flexbox
======================================================== */

.brand-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand-logo img,
.brand-logo .custom-logo {
    height: 90px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

/* ========================================================
   QUICK ACCESS BAR — Segunda fila del header
======================================================== */

.quick-access-bar {
    background-color: black;
    position: relative;
    overflow: hidden;
}

/* Borde superior decorativo con gradiente de acento (entre Brand Bar y Quick Access) */
.quick-access-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-principal),
            transparent);
    pointer-events: none;
}

.quick-access-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    height: 44px;
    white-space: nowrap;
    padding: 2rem 0;
}

.quick-link {
    color: white !important;
}

/* Separadores · entre links (excepto el último) */
.quick-link:not(:last-child)::before {
    content: '·';
    position: absolute;
    right: -0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 18px;
    pointer-events: none;
}

.quick-link {
    position: relative;
    color: #cccccc;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 0.25rem;
    transition: color 0.3s ease;
}

/* Underline animado de izquierda a derecha en hover */
.quick-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-principal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.quick-link:hover {
    color: var(--color-principal);
}

.quick-link:hover::after {
    transform: scaleX(1);
}


.btn-circular-offcanvas {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    background-color: #b3b3b3;
    color: white !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-circular-offcanvas svg {
    width: 26px !important;
    height: 26px !important;
    stroke-width: 2px;
}

header button[data-bs-toggle="offcanvas"] svg {
    width: 45px !important;
    height: 45px !important;
}

/* ========================================================
   RESPONSIVIDAD: HEADER DE DOS FILAS
======================================================== */

/* Desktop mediano: reducir tamaño de quick access */
@media (max-width: 1399px) and (min-width: 992px) {
    .quick-access-nav {
        gap: 1rem;
    }

    .quick-link {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .quick-link:not(:last-child)::before {
        right: -0.6rem;
    }
}

/* Tablet: scroll horizontal con pills */
@media (max-width: 991px) and (min-width: 768px) {

    .brand-logo img,
    .brand-logo .custom-logo {
        max-height: 60px;
    }

    .quick-access-nav {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0.6rem;
        padding: 6px 0;
    }

    .quick-access-nav::-webkit-scrollbar {
        display: none;
    }

    .quick-link {
        flex-shrink: 0;
        scroll-snap-align: start;
        font-size: 12px;
        letter-spacing: 0.5px;
        background: rgba(255, 255, 255, 0.08);
        padding: 6px 14px;
        border-radius: 20px;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .quick-link:hover {
        background: rgba(218, 0, 255, 0.15);
    }

    /* Ocultar separadores · en modo pills */
    .quick-link:not(:last-child)::before {
        display: none;
    }

    /* Ocultar underline en modo pills */
    .quick-link::after {
        display: none;
    }

    /* Fade indicators para indicar scroll */
    .quick-access-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to right, #111, transparent);
        z-index: 2;
        pointer-events: none;
    }
}

/* Mobile: Quick Access oculta (Bootstrap d-none d-md-block se encarga) */
@media (max-width: 767px) {
    .brand-bar {
        min-height: 60px;
    }

    .brand-bar .container-menu {
        padding: 0 2rem;
        min-height: 60px;
    }

    .brand-logo img,
    .brand-logo .custom-logo {
        max-height: 60px;
    }

    .offcanvas-start {
        width: 100% !important;
        max-width: 100% !important;
    }

    .menu-offcanvas-personalizado li a {
        font-size: 1.15rem !important;
        padding: 8px 0 !important;
    }

    .btn-circular-offcanvas {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }

    .btn-circular-offcanvas svg {
        width: 22px !important;
        height: 22px !important;
    }

    header button[data-bs-toggle="offcanvas"] svg {
        width: 38px !important;
        height: 38px !important;
    }
}

/* ========================================================
   ICONOS HAMBURGUESA Y HOME
======================================================== */

.menu-burguer {
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    padding: 0rem 0.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.icon-menu {
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.menu-burguer:hover {
    background-color: transparent;
    border: 2px solid var(--color-principal);
    color: var(--color-principal);
    border-radius: 50%;
    padding: 0rem 0.5rem;
    transition: all 0.3s ease;
}

.icon-menu:hover {
    color: var(--color-principal);
    transition: all 0.3s ease;
}

.icon-offcanvas {
    font-size: 2.5rem;
}

.icon-offcanvas.home {
    font-size: 1.5rem;
}

/* ========================================================
   MODAL DE IMÁGENES PERSONALIZADO (Malla y Galería)
======================================================== */
.modal-imagen-custom {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.contenido-modal-img {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    border: 3px solid white;
    border-radius: 10px;
    animation: zoomModal 0.3s ease-out;
}

@keyframes zoomModal {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.cerrar-modal:hover {
    color: var(--color-principal);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .contenido-modal-img {
        width: 95%;
        margin-top: 50px;
    }

    .cerrar-modal {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

/* ========================================================
   SECCIÓN QUIÉNES SOMOS
======================================================== */
#quienes-somos .quienes-somos-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* Línea degradada bajo el título principal (Rosado al centro, desvanecido hacia transparente en los extremos) */
#quienes-somos .quienes-somos-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 220px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-principal) 50%, transparent 100%);
    border-radius: 4px;
}

#quienes-somos p.lead,
#quienes-somos p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #2b2b2b;
    font-weight: 400;
}

#quienes-somos .accordion-button {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: none !important;
}

#quienes-somos .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--color-principal);
}

/* ========================================================
   SECCIÓN NOVEDADES / NOTICIAS (HOME)
======================================================== */
.btn-ver-blog {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-ver-blog:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.news-home-thumb {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    height: 90px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
}

.news-home-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
}

.badge-fecha-pill {
    font-size: 0.82rem;
    color: #666666;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 50px;
    padding: 3px 16px;
    font-weight: 500;
}

.news-home-item {
    align-items: center;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.news-home-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.news-home-item:hover .news-home-item-title {
    color: #0d6efd !important;
}

.btn-news-arrow {
    width: 44px;
    height: 44px;
    background-color: #0d6efd;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 1.35rem;
    text-decoration: none;
    transition: all 0.25s ease;
    align-items: center;
}

.news-home-item:hover .btn-news-arrow {
    background-color: #0b5ed7;
    transform: scale(1.08);
}

/* ========================================================
   ESTILOS PIE DE PÁGINA (FOOTER)
======================================================== */
.site-footer {
    background-color: #000000 !important;
    color: #ffffff;
}

.footer-col-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
}

/* Subrayado degradado para títulos de columna del footer */
.footer-col-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-principal) 50%, transparent 100%);
    border-radius: 2px;
}

.footer-nav-list li a,
.footer-nav-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav-list li a:hover,
.footer-nav-link:hover {
    color: var(--color-principal) !important;
}

.btn-footer-action {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 8px 22px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-footer-action:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #ffffff;
}

.footer-social-icon {
    font-size: 1.35rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-icon:hover {
    color: var(--color-principal) !important;
    transform: scale(1.15);
}

/* Línea degradada horizontal del footer (sobre el Copyright) */
.footer-gradient-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, var(--color-principal) 50%, transparent 100%);
    opacity: 0.85;
}

section#novedades {
    margin-top: 6rem;
}

p.text-secondary.mb-4 {
    margin-right: 2rem;
}

ul {
    margin: 0;
}