/* --- VARIABLES Y RESET --- */
:root {
    --primary-blue: #0A2540;
    --accent-blue: #00A8E8;
    --accent-teal: #06B6D4;
    --text-white: #FFFFFF;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #F8FAFC;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Cards (global) */
    --card-width: 320px;      /* ancho ideal */
    --card-min-width: 260px;  /* ancho mínimo antes de bajar a 1 columna */
    --card-height: 240px;     /* alto consistente */
    --cards-gap: 10px;
    --card-content-gap: 2px; /* espacio entre icono y bloque de texto */
    --card-text-gap: 5px;     /* espacio entre título y descripción */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    position: relative;
    min-width: 320px;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    min-width: 320px;
}

/* ==========================================
   FOOTER INSTITUCIONAL
========================================== */
.footer {
    background: #0a2540;
    color: white;
    margin-top: auto;
}

.footer-main {
    padding: 50px 0 35px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

/* Certificaciones en el footer */
.footer-certifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.footer-certifications-img {
    max-width: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-brand-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 280px;
}

.footer-column-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    border-radius: 2px;
}

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

.footer-list li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.footer-list li i {
    color: var(--accent-blue);
    font-size: 0.85rem;
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.footer-schedule {
    padding-left: 26px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-credit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-credit span {
    color: var(--accent-blue);
    font-weight: 600;
}

/* NAVBAR */
header {
    background-color: white;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
}

.logo-divider {
    height: 25px;
    width: 1px;
    background-color: #ccc;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-blue);
}

nav a:hover::after {
    width: 100%;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* HERO */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 5%;
    background: url('img/banner.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(6, 26, 46, 0.85) 50%, rgba(0, 168, 232, 0.3) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(0, 166, 232, 0) 0%, transparent 50%);
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    padding-right: 20px;
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 168, 232, 0.2);
    border: 1px solid rgba(0, 168, 232, 0.4);
    border-radius: 50px;
    color: #7dd3fc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    color: var(--text-white);
    font-size: 5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 400;
    text-align: justify;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description-secondary {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
    text-align: justify;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* CARDS */
/* ==========================================
   CARDS CONTAINER - AUTO AJUSTE POR ESPACIO (FLEX WRAP)
   - Se colocan en una misma fila hasta que no haya espacio
   - Luego bajan automáticamente a la siguiente fila
========================================== */
.cards-container {
    display: flex;
    justify-content: center;
    gap: var(--cards-gap);
    padding: 0 5%;
    padding-top: 20px;
    margin-top: -80px;
    margin-bottom: 180px;
    position: relative;
    flex-wrap: wrap;
    z-index: 10;
    overflow: visible !important;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    box-sizing: border-box;
}

/* ==========================================
   CARDS - TAMAÑO ÚNICO GLOBAL PARA TODO EL PROYECTO
   
   ESPECIFICACIONES ÚNICAS (sin variaciones):
   - Tamaño: 320px × 260px FIJO (más espacio para texto)
   - Padding: 32px UNIFORME
   - Gap: 20px entre elementos
   - Border-radius: 20px
   - Icon box: 70px × 70px FIJO
   - Títulos: 1rem FIJO
   - Descripción: 0.88rem FIJO
   
   NO HAY CARDS PEQUEÑAS - TODAS SON IGUALES
========================================== */
.card,
.card-small {
    cursor: pointer;
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: var(--card-width);
    max-width: 100%;
    min-width: var(--card-min-width);
    height: var(--card-height);
    min-height: var(--card-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: var(--card-content-gap);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    /* Clave para el auto-ajuste: fijo “ideal”, pero permite bajar de fila */
    flex: 0 1 var(--card-width);
}

/* Borde superior animado */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: var(--transition);
}

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

/* Efectos hover unificados */
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 168, 232, 0.15);
}

.card:hover .icon-box {
    transform: scale(1.15) rotate(5deg);
}

/* ==========================================
   CARDS CON LINKS SEMÁNTICOS
========================================== */
a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 1 var(--card-width);
    min-width: var(--card-min-width);
    max-width: 100%;
}

a.card-link:hover,
a.card-link:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

a.card-link .card {
    width: 100%;
    margin: 0;
}

/* ==========================================
   CARDS DESHABILITADAS (NO DISPONIBLES)
   Solo visibles en hover
========================================== */
.card-disabled {
    cursor: not-allowed !important;
    position: relative;
    overflow: visible !important;
    /* Por defecto se ve como un card normal */
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Estilos solo en hover */
.card-disabled:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 2px dashed #94a3b8 !important;
    border-color: #64748b !important;
}

.card-disabled::before {
    display: none !important;
}

/* Badge "No Disponible" - oculto por defecto */
.card-badge-disabled {
    position: absolute;
    top: -12px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 10;
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Badge visible solo en hover */
.card-disabled:hover .card-badge-disabled {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
    }
}

/* Overlay con candado - oculto por defecto */
.card-overlay-disabled {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(3px);
    border: 2px solid rgba(100, 116, 139, 0.3);
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* Candado visible solo en hover */
.card-disabled:hover .card-overlay-disabled {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.card-overlay-disabled i {
    font-size: 1.5rem;
    color: #475569;
    opacity: 0.7;
}

/* Iconos y texto - normales por defecto, grises en hover */
.card-disabled .icon-box {
    opacity: 1;
    filter: none;
    transition: all 0.3s ease;
}

.card-disabled:hover .icon-box {
    opacity: 0.4;
    filter: grayscale(100%);
}

.card-disabled .card-text h4 {
    color: var(--primary-blue) !important;
    transition: color 0.3s ease;
}

.card-disabled:hover .card-text h4 {
    color: #64748b !important;
}

.card-disabled .card-text p {
    color: var(--text-gray) !important;
    transition: color 0.3s ease;
}

.card-disabled:hover .card-text p {
    color: #94a3b8 !important;
}

/* Tooltip informativo mejorado - más legible */
.card-tooltip {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: white;
    padding: 18px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 99999;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 350px;
    max-width: 420px;
    white-space: normal;
    text-align: center;
    line-height: 1.6;
}

.card-tooltip i {
    font-size: 1.3rem;
    color: #93c5fd;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top-color: #1e3a5f;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.card-disabled:hover .card-tooltip,
.card-disabled.active .card-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Efecto de "rebote" al hacer click */
.card-disabled.active {
    animation: bounce-card 0.5s ease;
}

@keyframes bounce-card {
    0%, 100% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Responsive para cards deshabilitadas */
@media (max-width: 768px) {
    .card-tooltip {
        min-width: 280px;
        max-width: 320px;
        padding: 16px 20px;
        font-size: 0.9rem;
        bottom: calc(100% + 15px);
    }
    
    .card-tooltip i {
        font-size: 1.1rem;
    }

    .card-overlay-disabled {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .card-overlay-disabled i {
        font-size: 1.3rem;
    }

    .card-badge-disabled {
        font-size: 0.7rem;
        padding: 5px 12px;
        top: -10px;
        right: 10px;
    }
    
    /* Asegurar animación en móvil */
    .card-disabled:hover .card-badge-disabled {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .card-tooltip {
        min-width: 240px;
        max-width: 280px;
        padding: 14px 18px;
        font-size: 0.85rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.9);
    }

    .card-disabled:hover .card-tooltip,
    .card-disabled.active .card-tooltip {
        transform: translateX(-50%) scale(1);
    }

    .card-overlay-disabled {
        width: 45px;
        height: 45px;
        bottom: 12px;
        right: 12px;
    }

    .card-overlay-disabled i {
        font-size: 1.2rem;
    }
    
    /* Asegurar animación en móvil pequeño */
    .card-disabled:hover .card-badge-disabled {
        transform: translateY(0) scale(1);
    }
}


/* =========================================
   SUBMENU FLOTANTE - POSICIÓN FIJA DERECHA
   ========================================= */
.floating-submenu {
    position: fixed;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-submenu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ocultar menú móvil en desktop */
.mobile-menu-toggle,
.mobile-submenu-panel,
.mobile-menu-overlay {
    display: none;
}

/* Items del submenu flotante - Estilo glassmorphism con mejor contraste */
.floating-submenu .submenu-item {
    width: 105px;
    height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    text-align: center;
    padding: 8px;
    background: rgba(0, 168, 232, 0.92);
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 8px 32px rgba(0, 168, 232, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    transform: translateX(120px);
    transition: all 0.3s ease;
}

/* Animación escalonada de derecha a izquierda */
.floating-submenu.active .submenu-item {
    animation: slideInFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.floating-submenu.active .submenu-item:nth-child(1) { animation-delay: 0.05s; }
.floating-submenu.active .submenu-item:nth-child(2) { animation-delay: 0.12s; }
.floating-submenu.active .submenu-item:nth-child(3) { animation-delay: 0.19s; }
.floating-submenu.active .submenu-item:nth-child(4) { animation-delay: 0.26s; }
.floating-submenu.active .submenu-item:nth-child(5) { animation-delay: 0.33s; }

.floating-submenu .submenu-item:hover {
    background: rgba(0, 200, 255, 0.98);
    border-color: rgba(255, 255, 255, 1);
    transform: translateX(-8px) scale(1.08);
    box-shadow: 
        0 12px 40px rgba(0, 168, 232, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(120px) scale(0.7);
    }
    60% {
        opacity: 1;
        transform: translateX(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.floating-submenu .submenu-item i {
    font-size: 1.3rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.floating-submenu .submenu-item span {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    max-width: 90px;
    max-height: 50px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-submenu .submenu-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: white;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.7));
}

/* Tooltip para los items del menú circular */
.floating-submenu .submenu-item {
    position: relative;
}

.floating-submenu .submenu-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 120px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.98), rgba(0, 168, 232, 0.95));
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    width: 220px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10001;
}

.floating-submenu .submenu-item::after {
    content: '';
    position: absolute;
    right: 112px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: rgba(10, 37, 64, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
}

.floating-submenu .submenu-item:hover::before,
.floating-submenu .submenu-item:hover::after {
    opacity: 1;
    visibility: visible;
}


/* ==========================================
   ICON BOX - TAMAÑO ÚNICO GLOBAL
========================================== */
.icon-box {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    flex-shrink: 0;
}

/* Normalizar caja del icono (evita que algunos glyphs se vean “más grandes/altos”) */
.icon-box i {
    line-height: 1;
    display: block;
}

/* Eliminar cualquier override de card-small */
.card-small .icon-box {
    font-size: 3rem;
    width: 70px;
    height: 70px;
}

/* Icon Colors */
.icon-blue {
    background: linear-gradient(#00c6ff, #0072ff);
    background: -webkit-linear-gradient(#00c6ff, #0072ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-teal {
    background: linear-gradient(#11998e, #38ef7d);
    background: -webkit-linear-gradient(#11998e, #38ef7d);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-green {
    background: linear-gradient(#00b09b, #96c93d);
    background: -webkit-linear-gradient(#00b09b, #96c93d);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   CARD TEXT - TAMAÑO ÚNICO GLOBAL
========================================== */
.card-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--card-text-gap);
    flex: 1;
    text-align: center;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}


/* Títulos h3 y h4 - TAMAÑO ÚNICO */
.card-text h3,
.card-text h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--primary-blue);
    margin: 0;
    padding: 0;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Descripciones - TAMAÑO ÚNICO con mejor legibilidad */
.card-text p {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* ==========================================
   PARTNERS SECTION
========================================== */
.partners-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 840px;
    margin: 1 auto;
}

.partners-track-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.partners-track-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.partners-track {
    display: flex;
    gap: 30px;
    scroll-behavior: smooth;
    padding: 10px 0;
}

/* Estilos antiguos de carrusel eliminados - Usar sección LOGOS SECTION abajo */


/* ==========================================
   PARTNERS SECTION - LOGOS ESTÁTICOS (SIN CARRUSEL)
========================================== */

/* ==========================================
   LOGOS SECTION - ESTILO INVEMAR OFICIAL
   Logos grandes, diseño plano, sin cards
========================================== */

.partners-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px 70px;
  padding: 60px 80px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ocultar estructura del carrusel - usar display: contents */
.partners-slider-container,
.partners-track-wrapper,
.partners-track {
  display: contents;
}

/* Ocultar flechas del carrusel */
.partners-arrow {
  display: none !important;
}

/* Logo individual - SIN card, completamente plano */
.partner-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.partner-logo-card:hover {
  opacity: 0.85;
}

.partner-logo {
  height: 100px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
  transition: opacity 0.3s ease;
}

.partner-logo-card:hover .partner-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Controles del carrusel ya ocultos arriba */

.partners-slider-container {
  display: contents;
}

.partners-track-wrapper {
  display: contents;
}

.partners-track {
  display: contents;
}


.static-logos-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.static-logos-group img {
    height: 55px;
}

.carousel-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-arrow {
    background: none;
    border: none;
    font-size: 2rem;
    color: #003366;
    cursor: pointer;
    padding: 0 10px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    align-items: center;
    overflow: hidden;
    max-width: 600px;
}

.carousel-track img {
    height: 40px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    /* Submenu flotante en tablets */
    .floating-submenu {
        right: 20px;
        gap: 10px;
    }

    .floating-submenu .submenu-item {
        width: 78px;
        height: 78px;
        border: 3px solid rgba(255, 255, 255, 0.85);
    }

    .floating-submenu .submenu-item i {
        font-size: 1.3rem;
    }

    .floating-submenu .submenu-item span {
        font-size: 0.62rem;
        font-weight: 700;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .cards-container {
        flex-wrap: wrap;
        max-width: 100%;
        gap: 24px;
    }

    /* Cards: auto-ajuste + wrap (sin forzar columnas) */
    .card,
    .card-small {
        width: var(--card-width);
        min-width: var(--card-min-width);
        max-width: 100%;
        height: var(--card-height);
        min-height: var(--card-height);
        flex: 0 1 var(--card-width);
    }
}

@media (max-width: 768px) {

    /* Ocultar menú hamburguesa del header en móvil */
    .menu-icon {
        display: none;
    }

    /* Ocultar navegación del header en móvil (usar menú lateral en su lugar) */
    header nav {
        display: none;
    }

    .hero {
        min-height: 500px;
        padding: 60px 20px;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 16px;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.15rem;
        margin-bottom: 14px;
    }

    .hero-description-secondary {
        font-size: 1.05rem;
    }

    .cards-container {
        margin-top: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 20px;
    }

    /* Cards: auto-ajuste + wrap */
    .card,
    .card-small {
        width: var(--card-width);
        min-width: var(--card-min-width);
        max-width: 100%;
        height: var(--card-height);
        min-height: var(--card-height);
        flex: 0 1 var(--card-width);
    }

    .card-text h3,
    .card-text h4 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .card-text p {
        font-size: 0.92rem;
        line-height: 1.5;
        text-align: justify;
    }

    .partners-section {
        gap: 40px 50px;
        padding: 50px 5%;
    }

    .partner-logo {
        height: 85px;
        max-width: 240px;
    }
}

/* Móviles muy pequeños: 1 card por fila (sin overflow horizontal) */
/* Pantallas extra pequeñas (320px - dispositivos más pequeños) */
@media (max-width: 360px) {
    .card,
    .card-small {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: var(--card-height);
        flex: 1 1 100%;
        padding: 24px;
    }

    .card-text h3,
    .card-text h4 {
        font-size: 0.95rem;
    }

    .card-text p {
        font-size: 0.85rem;
        text-align: justify;
    }

    .partners-section {
        padding: 40px 4%;
        gap: 30px 25px;
    }

    .partner-logo {
        height: 70px;
        max-width: 180px;
    }

    .mobile-menu-toggle {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
}


/* LOGO + TITULO */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 55px;
  height: auto;
}

.texto {
    font-size: 0.9rem;
    color: white;
    
}

#cont {
    margin-top: 3px;
}


.brand-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-top: -8px;
  margin-bottom: 28px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  opacity: 0.98;
}

/* ==========================================
        SCROLL BEHAVIOR
========================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================
        SELECTION COLORS
========================================== */

::selection {
    background: var(--accent-blue);
    color: white;
}

::-moz-selection {
    background: var(--accent-blue);
    color: white;
}


/* Footer responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
    }

    .footer-brand {
        grid-column: span 2;
        align-items: center;
        text-align: center;
    }

    .footer-certifications {
        grid-column: span 2;
        margin-top: 20px;
    }

    .footer-certifications-img {
        max-width: 140px;
    }

    .footer-brand-text {
        max-width: 400px;
    }

    .footer-logo {
        height: 70px;
    }

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

    .footer-column {
        text-align: center;
    }

    .footer-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-certifications {
        grid-column: span 1;
        margin-top: 10px;
    }

    .footer-certifications-img {
        max-width: 120px;
    }

    .footer-logo {
        height: 65px;
    }

    .footer-main {
        padding: 40px 0 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 15px 20px;
    }

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

    /* Partners responsive - logos planos */
    .partners-section {
        padding: 35px 20px;
        gap: 30px 40px;
    }

    .partner-logo {
        height: 80px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        height: 55px;
    }

    .footer-brand-text {
        font-size: 0.8rem;
    }

    .footer-column-title {
        font-size: 0.9rem;
    }

    .footer-list li {
        font-size: 0.8rem;
    }

    .footer-main {
        padding: 30px 0 20px;
    }
}

/* Hover duplicado eliminado - se usa el definido arriba en la sección de cards */

/* Estilos hover adicionales eliminados - se usan los unificados definidos arriba */


/* ==========================================
        MODAL ACTUALIZACIÓN
========================================== */

/* Fondo oscuro con blur */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 26, 46, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Caja del modal */
.modal-box {
    background: white;
    width: 90%;
    max-width: 480px;
    padding: 40px 35px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

/* Barra superior de advertencia */
.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444);
}

/* Contenedor del icono */
.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
    animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
    }
    50% {
        box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
    }
}

/* Icono */
.modal-icon {
    font-size: 2.5rem;
    color: #d97706;
    animation: bounceIcon 2s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Título */
.modal-box h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Texto */
.modal-box p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 400;
}

/* Botón */
.modal-box button {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.modal-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Estado visible */
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.show .modal-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ==========================================
      INDICADOR FIJO DE ACTUALIZACIÓN
========================================== */

.update-indicator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary-blue), #003f6b);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: pulseGlow 2.5s infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ícono sin rotación */
.update-indicator i {
    font-size: 0.9rem;
}

/* Animación glow */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(0,168,232,0.0);
    }
    50% {
        box-shadow: 0 0 20px rgba(0,168,232,0.45);
    }
    100% {
        box-shadow: 0 0 0 rgba(0,168,232,0.0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .update-indicator {
        font-size: 0.7rem;
        padding: 8px 14px;
        bottom: 15px;
        right: 15px;
    }
}

.modal1 {
    text-align: justify;
}

/* ==========================================
        MAIN CONTENT WRAPPER
========================================== */

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================
        BREADCRUMB NAVIGATION
========================================== */

.breadcrumb {
    padding: 18px 5%;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #cbd5e1;
    font-weight: 300;
}

/* ==========================================
        SECTION HEADER
========================================== */

.section-header {
    background: linear-gradient(135deg, #0A2540 0%, #0d3a5f 50%, #00A8E8 100%);
    padding: 80px 5%;
    color: white;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.section-header-content {
    position: relative;
    z-index: 1;
}

.section-header-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-header-content h1 i {
    margin-right: 12px;
    opacity: 0.9;
}

.section-header-content p {
    font-size: 1.35rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* ==========================================
        TARJETAS PEQUEÑAS (NIVEL 3+)
========================================== */

/* Cards-small - MISMO MARGIN-TOP que cards-container normal */
.cards-small {
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
    margin-top: -80px;
    justify-content: center;
    gap: var(--cards-gap);
}

/* ==========================================
   CARD SMALL - ELIMINADO - TODAS LAS CARDS SON IGUALES
   No hay diferencia entre .card y .card-small
========================================== */
/* Los estilos de .card-small se heredan de .card arriba */

/* RESPONSIVE BREADCRUMB Y SECTION HEADER */

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.75rem;
        padding: 12px 3%;
    }

    .section-header-content h1 {
        font-size: 1.8rem;
    }

    .section-header-content p {
        font-size: 1.1rem;
    }

    /* Cards: auto-ajuste + wrap */
    .card,
    .card-small {
        width: var(--card-width);
        min-width: var(--card-min-width);
        max-width: 100%;
        height: var(--card-height);
        min-height: var(--card-height);
        padding: 32px;
        flex: 0 1 var(--card-width);
    }

    .section-header {
        padding: 40px 5%;
        min-height: 150px;
    }

    .section-header-content h1 {
        font-size: 1.8rem;
    }

    .section-header-content p {
        font-size: 1.1rem;
    }

    /* Cards en una columna en móviles */
    .cards-container {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    /* Cards: auto-ajuste + wrap */
    .card,
    .card-small {
        width: var(--card-width);
        min-width: var(--card-min-width);
        max-width: 100%;
        height: var(--card-height);
        min-height: var(--card-height);
        flex: 0 1 var(--card-width);
    }

    /* Prevenir overflow horizontal en móviles */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    main {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    .cards-container {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 3% !important;
    }

    .hero {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .partners-section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Ocultar menú circular en móviles */
    .floating-submenu {
        display: none;
    }

    /* Botón hamburguesa flotante para móviles */
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(0, 168, 232, 0.95), rgba(6, 182, 212, 0.95));
        color: white;
        border: none;
        font-size: 1.3rem;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0, 168, 232, 0.5);
        cursor: pointer;
        z-index: 1003 !important;
        transition: all 0.3s ease;
        margin: 0;
        padding: 0;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    .mobile-menu-toggle i {
        transition: transform 0.3s ease;
    }

    .mobile-menu-toggle.active i {
        transform: rotate(90deg);
    }

    /* Panel lateral desplegable */
    .mobile-submenu-panel {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-blue) 0%, #0d3a5f 100%);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        z-index: 1002;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 80px 20px 30px;
    }

    .mobile-submenu-panel.active {
        right: 0;
    }

    /* Overlay oscuro */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Items del menú móvil */
    .mobile-submenu-panel .submenu-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 18px 20px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .mobile-submenu-panel .submenu-item:hover,
    .mobile-submenu-panel .submenu-item:active {
        background: rgba(0, 168, 232, 0.6);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateX(-5px);
    }

    .mobile-submenu-panel .submenu-item i {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.9);
        flex-shrink: 0;
        width: 30px;
        text-align: center;
    }

    .mobile-submenu-panel .submenu-item span {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.3;
        color: white;
    }

    /* Título del panel */
    .mobile-submenu-panel .panel-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: white;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        text-align: center;
    }

    /* Botón cerrar en el panel */
    .mobile-submenu-panel .close-panel {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-submenu-panel .close-panel:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }
}


/* ==========================================
   HEADER TEMÁTICAS - BANNER 2
========================================== */

.section-header.section-tematicas {
    position: relative;
    min-height: 420px;

    display: flex;
    align-items: center;

    padding: 60px 5%;

    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 46, 0.85) 35%,
            rgba(6, 26, 46, 0.55) 60%,
            rgba(6, 26, 46, 0.2) 100%
        ),
        url("img/banner2.png");

    background-size: cover;
    background-position: center;
}

/* ==========================================
   HEADER TEMÁTICAS - BANNER 3
========================================== */

.section-header.section-transversales {
    position: relative;
    min-height: 420px;

    display: flex;
    align-items: center;

    padding: 60px 5%;

    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 46, 0.85) 35%,
            rgba(6, 26, 46, 0.55) 60%,
            rgba(6, 26, 46, 0.2) 100%
        ),
        url("img/banner3.png");

    background-size: cover;
    background-position: center;
}

/* ==========================================
   HEADER TEMÁTICAS - BANNER 4
========================================== */

.section-header.section-oe {
    position: relative;
    min-height: 420px;

    display: flex;
    align-items: center;

    padding: 60px 5%;

    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 46, 0.85) 35%,
            rgba(6, 26, 46, 0.55) 60%,
            rgba(6, 26, 46, 0.2) 100%
        ),
        url("img/banner4.png");

    background-size: cover;
    background-position: center;
}

/* ==========================================
   HEADER TEMÁTICAS - BANNER 5
========================================== */

.section-header.section-geociencias {
    position: relative;
    min-height: 420px;

    display: flex;
    align-items: center;

    padding: 60px 5%;

    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 46, 0.85) 35%,
            rgba(6, 26, 46, 0.55) 60%,
            rgba(6, 26, 46, 0.2) 100%
        ),
        url("img/banner5.png");

    background-size: cover;
    background-position: center;
}

