@charset "UTF-8";
/* WP142: CSS global del sitio publico, antes inline en FrontEndBundle layout.html.twig (bloque stylesheets).
   Se carga con site_asset() (?v=mtime): queda en cache del navegador y cada deploy cambia la URL. Mismo orden de cascada que antes. */

/* Modern CSS Variables and Global Styles */
:root {
    --ma-primary: #2563eb;
    --ma-primary-dark: #1d4ed8;
    --ma-primary-light: #3b82f6;
    --ma-secondary: #64748b;
    --ma-accent: #f59e0b;
    --ma-success: #10b981;
    --ma-warning: #f59e0b;
    --ma-danger: #ef4444;
    --ma-dark: #0f172a;
    --ma-light: #f8fafc;
    --ma-gray: #64748b;
    --ma-border: #e2e8f0;
    --ma-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ma-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modern Typography */
html, body {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ma-dark);
}

/* Modern Container System */
.container {
    max-width: 1300px !important;
}

/* Modern Button Styles */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--ma-primary);
    border-color: var(--ma-primary);
}

.btn-primary:hover {
    background: var(--ma-primary-dark);
    border-color: var(--ma-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--ma-shadow);
}

.btn-outline-primary {
    color: var(--ma-primary);
    border-color: var(--ma-primary);
}

.btn-outline-primary:hover {
    background: var(--ma-primary);
    border-color: var(--ma-primary);
}

/* Modern Form Controls */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid var(--ma-border);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--ma-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Modern Card Styles */
.card {
    border-radius: 1rem;
    border: 1px solid var(--ma-border);
    box-shadow: var(--ma-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ma-shadow-lg);
}

/* Modern Navigation Styles */
.navbar {
    box-shadow: var(--ma-shadow);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--ma-dark);
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--ma-primary);
}

/* Modern Footer Styles */
.footer {
    background: var(--ma-dark);
    color: var(--ma-light);
}

.footer a {
    color: var(--ma-gray)!important;
    transition: color 0.2s ease!important;
    padding:4px 0px!important;
}

.footer a:hover {
    color: var(--ma-primary-light);
}

.footer .social a:hover {
    color: #fff;
}

/* 
 * TOP BAR - COMPLETE ISOLATION STYLES
 * ===================================
 * Estilos completamente aislados para el top bar desktop y mobile
 * para evitar cualquier interferencia desde otros archivos CSS
 * 
 * CLASES ESPECÍFICAS:
 * - .ma-desktop-topbar: Para el top bar desktop
 * - .ma-mobile-topbar: Para el top bar mobile
 * 
 * PROTECCIÓN MÁXIMA:
 * - Todos los estilos usan !important para máxima especificidad
 * - Se resetean estilos externos con 'all: unset !important'
 * - Se protegen todas las clases Bootstrap utilizadas
 * - Se aíslan completamente los botones y elementos
 */
.ma-desktop-topbar {
    background: linear-gradient(135deg, #2B73B6 0%, #4BB8E8 50%, #5BC2E8 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding: 0.5rem 0 !important;
    max-height: 60px !important;
    font-size: 0.9rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    height: unset !important;
}

/* DESKTOP TOP BAR - ISOLATED STYLES */
.ma-desktop-topbar a.link {
    color: #fff !important;
    opacity: .9 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
}

.ma-desktop-topbar a.link:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}

.ma-desktop-topbar .fw-medium {
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    padding-left: 7px !important;
}

/* DESKTOP TOP BAR BUTTONS - ISOLATED STYLES */
.ma-desktop-topbar .btn-cta {
    all: unset !important;
    background: #fff !important;
    color: #0f172a !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 0.5rem 1rem!important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.ma-desktop-topbar .btn-cta:hover {
    background: #f3f4f6 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.ma-desktop-topbar .btn-cta:focus {
    outline: 2px solid rgba(255,255,255,0.5) !important;
    outline-offset: 2px !important;
}

