/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    /* Colores Azules */
    --blue-top-bar: #3366CC;
    --blue-header: #004080;
    --blue-title: #003366;
    --blue-services: #241F5C;
    --blue-link: #0066CC;
    --blue-link-hover: #0055AA;
    
    /* Colores Verdes */
    --green-footer: #1e7e34;
    --green-button: #28a745;
    --green-button-hover: #218838;
    
    /* Neutros */
    --white: #FFFFFF;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-80: rgba(255, 255, 255, 0.8);
    --white-70: rgba(255, 255, 255, 0.7);
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #999999;
    --gray-border: #CCCCCC;
    
    /* Tipografía */
    --font-primary: 'Arial', 'Helvetica', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Transiciones */
    --transition-base: 0.3s ease;
    
    /* Z-index */
    --z-index-social-icons: 99999;
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   ACCESIBILIDAD - FOCUS Y SKIP LINK
   ============================================ */
/* Skip Link - Oculto por defecto, visible al hacer focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #29225C;
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #28AAE0;
    outline-offset: 2px;
}

/* Focus visible solo para accesibilidad básica (sin outline visible) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
}

/* Mejorar contraste en hover y focus */
.nav-link:focus-visible,
.social-icon:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.carousel-dot:focus-visible {
    outline: none;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: var(--blue-top-bar);
    color: var(--white);
    height: 50px;
    display: flex;
    align-items: center;
}

.top-bar-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left .gov-logo {
    display: block;
    height: 20px;
    width: auto;
    object-fit: contain;
}

.search-icon-btn {
    color: var(--white);
    font-size: 16px;
    background: transparent;
    padding: 5px;
    transition: var(--transition-base);
}

.search-icon-btn:hover {
    opacity: 0.8;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    position: absolute;
    top: 35px; /* Justo después del top-bar */
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.header-wrapper {
    max-width: 1200px;
    width: calc(100% - 80px);
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    overflow: visible;
    position: relative;
}

/* Barra Blanca de Navegación - Termina aquí */
.nav-bar-white {
    background-color: var(--white);
    color: var(--gray-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 15px 40px;
    padding-right: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.nav-bar-white::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background-color: var(--white);
    transform: skewX(-8deg);
    transform-origin: top right;
    z-index: -1;
}

.main-nav {
    display: flex;
    justify-content: flex-start;
}

.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #29225C;
    transition: var(--transition-base);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--blue-link);
    text-decoration: underline;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ============================================
   DESKTOP SUBMENUS (Nivel 2 y 3)
   ============================================ */
.nav-item-has-children {
    position: relative;
}

.nav-item-has-children > .nav-link {
    padding-bottom: 16px;
    margin-bottom: -16px;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(41, 34, 92, 0.15);
    padding: 8px 0;
    padding-top: 16px;
    z-index: 1000;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-item-has-children:hover > .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-submenu-link {
    display: block;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #29225C;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-submenu-link:hover {
    background-color: rgba(40, 170, 224, 0.08);
    color: var(--blue-link);
    padding-left: 24px;
}

.nav-subitem-has-children {
    position: relative;
}

.nav-subitem-has-children > .nav-submenu-link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    margin-left: 8px;
    vertical-align: middle;
}

.nav-submenu-level3 {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(41, 34, 92, 0.15);
    padding: 8px 0;
    z-index: 1001;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-subitem-has-children:hover > .nav-submenu-level3 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* ============================================
   DROPDOWN "MAS" - Desktop overflow menu
   ============================================ */
.nav-more-wrapper {
    position: relative;
}

.nav-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #29225C;
    padding: 5px 0;
    transition: var(--transition-base);
}

.nav-more-toggle:hover {
    color: var(--blue-link);
}

.nav-more-chevron {
    transition: transform 0.3s ease;
}

.nav-more-toggle[aria-expanded="true"] .nav-more-chevron {
    transform: rotate(180deg);
}

.nav-more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(41, 34, 92, 0.15);
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-more-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-more-link {
    display: block;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #29225C;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-more-link:hover {
    background-color: rgba(40, 170, 224, 0.08);
    color: var(--blue-link);
    padding-left: 24px;
}

/* ============================================
   MOBILE SUBMENUS (Accordion)
   ============================================ */
.mobile-nav-item-header {
    display: flex;
    align-items: center;
}

.mobile-nav-item-header .mobile-nav-link {
    flex: 1;
    margin: 0;
}

.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    border-left: 1px solid rgba(41, 34, 92, 0.1);
    cursor: pointer;
    color: #29225C;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 0 12px 12px 0;
}