/* ==========================================
   HEADER TEMÁTICAS - BANNER 6
========================================== */

.section-header.section-calidad {
    position: relative;
    min-height: 420px;

    display: flex;
    align-items: center;

    padding: 60px 5%;

    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 46, 0.85) 35%,
            rgba(6, 26, 46, 0.55) 60%,
            rgba(6, 26, 46, 0.2) 100%
        ),
        url("img/banner6.png");

    background-size: cover;
    background-position: center;
}

/* ==========================================
   HEADER TEMÁTICAS - BANNER 7
========================================== */

.section-header.section-recursos {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 46, 0.85) 35%,
            rgba(6, 26, 46, 0.55) 60%,
            rgba(6, 26, 46, 0.2) 100%
        ),
        url("img/banner7.png");
    background-size: cover;
    background-position: center;
}



/* ==========================================
   HEADER TEMÁTICAS - BANNER 8
========================================== */

.section-header.section-biodiversidad {
    position: relative;
    min-height: 420px;

    display: flex;
    align-items: center;

    padding: 60px 5%;

    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 46, 0.85) 35%,
            rgba(6, 26, 46, 0.55) 60%,
            rgba(6, 26, 46, 0.2) 100%
        ),
        url("img/banner8.png");

    background-size: cover;
    background-position: center;
}