/* PROTECCIÓN ADICIONAL - Asegurar que ningún estilo externo interfiera */
.ma-desktop-topbar * {
    box-sizing: border-box !important;
}

.ma-desktop-topbar .container {
    max-width: 1300px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.ma-desktop-topbar .d-none {
    display: none !important;
}

.ma-desktop-topbar .d-lg-flex {
    display: flex !important;
}

.ma-desktop-topbar .justify-content-between {
    justify-content: space-between !important;
}

.ma-desktop-topbar .align-items-center {
    align-items: center !important;
}

.ma-desktop-topbar .d-flex {
    display: flex !important;
}

.ma-desktop-topbar .gap-2 {
    gap: 0.5rem !important;
}

.ma-desktop-topbar .me-2 {
    margin-right: 0.5rem !important;
}

/* PROTECCIÓN MÁXIMA - Override cualquier estilo externo */
.ma-desktop-topbar,
.ma-mobile-topbar {
    /* Resetear cualquier estilo externo */
    all: unset !important;
    /* Reaplicar estilos base */
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #2B73B6 0%, #4BB8E8 50%, #5BC2E8 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    color: white !important;
    padding: 0.6rem 0 !important;
    /* PROTECCIÓN CONTRA INTERFERENCIA DEL CONTENIDO */
    isolation: isolate !important;
    contain: layout style paint !important;
    /* Asegurar que el top bar no se vea afectado por el contenido debajo */
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* PROTECCIÓN CONTRA INTERFERENCIA DEL CONTENIDO DE LA PÁGINA */
/* Asegurar que el contenido debajo del top bar no interfiera */
.ma-desktop-topbar + *,
.ma-mobile-topbar + * {
    /* Resetear cualquier estilo que pueda afectar al top bar */
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    transition: none !important;
}

/* Proteger específicamente contra containers que puedan causar problemas */
.ma-desktop-topbar ~ .container,
.ma-mobile-topbar ~ .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    transition: none !important;
    /* Asegurar que no haya scroll o layout shifts */
    contain: layout !important;
}

/* PROTECCIÓN ADICIONAL - Aislar completamente el top bar del contenido */
.ma-desktop-topbar,
.ma-mobile-topbar {
    /* Crear un contexto de apilamiento independiente */
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    /* Asegurar que no se vea afectado por el contenido debajo */
    isolation: isolate !important;
    contain: layout style paint !important;
    /* Eliminar cualquier influencia del contenido */
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    /* Forzar que el top bar mantenga su posición */
    will-change: auto !important;
    transform: none !important;
    transition: none !important;
}

/* CONTROL DE VISIBILIDAD - Desktop vs Mobile */
/* Desktop: Mostrar solo en pantallas grandes */
@media (min-width: 1025px) {
    .ma-desktop-topbar .d-none {
        display: none !important;
    }
    
    .ma-desktop-topbar .d-lg-flex {
        display: flex !important;
    }
    
    .ma-mobile-topbar .d-lg-none {
        display: none !important;
    }
}

/* Mobile: Mostrar solo en pantallas pequeñas */
@media (max-width: 1024px) {
    .ma-desktop-topbar .d-none {
        display: none !important;
    }
    
    .ma-desktop-topbar .d-lg-flex {
        display: none !important;
    }
    
    .ma-mobile-topbar .d-lg-none {
        display: flex !important;
    }
    
    /* Asegurar que el top bar mobile tenga el comportamiento correcto */
    .ma-mobile-topbar {
        padding: 0.75rem 0 !important;
    }
}

/* Asegurar que el top bar desktop tenga el comportamiento correcto en desktop */
@media (min-width: 1025px) {
    .ma-desktop-topbar {
        /* padding: 0.3rem 0 !important;
        max-height: 60px !important; */
    }
}



.site-header {
    border-bottom: 1px solid var(--ma-border);
    margin bottom:40px!important;
}

/* Header Navigation Links - Maximum Priority Override */
.site-header .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

.site-header .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.site-header .navbar-nav,
.site-header nav,
.site-header .nav {
    display: flex !important;
    flex-wrap: wrap !important;
}

.site-header .navbar-nav .nav-pills .nav-link,
.site-header .nav-pills > li > a,
.site-header .nav-link,
.navbar-nav .nav-link {
    position: relative !important;
    color: #1f2937 !important; /* gris oscuro base */
    transition: color .2s ease !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.5rem 0.7rem !important;
    border-radius: 0 !important;
    letter-spacing: 0.025em !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important; /* Override adjustments-2023.css */
    box-shadow: none !important; /* Override adjustments-2023.css */
    display: inline-flex !important;
    align-items: center !important;
}

.nav-link::after {
    content: "–";
    position: absolute;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 80%;
    height: 1.5px;
    background-color: #203f59;
    transition: transform .25s ease;
    /* max-width: fit-content; */
}

.site-header .navbar-nav .nav-pills .nav-link:hover,
.site-header .nav-pills > li > a:hover,
.site-header .nav-link:hover,
.navbar-nav .nav-link:hover {
    color: #203f59 !important;
    border: none !important; /* Override adjustments-2023.css */
    box-shadow: none !important; /* Override adjustments-2023.css */
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Estados activos (submenu abierto) */
.nav-item.show > .nav-link {
    color: #203f59;
}

.nav-item.show > .nav-link::after {
    transform: translateX(-50%) scaleX(1);
}

/* Caret: rota cuando est� abierto */
.nav-item .caret {
    transition: transform .2s ease;
}

.nav-item.show .caret {
    transform: rotate(180deg);
}

/* Fix para dropdown - evitar doble underline de Bootstrap */
.nav-link.dropdown-toggle::after {
    display: none !important;
}

/* Altura consistente para todos los nav-links */
.nav-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}

/* SVG caret tama�o optimizado */
.nav-link .caret {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.site-header .nav-pills .nav-link.active,
.site-header .nav-pills > li > a.active,
.nav-pills .nav-link.active {
    color: #203f59 !important;
    background: transparent !important;
    border: none !important; /* Override adjustments-2023.css */
    box-shadow: none !important; /* Override adjustments-2023.css */
}

.nav-pills .nav-link.active::after {
    transform: translateX(-50%) scaleX(1); /* mantiene underline visible */
}

/* Remove focus outlines */
.nav-link:focus,
.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Dropdown styles */
.dropdown-menu {
    border: 1px solid var(--ma-border);
    border-radius: 0.5rem;
    box-shadow: var(--ma-shadow);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--ma-dark);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--ma-light);
    color: var(--ma-primary);
}