.mobile-submenu-toggle:hover {
    background-color: rgba(40, 170, 224, 0.08);
    color: var(--blue-link);
}

.mobile-submenu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding: 4px 0 4px 16px;
}

.mobile-submenu.active {
    display: block;
}

.mobile-nav-link-sub {
    font-size: 14px;
    font-weight: 500;
    padding: 14px 16px;
}

.mobile-nav-link-sub2 {
    font-size: 13px;
    font-weight: 400;
    padding: 12px 16px;
}

/* ============================================
   MENÚ HAMBURGUESA (Mobile/Tablet)
   ============================================ */
.hamburger-menu-btn {
    display: none; /* Oculto por defecto, visible solo en tablets/móviles */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: relative;
    margin-left: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(41, 34, 92, 0.2);
    gap: 5px;
}

.hamburger-line {
    width: 24px;
    height: 3.5px;
    background-color: #29225C;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
}

.hamburger-menu-btn:hover {
    background-color: #29225C;
    box-shadow: 0 4px 12px rgba(41, 34, 92, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.hamburger-menu-btn:hover .hamburger-line {
    background-color: var(--white);
}

.hamburger-menu-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 6px rgba(41, 34, 92, 0.2);
}

/* Estado activo (menú abierto) - Ocultar el botón hamburguesa cuando el menú está abierto */
.hamburger-menu-btn[aria-expanded="true"] {
    display: none; /* Ocultar el botón hamburguesa cuando el menú está abierto */
}

/* Overlay del menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--white) 0%, #f8f9fa 100%);
    box-shadow: -4px 0 24px rgba(41, 34, 92, 0.2);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Header del menú móvil */
.mobile-menu-header {
    padding: 12px 20px 12px;
    border-bottom: 2px solid rgba(41, 34, 92, 0.1);
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(41, 34, 92, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #29225C;
    margin: 0;
    padding: 0;
    flex: 1;
}

/* Botón de cierre del menú móvil */
.mobile-menu-close-btn {
    width: 44px;
    height: 44px;
    background-color: #29225C;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(41, 34, 92, 0.25);
    flex-shrink: 0;
    margin-left: 12px;
}

.mobile-menu-close-btn:hover {
    background-color: #3a2f7a;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(41, 34, 92, 0.35);
}

.mobile-menu-close-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(41, 34, 92, 0.2);
}

.close-icon {
    font-size: 28px;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-overlay[aria-hidden="false"] {
    right: 0;
}

/* Menú móvil */
.mobile-menu {
    padding: 20px 16px;
    flex: 1;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.mobile-nav-link {
    display: block;
    padding: 18px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #29225C;
    text-decoration: none;
    background-color: var(--white);
    border: 1px solid rgba(41, 34, 92, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(41, 34, 92, 0.08);
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #28AAE0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: rgba(40, 170, 224, 0.08);
    color: #28AAE0;
    padding-left: 28px;
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(41, 34, 92, 0.12);
    border-color: rgba(40, 170, 224, 0.3);
}

.mobile-nav-link:hover::before,
.mobile-nav-link:focus::before {
    transform: scaleY(1);
}

.mobile-nav-link:active {
    background-color: rgba(40, 170, 224, 0.15);
    transform: translateX(2px);
}

/* Overlay oscuro de fondo cuando el menú está abierto */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 34, 92, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Sección Pagos en Línea - Fuera de la barra blanca */
.pagos-section {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 20px;
    position: relative;
}

.pagos-section-link {
    text-decoration: none;
    color: inherit;
}

.pagos-section-link:hover .pse-logo-container {
    transform: scale(1.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pse-logo-container {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pse-circle {
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: none;
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    z-index: 150;
    padding: 0;
}

.btn-pse-circle:hover {
    transform: translateY(-50%) translateX(-50%) scale(1.1);
    filter: brightness(1.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pse-circle:active {
    transform: translateY(-50%) translateX(-50%) scale(1.05);
}

.pse-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex-shrink: 0;
}

.pse-logo-img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
}

.pagos-banner,
.tramites-banner {
    padding: 10px 18px 10px 58px;
    border-radius: 0 8px 8px 0;
    border-top-left-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%);
    position: relative;
    z-index: 10;
    margin-left: 50px;
    margin-top: 0;
    margin-bottom: 0;
    min-width: 220px;
    width: fit-content;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.pagos-banner {
    background-color: #28AAE0;
    color: var(--white);
}

.tramites-banner {
    background-color: #29225C;
    color: var(--white);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagos-text,
.tramites-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    width: 100%;
    min-width: fit-content;
    margin: 0;
    padding: 0;
    text-align: left;
}

.pagos-line1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.pagos-line2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding-left: 4px;
}

/* Sección Trámites y Servicios - Fuera de la barra blanca */
.tramites-section {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 20px;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    line-height: normal;
    vertical-align: baseline;
}

.tramites-section:hover .btn-tramites-circle {
    transform: translateY(-50%) translateX(-50%) scale(1.1);
    filter: brightness(1.2);
}

.tramites-section-link {
    text-decoration: none;
    color: inherit;
}

.tramites-section-link:hover .tramites-logo-container {
    transform: scale(1.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tramites-logo-container {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tramites-section:hover .tramites-banner {
    background-color: #3a2f7a;
    box-shadow: 0 4px 8px rgba(41, 34, 92, 0.3);
    transform: translateY(-2px);
}

.tramites-section:active .btn-tramites-circle {
    transform: translateY(-50%) translateX(-50%) scale(1.05);
}

.tramites-section:active .tramites-banner {
    transform: translateY(0);
}

.btn-tramites-circle {
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    z-index: 150;
    padding: 0;
}

.tramites-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.tramites-logo-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    object-position: center;
}


.tramites-line1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.tramites-line2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding-left: 4px;
}

/* Botones antiguos removidos - ahora se usan las secciones pagos y tramites */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 0; /* La imagen comienza justo después del top-bar */
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-social {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-index-social-icons);
    pointer-events: auto;
    isolation: isolate;
}

.social-icons-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #29225C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.social-icon.whatsapp {
    background-color: #A6C63A;
}

.social-icon.whatsapp:hover {
    background-color: #8fb02d;
}

.social-icon:hover {
    background-color: #3a2f7a;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 12px rgba(41, 34, 92, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon.whatsapp:hover {
    background-color: #8fb02d;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 12px rgba(166, 198, 58, 0.4);
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white-70);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-dot.active {
    background-color: var(--white);
    width: 14px;
    height: 14px;
}

.carousel-dot:hover,
.carousel-dot:hover {
    background-color: var(--white-90);
    transform: scale(1.2);
    transition: all 0.3s ease;
}

/* ============================================
   SERVICES BAR
   ============================================ */
.services-bar {
    background-color: #29225C;
    padding: 50px 40px;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-base);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 90px;
    height: 90px;
    background-color: #28AAE0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    padding: 15px;
}

.service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
    max-width: 180px;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
    padding: 80px 40px;
    background-color: var(--white);
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 50px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 25px 0;
    margin-bottom: 12px;
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 20px 25px 25px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-dark);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    color: var(--gray-medium);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-actions {
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    background-color: #28AAE0;
    color: var(--white);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(40, 170, 224, 0.2);
}

.btn-primary:hover {
    background-color: #2198c7;
    box-shadow: 0 6px 16px rgba(40, 170, 224, 0.4);
    transform: translateY(-3px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-section {
    padding: 80px 40px;
    background-color: #29225C;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.portfolio-left {
    position: relative;
}

.portfolio-image-container {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-image-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-direction: row;
}

.portfolio-text-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: flex-end;
}

.portfolio-company-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.4;
}

.portfolio-title-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-main-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.portfolio-box {
    display: inline-block;
    background-color: #28AAE0;
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.portfolio-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #28AAE0;
    line-height: 1;
}

.portfolio-text-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    align-self: flex-end;
    flex-wrap: wrap;
}

.portfolio-phone-icon {
    font-size: 21px;
    color: #28AAE0;
}

.portfolio-phone-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.portfolio-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portfolio-title-line1,
.portfolio-title-line2 {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
    height: auto;
}

.portfolio-description {
    font-size: 18px;
    color: var(--white-90);
    line-height: 1.6;
    margin-bottom: 30px;
}

.portfolio-buttons {
    display: flex;
    gap: 20px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    background-color: #A7CB36;
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 2px 4px rgba(167, 203, 54, 0.2);
}

.btn-secondary:hover {
    background-color: #8FB02D;
    box-shadow: 0 6px 16px rgba(167, 203, 54, 0.4);
    transform: translateY(-3px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Botón Ver más - Color azul de Pagos en Línea */
.btn-ver-mas {
    background-color: #28AAE0;
}

.btn-ver-mas:hover {
    background-color: #2198c7;
    box-shadow: 0 6px 16px rgba(40, 170, 224, 0.4);
    transform: translateY(-3px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   PROMO SLIDER SECTION
   ============================================ */
.promo-slider-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #1a1550 0%, #29225C 50%, #1e1a4a 100%);
    position: relative;
    overflow: hidden;
}

.promo-slider-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(40, 170, 224, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.promo-slider-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.promo-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.promo-slide.active {
    display: block;
    opacity: 1;
}

.promo-slide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.promo-slide-left {
    position: relative;
}

.promo-slide-image-container {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.promo-slide-image-container .promo-slide-image {
    border-radius: 12px;
}

.promo-slide-image-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.promo-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
}

.promo-slide-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.promo-slide-overlay-top {
    display: flex;
    justify-content: flex-start;
}

.promo-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.promo-slide-overlay-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-slide-highlight {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.promo-slide-box {
    display: inline-block;
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    align-self: flex-start;
}

.promo-slide-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-slide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.promo-slide-title-line1,
.promo-slide-title-line2 {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.promo-slide-description {
    font-size: 18px;
    color: var(--white-90);
    line-height: 1.7;
    margin-bottom: 30px;
}

.promo-slide-buttons {
    display: flex;
    gap: 20px;
}

.btn-promo-primary {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-promo-primary:hover {
    filter: brightness(0.9);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.btn-promo-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-promo-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
}

/* Promo Slider Dots */
.promo-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.promo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.promo-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.promo-dot.active {
    background-color: #28AAE0;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(40, 170, 224, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background-color: #A7CB36;
    color: var(--white);
    padding: 60px 40px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-central {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
    display: block;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #29225C;
    margin-bottom: 20px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.footer-title:not(:first-child) {
    margin-top: 25px;
}

.footer-icon {
    font-size: 32px;
    flex-shrink: 0;
    display: inline-block;
}

.footer-text {
    flex: 1;
}

.footer-text p {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #29225C;
    line-height: 1.4;
    margin-bottom: 8px;
}

.footer-text p:last-child {
    margin-bottom: 0;
}

.footer-text p strong {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #29225C;
}

.footer-note {
    font-size: 13px;
    font-style: italic;
    color: #29225C;
    opacity: 0.8;
}

/* ============================================