/* ==========================================
   HEADER TEMÁTICAS - BANNER 9
========================================== */

.section-header.section-pem {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 46, 0.85) 35%,
            rgba(6, 26, 46, 0.55) 60%,
            rgba(6, 26, 46, 0.2) 100%
        ),
        url("img/banner9.png");
    background-size: cover;
    background-position: center;
}



.section-header.section-queessiam {
    text-align: left;
}

.section-header-contents{
    padding: 60px 80px;
    position: relative;
    background: #ffffff;
    overflow: visible;
}


/* ==========================================
   TOUR GUIADO INTERACTIVO (ONBOARDING)
========================================== */

/* Overlay oscuro de fondo */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}

.tour-overlay.active {
    opacity: 1;
}

/* Highlight del elemento enfocado */
.tour-highlight {
    position: absolute;
    border: 3px solid #00A8E8;
    border-radius: 12px;
    box-shadow: 
        0 0 0 4px rgba(0, 168, 232, 0.2),
        0 0 40px rgba(0, 168, 232, 0.6),
        inset 0 0 20px rgba(0, 168, 232, 0.1);
    z-index: 10001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    animation: pulseHighlight 2s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.02);
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 
            0 0 0 4px rgba(0, 168, 232, 0.2),
            0 0 40px rgba(0, 168, 232, 0.6),
            inset 0 0 20px rgba(0, 168, 232, 0.1);
    }
    50% {
        box-shadow: 
            0 0 0 8px rgba(0, 168, 232, 0.3),
            0 0 60px rgba(0, 168, 232, 0.8),
            inset 0 0 30px rgba(0, 168, 232, 0.15);
    }
}