/* Mobile Navigation Styles */
.offcanvas {
    border: none;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    border-radius: 0 16px 16px 0;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.offcanvas-body {
    padding: 0;
    background: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .site-header .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--ma-border);
        margin-bottom: 0.25rem;
    }
    
    .site-header .nav-link:last-child {
        border-bottom: none;
    }
}

             /* Modern Header - Completely Independent CSS Namespace */
 .ma-modern-header {
     border-bottom: 1px solid var(--ma-border);
     margin-bottom: 40px;
     background: white;
     z-index: 1020;
     position: relative;              /* ✅ Crear contexto para dropdown */

 }

.ma-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.ma-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    width: 100%;
}

.ma-logo-section {
    width: 25%;
    flex: 0 0 25%;
}

.ma-nav-section {
    width: 75%;
    flex: 0 0 75%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ma-nav-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ma-nav-item {
    margin: 0;
}

.ma-nav-link {
    position: relative;
    color: #1f2937;
    transition: color .2s ease;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0;
    letter-spacing: 0.025em;
    text-decoration: none;
    border: none;
    box-shadow: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    outline: none;
    min-height: 42px;
}

/* Hover underline effect */
.ma-nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 80%;
    height: 1.5px;
    background-color: #203f59;
    transition: transform .25s ease;
}