/* Elemento objetivo resaltado */
.tour-target {
    position: relative !important;
    z-index: 10003 !important;
    transition: transform 0.3s ease;
}

/* Cards: solo el objetivo visible, hermanos ocultos */
.cards-container .card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Cuando hay un tour activo, ocultar cards que no son el target */
.tour-overlay.active ~ * .cards-container .card:not(.tour-target) {
    opacity: 0.15 !important;
    pointer-events: none;
}

/* Card objetivo bien visible */
.card.tour-target {
    opacity: 1 !important;
    transform: scale(1.02);
    box-shadow: 
        0 0 0 4px rgba(0, 168, 232, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

/* Hero content destacado */
.hero-content.tour-target {
    background: rgba(10, 37, 64, 0.95) !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.4) !important;
}

/* Navegación destacada */
nav.tour-target {
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.4) !important;
}

/* Sección de socios destacada */
.partners-section.tour-target {
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.4) !important;
}

/* Tooltip del tour */
.tour-tooltip {
    position: absolute;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 168, 232, 0.1);
    max-width: 420px;
    width: 90vw;
    z-index: 10002;
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tour-tooltip.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Header del tooltip */
.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tour-step-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00A8E8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-close-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tour-close-btn:hover {
    background: #f1f5f9;
    color: #0a2540;
}

/* Body del tooltip */
.tour-tooltip-body {
    padding: 24px 20px;
}

.tour-tooltip-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00A8E8, #0ea5e9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    animation: bounceIcon 2s ease-in-out infinite;
}

.tour-tooltip-icon i {
    font-size: 1.5rem;
    color: white;
}

.tour-tooltip-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tour-tooltip-description {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Footer del tooltip */
.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    gap: 12px;
}

.tour-navigation {
    display: flex;
    gap: 8px;
}

/* Botones del tour */
.tour-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tour-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tour-btn-skip {
    background: transparent;
    color: #64748b;
}

.tour-btn-skip:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0a2540;
}

.tour-btn-prev {
    background: #f1f5f9;
    color: #0a2540;
}

.tour-btn-prev:hover:not(:disabled) {
    background: #e2e8f0;
}

.tour-btn-next {
    background: #f1f5f9;
    color: #0a2540;
}

.tour-btn-next:hover:not(:disabled) {
    background: #e2e8f0;
}

.tour-btn-primary {
    background: linear-gradient(135deg, #00A8E8, #0ea5e9);
    color: white;
}

.tour-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0097d3, #0284c7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.4);
}

/* Flecha del tooltip (indicador de posición) */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.tour-tooltip-bottom::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.tour-tooltip-top::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.tour-tooltip-left::before {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.tour-tooltip-right::before {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

/* Responsive del tour */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
    }
    
    .tour-tooltip-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .tour-navigation {
        width: 100%;
        justify-content: space-between;
    }
    
    .tour-btn {
        flex: 1;
        justify-content: center;
    }
    
    .tour-btn-skip {
        width: 100%;
    }
    
    .tour-highlight {
        border-width: 2px;
    }
}