.ma-nav-link:hover {
    color: #203f59;
    text-decoration: none;
    border: none;
    box-shadow: none;
    outline: none;
}

.ma-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Active state styling */
.ma-nav-link.active,
.ma-nav-link.active:hover {
    color: #203f59;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.ma-nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown states */
.ma-nav-item.show > .ma-nav-link {
    color: #203f59;
}

.ma-nav-item.show > .ma-nav-link::after {
    transform: translateX(-50%) scaleX(1);
}

/* Caret animation */
.ma-nav-item .caret {
    transition: transform .2s ease;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ma-nav-item.show .caret {
    transform: rotate(180deg);
}

/* Fix para dropdown - evitar doble underline de Bootstrap */
.ma-nav-link.ma-dropdown-toggle::after {
    display: none;
}

/* Focus states - completely clean */
.ma-nav-link:focus,
.ma-nav-link:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

.ma-modern-header svg,
.ma-modern-header svg:focus {
    outline: none;
    box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .ma-logo-section {
        width: 50%;
        flex: 0 0 50%;
    }
    
    .ma-nav-section {
        width: 50%;
        flex: 0 0 50%;
    }
    
    .ma-nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--ma-border);
        margin-bottom: 0.25rem;
    }
    
    .ma-nav-link:last-child {
        border-bottom: none;
    }
    
    /* FORZAR OCULTAR HEADER EN MOBILE */
    .ma-modern-header {
        display: none;
    }
}

/* Mobile menu overrides */
@media (max-width: 1024px) {
    /* Ocultar main header cuando mobile menu está abierto */
    body:has(.offcanvas.show) .ma-modern-header,
    .offcanvas.show ~ * .ma-modern-header {
        display: none;
    }
    
    /* Fallback para navegadores que no soportan :has() */
    .mobile-menu-open .ma-modern-header {
        display: none;
    }
}

/* Footer Modern Styling with CSS Variables */
:root {
    --ma-dark: #0f172a;
    --ma-muted: #94a3b8;
    --ma-mid: #64748b;
    --ma-primary: #203f59; /* color de logo */
    --ma-accent: #3b82f6;  /* acento moderno */
}

.site-footer {
    background: var(--ma-dark);
    color: #f8fafc;
}

/* Footer padding fixes */
.site-footer .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.site-footer .footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Mobile footer padding */
@media (max-width: 768px) {
    .site-footer .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Desktop: footer .row.g-4 — extra air vs container edges */
@media (min-width: 992px) {
    .site-footer .row.g-4 {
        margin: -24px -32px; /* WP140: was -45px, wider than the container padding (32px) -> 13px horizontal scroll at 992-1390px */
    }
}

.footer-title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 1rem;
    margin-top: 1.3rem!important;
}

.footer a {
    color: var(--ma-muted);
    text-decoration: none;
    transition: color .2s, transform .2s;
}

.footer a:hover {
    color: var(--ma-accent);
}

.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .95rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: .45rem 0;
    color: var(--ma-muted);
}

.footer-contact i {
FONT-SIZE: 1.3REM;
MARGIN-RIGHT: 0 !important;
color: var(--ma-accent);
}

/* Address typography hierarchy */
.footer-address-line1 {
    display: block;
    color: #e2e8f0;
    // font-weight: 600;
    line-height: 1.25;
}

.footer-address-line2 {
    display: block;

    /* color: var(--ma-muted); */

    /* font-size: .92rem; */

    line-height: 1.25;

    margin-top: 5px;

    color: #e2e8f0;
}

/* Flag icons styling */
.footer-contact .fi {
margin-right: 0 !important;
width: 20px;
height: 15px;
border-radius: 2px;
display: inline-block;
PADDING: 14PX 0PX;
}