/* ==========================================
   SITEMAP STYLES - MODERNO Y PROFESIONAL
========================================== */

/* Header del Sitemap */
/* Sitemap header styles moved to end of file as sitemap-hero */

/* Container Principal */
.sitemap-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 5%;
}

/* Sección del Sitemap */
.sitemap-section {
    margin-bottom: 50px;
}

.sitemap-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-blue);
}

.sitemap-section-header i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.sitemap-section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
}

/* Grid de Cards */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    align-items: start;
}

/* Card Individual */
.sitemap-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 168, 232, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sitemap-card:hover {
    box-shadow: 0 8px 24px rgba(0, 168, 232, 0.15);
    border-color: rgba(0, 168, 232, 0.3);
}

/* Accordion Card Header */
.sitemap-card-header {
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
    background: white;
}

.sitemap-card-header:hover {
    background: #f8fafc;
}

.sitemap-card-header:active {
    background: #f1f5f9;
}

.card-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.card-header-content i {
    color: var(--accent-blue);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.sitemap-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.card-count {
    font-size: 0.8rem;
    color: var(--text-gray);
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

/* Accordion Icon */
.accordion-icon {
    color: var(--accent-blue);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.sitemap-card-header:hover .accordion-icon {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.sitemap-card-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

/* Card Content (Collapsible) */
.sitemap-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 28px;
}

.sitemap-card-header[aria-expanded="true"] + .sitemap-card-content {
    max-height: 2000px;
    padding: 0 28px 28px;
}

/* Listas */
.sitemap-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-card li {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.sitemap-card li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Enlaces */
.sitemap-card a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sitemap-card a i {
    color: var(--accent-blue);
    margin-top: 3px;
    flex-shrink: 0;
}

.sitemap-card a:hover {
    color: var(--accent-blue);
    padding-left: 8px;
}

.sitemap-card a strong {
    color: #EA580C;
    font-weight: 700;
}

/* Descripciones */
.sitemap-description {
    display: block;
    margin-top: 6px;
    margin-left: 18px;
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
    font-style: italic;
}

/* Limitar a máximo 2 columnas en pantallas grandes */
@media (min-width: 1200px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Sitemap header responsive styles moved to end of file as sitemap-hero */

    .sitemap-container {
        padding: 40px 5%;
    }

    .sitemap-section {
        margin-bottom: 40px;
    }

    .sitemap-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sitemap-section-header h2 {
        font-size: 1.4rem;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sitemap-card-header {
        padding: 20px;
    }

    .sitemap-card-content {
        padding: 0 20px;
    }

    .sitemap-card-header[aria-expanded="true"] + .sitemap-card-content {
        padding: 0 20px 20px;
    }

    .card-header-content {
        flex-wrap: wrap;
        gap: 8px;
    }

    .sitemap-card h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .card-count {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .card-header-content i {
        font-size: 1.2rem;
    }
}

.logoColombia {
   height: 100px;
    width: auto;
    object-fit: contain;
}


/* ==========================================
   MEJORA VISUAL – PÁGINA ¿QUÉ ES SIAM?
   (SIN CAMBIAR EL TEXTO)
========================================== */


/* ===============================
   HEADER DE SECCIÓN - QUE ES SIAM
================================ */
.section-header.section-queessiam {
  position: relative;
  background-image:
    linear-gradient(
      rgba(6, 26, 46, 0.85),
      rgba(6, 26, 46, 0.85)
    ),
    url("../img/banner2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
}

/* Contenedor del texto */
.section-header-contents {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: auto;
  background: rgba(255, 255, 255, 0.96);
  padding: 50px 60px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Títulos */
.section-header-contents h2 {
  font-size: 1.5rem;
  color: #003566;
  margin: 40px 0 15px;
  font-weight: 700;
}

.section-header-contents h2:first-of-type {
  margin-top: 0;
}

/* Texto */
.section-header-contents p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 14px;
  text-align: justify;
  hyphens: none;
  word-break: normal;
}

/* Responsive */
@media (max-width: 768px) {
  .section-header-contents {
    padding: 30px 25px;
  }

  .section-header-contents h2 {
    font-size: 1.25rem;
  }

  .section-header-contents p {
    font-size: 0.9rem;
  }
}


/* ==========================================
   REDES SOCIALES - FOOTER (CENTRADO)
========================================== */

.footer-social {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #00b4d8; /* Azul SIAM */
  color: #002b45;
  transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 480px) {
  .footer-social {
    gap: 14px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ==========================================
   FONDO SECCIÓN ¿QUÉ ES SIAM?
========================================== */

.section-header.section-queessiam {
  position: relative;
  min-height: 70vh;
  background-image:
    linear-gradient(rgba(6, 26, 46, 0.65), rgba(6, 26, 46, 0.65)),
    url("../img/banner2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
}

/* Contenedor del contenido */
.section-header.section-queessiam .section-header-contents {
  max-width: 1200px;
  margin: auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 60px 80px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* ==========================================
   QUÉ ES SIAM - DISEÑO MINIMALISTA CON ILUSTRACIONES
========================================== */

/* Decoraciones con ondas marinas */
.wave-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
}

.top-wave {
  top: -50px;
  right: -50px;
  background: 
    radial-gradient(ellipse at 70% 30%, rgba(0, 168, 232, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(0, 168, 232, 0.08) 0%, transparent 65%);
  border-radius: 50%;
}

.bottom-wave {
  bottom: -50px;
  left: -50px;
  background: 
    radial-gradient(ellipse at 30% 70%, rgba(0, 168, 232, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 40%, rgba(0, 168, 232, 0.08) 0%, transparent 65%);
  border-radius: 50%;
}

/* Títulos - simple y limpio */
.qes-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin: 45px 0 25px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qes-title:first-of-type {
  margin-top: 0;
}

/* Párrafos - clean y legible */
.section-header-contents p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 16px;
  text-align: justify;
  hyphens: none;
  word-break: normal;
}

.section-header-contents p strong {
  color: var(--primary-blue);
  font-weight: 700;
}

/* Texto destacado - sutil */
.highlight-text {
  font-size: 1rem !important;
  line-height: 1.85 !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  margin: 22px 0 !important;
}

/* Divisor - minimalista */
.section-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 45px 0;
}

/* Sub items */
.sub-item {
  margin-left: 30px !important;
  margin-bottom: 8px !important;
  color: #64748b !important;
}

/* Responsive */
@media (max-width: 768px) {
  .section-header.section-queessiam {
    padding: 40px 15px;
  }

  .section-header.section-queessiam .section-header-contents {
    padding: 35px 25px;
    border-radius: 15px;
    max-width: 100%;
  }

  .qes-title {
    font-size: 1.25rem;
    margin: 35px 0 20px 0;
  }

  .section-header-contents p {
    font-size: 0.93rem;
    line-height: 1.75;
  }
  
  .wave-decoration {
    width: 150px;
    height: 150px;
  }

  .section-divider {
    margin: 35px 0;
  }

  .sub-item {
    margin-left: 20px !important;
  }
}

/* ==========================================
   QUE-ES-SIAM PAGE - ENHANCED UI/UX STYLES
========================================== */

/* Hero Section */
.qes-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      rgba(10, 37, 64, 0.70) 0%,
      rgba(6, 26, 46, 0.60) 50%,
      rgba(0, 168, 232, 0.25) 100%
    ),
    url('img/banner3.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  overflow: hidden;
  padding: 120px 5% 80px;
}

.qes-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0, 166, 232, 0) 0%, transparent 50%);
  z-index: 1;
}

.qes-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.qes-badge {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(0, 168, 232, 0.15);
  border: 1px solid rgba(0, 168, 232, 0.3);
  border-radius: 50px;
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.qes-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qes-hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0, 166, 232, 0) 0%, transparent 50%);
  z-index: 2;
}

.qes-wave-bottom {
  position: relative;
  width: 100%;
  height: 120px;
  margin-top: -1px;
  overflow: hidden;
}

.wave-divider-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Common Section Styles */
.qes-section {
  padding: 80px 0;
  position: relative;
}

.qes-section:nth-child(even) {
  background: #f8fafc;
}

.qes-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Grid Layouts */
.qes-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.qes-grid-reverse {
  direction: rtl;
}

.qes-grid-reverse > * {
  direction: ltr;
}

/* Typography */
.qes-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 30px;
  line-height: 1.2;
}

.qes-title-accent {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qes-section-title-center {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 16px;
}

.qes-section-subtitle {
  text-align: center;
  font-size: 1.35rem;
  color: var(--text-gray);
  margin-bottom: 60px;
  font-weight: 400;
}

.qes-subsection-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 30px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qes-subsection-title i {
  color: var(--accent-blue);
  font-size: 1.2rem;
}

.qes-text-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.qes-text-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.qes-intro-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: justify;
}

/* Feature List */
.qes-feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.qes-feature-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.qes-feature-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--accent-blue);
}

.qes-feature-item > i {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.qes-feature-item div {
  flex: 1;
}

.qes-feature-item strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.qes-feature-item p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* Image Blocks */
.qes-image-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qes-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qes-marine-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 2;
}

.qes-image-gradient {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 168, 232, 0.25) 0%, rgba(6, 182, 212, 0.15) 30%, transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(0, 168, 232, 0.15) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
  animation: pulseGradient 8s ease-in-out infinite;
}

@keyframes pulseGradient {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.qes-animate-float {
  animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  50% {
    transform: translateY(-25px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

.qes-sticky-image .qes-image-wrapper {
  position: sticky;
  top: 120px;
}

/* Highlight Box */
.qes-highlight-box {
  position: relative;
  padding: 35px 40px;
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.05), rgba(6, 182, 212, 0.05));
  border-left: 5px solid var(--accent-blue);
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 4px 20px rgba(0, 168, 232, 0.1);
}

.qes-quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: rgba(0, 168, 232, 0.15);
  z-index: 1;
}

.qes-highlight-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0;
  position: relative;
  z-index: 2;
  text-align: justify;
}

/* Objectives Cards Grid */
.qes-section-header-center {
  margin-bottom: 60px;
}

.qes-objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.qes-objective-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  overflow: hidden;
}

.qes-objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  transform: scaleX(0);
  transition: var(--transition);
}

.qes-objective-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.qes-objective-card:hover::before {
  transform: scaleX(1);
}

.qes-card-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 168, 232, 0.08);
  line-height: 1;
  z-index: 1;
}

.qes-card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0, 168, 232, 0.3);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.qes-objective-card:hover .qes-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.qes-card-icon i {
  font-size: 1.8rem;
  color: white;
}