.footer-social {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: var(--ma-muted);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.footer-social a:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
    transform: translateY(-1px);
}

/* Footer CTAs: must win over global .btn rules (e.g. adjustments-2023.css on category pages) */
.site-footer .footer-cta.d-grid {
    gap: 0.5rem !important; /* align with Bootstrap gap-2 */
}

/* Desktop: avoid overly stretched CTA buttons in footer */
@media (min-width: 992px) {
    .site-footer .footer-cta {
        max-width: 230px;
    }
}

.site-footer .footer-cta .btn {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.site-footer .footer-cta .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    padding: 0.6rem 1rem !important;
}

.site-footer .footer-cta .btn-primary:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    color: #111729 !important;
    background: #fff !important;
}

.site-footer .footer-cta .btn-outline-light {
    background: transparent !important;
    border: 1px solid #475569 !important;
    box-shadow: none !important;
    color: var(--ma-muted) !important;
    padding: 0.6rem 1rem !important;
}

.site-footer .footer-cta .btn-outline-light:hover {
    border-color: #fff !important;
    color: #111729 !important;
    background: #fff !important;
    transform: translateY(-1px);
}

.footer-news {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    padding-right: 0;
}

.footer-news input {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 8px;
    padding: .6rem .8rem;
    width: 100%;
    margin-right: 0;
}

.footer-news button {
    border: none;
    border-radius: 8px;
    padding: .6rem .9rem;
    background: var(--ma-primary);
    color: #fff;
}

.footer-news button:hover {
    filter: brightness(1.05);
}

.subfooter {
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--ma-mid);
    font-size: .9rem;
    padding-top: 1rem;
    margin-top: 2rem;
    padding-left: 0;
    padding-right: 0;
}

/* Ajustes responsivos */
@media (max-width: 991.98px) {
    .footer .col-lg + .col-lg {
        margin-top: 1.5rem;
    }
}

/* Footer section specific padding */
.site-footer .footer-contact {
    padding-left: 0;
    margin-left: 0;
}

.site-footer .footer-social {
    padding-left: 0;
    margin-left: 0;
}

.site-footer .footer-title {
    margin-top: 0 !important;
    margin-bottom: 1rem;
    padding-left: 0;
}

.site-footer nav {
    padding-left: 0;
}

.site-footer .footer-cta {
    padding-left: 0;
    padding-right: 0;
}

.site-footer .footer-news {
    padding-left: 0;
    padding-right: 0;
}

.site-footer .subfooter {
    padding-left: 0;
    padding-right: 0;
}

/* Discover More 2-column layout */
.site-footer .footer-title {
    margin-bottom: 1rem;
}

.site-footer nav {
    padding-left: 0;
    margin-left: 0;
}

.site-footer nav a {
    margin-bottom: 0.5rem;
    display: block;
}

/* Unify footer link stacks: same vertical rhythm as .ft-list (legacy 7px) replaced by 0.5rem gap */
.site-footer .footer-link-stack {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.site-footer nav.footer-link-stack a {
    margin-bottom: 0 !important;
}

/* Middle-column link hover: keep subtle and readable */
.site-footer nav.footer-link-stack a:hover {
    color: #fff !important;
}

/* Desktop: brand | centered link cluster | CTA — avoids huge gap before Get Started */
@media (min-width: 992px) {
    .site-footer .footer-mid-cluster .row {
        justify-content: center;
    }
    .site-footer .footer-mid-cluster .footer-mid-item {
        min-width: 0;
    }
}

/* Footer address link styling */
.site-footer .footer-contact li a {
    color: var(--ma-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-contact li a:hover {
    color: var(--ma-accent);
    text-decoration: none;
}

/* Mobile footer first column centering */
@media (max-width: 767.98px) {
    .site-footer .footer-contact {
        text-align: center !important;
    }
    
    .site-footer .footer-contact li {
        justify-content: center !important;
    }
    
    .site-footer .footer-social {
        justify-content: center !important;
    }
}

/* Mobile Logo Styling */
.mobile-logo {
    transition: transform 0.2s ease;
}

.mobile-logo:hover {
    transform: scale(1.05);
}

/* 
 * MOBILE TOP BAR - ISOLATED STYLES
 * =================================
 * Estos estilos están completamente aislados usando la clase .ma-mobile-topbar
 * para evitar conflictos con otros estilos en diferentes páginas.
 * Todos los estilos usan !important para máxima especificidad.
 */
@media (max-width: 1024px) {
    .ma-mobile-topbar {
        padding: 0.5rem 0 !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        background: linear-gradient(135deg, #2B73B6 0%, #4BB8E8 50%, #5BC2E8 100%) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1030 !important;
    }
    
    body {
        /* padding-top: 70px; */
    }
    
    .ma-mobile-topbar .mobile-logo {
        height: 32px !important;
    }
    
    .ma-mobile-topbar .btn-sm {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
    }
    
    .ma-mobile-topbar .btn-light {
        background: rgba(255,255,255,0.95) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        color: #203f59 !important;
    }
    
    .ma-mobile-topbar .btn-light:hover {
        background: rgba(255,255,255,1) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    .ma-mobile-topbar .btn-outline-light {
        border: 1px solid rgba(255,255,255,0.3) !important;
        color: white !important;
    }
    
    .ma-mobile-topbar .btn-outline-light:hover {
        background: rgba(255,255,255,0.1) !important;
        border-color: rgba(255,255,255,0.5) !important;
        transform: translateY(-1px) !important;
    }
    
    /* PROTECCIÓN ADICIONAL - Asegurar que ningún estilo externo interfiera */
    .ma-mobile-topbar * {
        box-sizing: border-box !important;
    }
    
    .ma-mobile-topbar .container {
        max-width: 100% !important;
        padding: 0px!important;
    }
    
    /* MOBILE TOP BAR BUTTONS - ISOLATED STYLES */
    .ma-mobile-topbar .btn-light {
        background: rgba(255,255,255,0.95) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        color: #203f59 !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .ma-mobile-topbar .btn-light:hover {
        background: rgba(255,255,255,1) !important;
        color: #203f59 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    .ma-mobile-topbar .btn-outline-light {
        border: 1px solid rgba(255,255,255,0.3) !important;
        color: white !important;
        background: transparent !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .ma-mobile-topbar .btn-outline-light:hover {
        background: rgba(255,255,255,0.1) !important;
        border-color: rgba(255,255,255,0.5) !important;
        color: white !important;
        transform: translateY(-1px) !important;
    }
    
    .ma-mobile-topbar .btn-outline-light:focus {
        outline: 2px solid rgba(255,255,255,0.5) !important;
        outline-offset: 2px !important;
    }
    
    /* PROTECCIÓN ADICIONAL MOBILE - Asegurar que ningún estilo externo interfiera */
    .ma-mobile-topbar .px-3 {
      margin: 0px!important;
    }
    
    .ma-mobile-topbar .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .ma-mobile-topbar .fw-medium {
        font-weight: 500 !important;
    }
    
    .ma-mobile-topbar .d-flex {
        display: flex !important;
    }
    
    .ma-mobile-topbar .gap-2 {
        gap: 0.5rem !important;
    }
    
    .ma-mobile-topbar .mobile-logo {
        height: 32px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
    
    /* Mobile menu header — balanced logo + premium close */
    .mobile-menu-header {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
        padding: 0.75rem 1rem !important;
        min-height: 60px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 2 !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
    }

    .mobile-menu-header.ma-mobile-offcanvas-header {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        align-items: center !important;
        justify-items: center !important;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .ma-mobile-header-spacer {
        width: 100%;
        height: 1px;
        visibility: hidden;
        pointer-events: none;
    }

    .ma-mobile-header-brand {
        justify-self: center !important;
        min-width: 0;
        max-width: 100%;
    }

    .ma-mobile-header-brand .mobile-logo {
        display: block;
        margin: 0 auto;
    }

    .ma-mobile-offcanvas-close {
        justify-self: end !important;
    }
    
    /* Mobile menu header elements styling */
    .mobile-menu-header .mobile-logo {
        height: 40px !important;
        filter: none !important;
    }
    
    .mobile-menu-header .btn-close {
        color: #0f172a;
        font-size: 1.2rem;
        opacity: 1;
        transition: all 0.2s ease;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-header .btn-close:hover {
        background: rgba(15, 23, 42, 0.06);
        border-color: rgba(15, 23, 42, 0.15);
        transform: scale(1.05);
    }
    
    .mobile-menu-header .btn-close:focus {
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
        outline: none;
    }
    
    /* Fix for broken menu icons */
    #mobileNav .acc-mobile[aria-expanded="true"]::after {
        content: "–" !important;
    }
}

/* Legacy site-header override - DEPRECATED, use ma-modern-header */


.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Smooth transitions */
.nav-link, .btn, .dropdown-item {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
.nav-link:focus, .btn:focus {
    outline: 2px solid var(--ma-primary);
    outline-offset: 2px;
}

/* Mobile specific styles */
@media (max-width: 1024px) {
    /* Top-bar styles moved to main mobile section above to avoid conflicts */
    
    /* FORZAR OCULTAR HEADER EN MOBILE - DEPRECATED, use ma-modern-header */
    
    .offcanvas {
        --bs-offcanvas-width: 320px;
    }
    
    .offcanvas-body {
        padding: 1rem;
    }
    
    /* Mobile buttons */
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Mobile offcanvas styling */
    .offcanvas-body {
        padding: 0;
        overflow-y: auto;
    }
    
    /* Simplificar estilos del offcanvas mobile */
    #mobileNav.offcanvas {
        --bs-offcanvas-width: 100vw;
        width: 100vw !important;
    }
    
    #mobileNav .offcanvas-body {
        padding: 0;
    }
    
    /* Asegurar que los paneles del acorde�n funcionen correctamente */
    #mobileNav .panel-mobile {
        display: block;
        max-height: none;
        overflow: visible;
    }
    
    #mobileNav .panel-mobile[hidden] {
        display: none !important;
    }
    
    #mobileNav .acc-mobile {
        cursor: pointer;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
        font-weight: 500;
        color: #333;
    }
    
    #mobileNav .acc-mobile:hover {
        background-color: rgba(0,0,0,0.05);
    }
    
    /* Quitar subrayado de los links de programas */
    #mobileNav .panel-mobile a {
        text-decoration: none !important;
        color: #555 !important;
        padding: 0.5rem 1rem 0.5rem 2rem !important;
        display: block !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    #mobileNav .panel-mobile a:hover {
        background-color: rgba(0,0,0,0.05) !important;
        color: #333 !important;
    }
    
    /* Arreglar símbolos del toggle */
    #mobileNav .acc-mobile::after {
        content: "+";
        float: right;
        font-weight: bold;
        font-size: 1.2rem;
        line-height: 1;
    }
    
    #mobileNav .acc-mobile[aria-expanded="true"]::after {
        content: "–";
    }
    
    /* Forzar visibilidad del offcanvas */
    #mobileNav.offcanvas.show {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Asegurar posicionamiento correcto */
    .offcanvas-start {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh;
        max-width: 100vw;
        border-right: 1px solid rgba(0, 0, 0, 0.2);
        background: white;
        z-index: 9999 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    /* Backdrop del offcanvas */
    .offcanvas-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9998;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    /* DEPRECATED - Now handled by ma-modern-header CSS */
}

/* Modern Container System */
/* Modern container system with Bootstrap 5 */
.container {
    max-width: 1300px !important;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px !important;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px !important;
    }
}