.qes-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 16px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.qes-card-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin: 0;
  position: relative;
  z-index: 2;
  text-align: justify;
}

/* Components Section */
.qes-component-section {
  margin: 40px 0;
}

.qes-component-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qes-component-title i {
  color: var(--accent-blue);
  font-size: 1.3rem;
}

.qes-component-section > p {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 24px;
  text-align: justify;
}

/* Pillars */
.qes-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.qes-pillar {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.qes-pillar:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-left-color: var(--accent-blue);
}

.qes-pillar-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.1), rgba(6, 182, 212, 0.1));
  border-radius: 10px;
  color: var(--accent-blue);
  font-size: 1.3rem;
}

.qes-pillar-content strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.qes-pillar-content p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* Tech Stack */
.qes-tech-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.qes-tech-item {
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.qes-tech-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.qes-tech-item > i {
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 12px;
  display: block;
}

.qes-tech-item > strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.qes-tech-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qes-tech-item li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
}

.qes-tech-item li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 600;
}

/* ==========================================
   RESPONSIVE DESIGN - QUE-ES-SIAM
========================================== */

@media (max-width: 1024px) {
  .qes-grid-2col {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .qes-grid-reverse {
    direction: ltr;
  }

  .qes-sticky-image .qes-image-wrapper {
    position: relative;
    top: 0;
  }

  .qes-objectives-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .qes-hero {
    padding: 80px 5% 60px;
    min-height: 500px;
    background-attachment: scroll;
  }

  .qes-section {
    padding: 50px 0;
  }

  .qes-badge {
    font-size: 0.75rem;
    padding: 8px 18px;
  }

  .qes-section-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .qes-section-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
  }

  .qes-grid-2col {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .qes-content-block {
    order: 1;
  }

  .qes-image-block {
    order: 2;
  }

  .qes-grid-reverse .qes-content-block {
    order: 1;
  }

  .qes-grid-reverse .qes-image-block {
    order: 2;
  }

  .qes-image-wrapper {
    max-width: 350px;
  }

  .qes-image-block {
    margin-bottom: 30px;
  }

  .qes-feature-list {
    gap: 16px;
    margin-top: 30px;
  }

  .qes-feature-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .qes-feature-item:hover {
    transform: translateY(-4px);
  }

  .qes-feature-item > i {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .qes-highlight-box {
    padding: 25px 20px;
  }

  .qes-quote-icon {
    font-size: 2rem;
    top: 15px;
    right: 15px;
  }

  .qes-objectives-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qes-objective-card {
    padding: 30px 24px;
  }

  .qes-card-number {
    font-size: 3rem;
  }

  .qes-card-icon {
    width: 60px;
    height: 60px;
  }

  .qes-card-icon i {
    font-size: 1.5rem;
  }

  .qes-text-content p {
    text-align: justify;
  }

  .qes-card-description {
    text-align: justify;
  }

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

  .qes-feature-item p {
    text-align: justify;
  }

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

  .qes-pillar-content p {
    text-align: justify;
  }

  .qes-component-section > p {
    text-align: justify;
  }

  .qes-tech-item li {
    text-align: justify;
  }

  .qes-pillars {
    gap: 16px;
  }

  .qes-pillar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .qes-pillar:hover {
    transform: translateY(-4px);
  }

  .qes-tech-stack {
    gap: 16px;
  }

  .qes-tech-item {
    padding: 20px;
  }

  .qes-component-section {
    margin: 30px 0;
  }
}

@media (max-width: 480px) {
  .qes-hero {
    padding: 60px 5% 50px;
    min-height: 450px;
    background-attachment: scroll;
  }

  .qes-badge {
    padding: 10px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .qes-container {
    padding: 0 4%;
  }

  .qes-grid-2col {
    display: flex;
    flex-direction: column;
  }

  .qes-content-block {
    order: 1;
  }

  .qes-image-block {
    order: 2;
  }

  .qes-grid-reverse .qes-content-block {
    order: 1;
  }

  .qes-grid-reverse .qes-image-block {
    order: 2;
  }

  .qes-text-content {
    font-size: 0.95rem;
  }

  .qes-text-content p {
    text-align: justify;
  }

  .qes-card-description {
    text-align: justify;
  }

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

  .qes-feature-item p {
    text-align: justify;
  }

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

  .qes-pillar-content p {
    text-align: justify;
  }

  .qes-component-section > p {
    text-align: justify;
  }

  .qes-tech-item li {
    text-align: justify;
  }

  .qes-subsection-title {
    font-size: 1.15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .qes-image-wrapper {
    max-width: 280px;
  }

  .qes-image-block {
    margin-bottom: 25px;
  }

  .qes-highlight-box {
    padding: 20px 16px;
  }

  .qes-highlight-text {
    font-size: 1rem;
  }
}

/* ==========================================
   SITEMAP PAGE - HERO STYLES
========================================== */

/* Hero Section */
.sitemap-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      rgba(10, 37, 64, 0.70) 0%,
      rgba(6, 26, 46, 0.60) 50%,
      rgba(0, 168, 232, 0.25) 100%
    ),
    url('img/banner2.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  overflow: hidden;
  padding: 100px 5% 80px;
}

.sitemap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0, 166, 232, 0) 0%, transparent 50%);
  z-index: 1;
}

.sitemap-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.sitemap-badge {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(0, 168, 232, 0.15);
  border: 1px solid rgba(0, 168, 232, 0.3);
  border-radius: 50px;
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.sitemap-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sitemap-hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .sitemap-hero {
    padding: 80px 5% 60px;
    min-height: 350px;
    background-attachment: scroll;
  }

  .sitemap-badge {
    font-size: 0.75rem;
    padding: 8px 18px;
  }
}

@media (max-width: 480px) {
  .sitemap-hero {
    padding: 60px 5% 50px;
    min-height: 300px;
    background-attachment: scroll;
  }

  .sitemap-badge {
    padding: 10px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
}