/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #cc3333;
    color: white;
    padding: 0.6rem 1.2rem;
    z-index: 10000;
    transition: top 0.2s ease;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.skip-link:focus {
    top: 20px;
}

/* Estilos Principales para Portal SCA Regional Atlántico */
:root {
    --primary: #1f2937;
    --primary-red: #cc3333;
    --dark-grey: #111827;
    --light-grey: #f3f4f6;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: #ffffff;
    color: var(--dark-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navegación */
header {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-symbol {
    background: var(--primary-red);
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 6px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    padding: 0.25rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-auth {
    background: var(--primary-red) !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.btn-auth::after {
    display: none !important;
}

.btn-auth:hover {
    background: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Franja Negra Superior */
.top-franja {
    background-color: #0c0f17;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.65rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.4;
}

.top-franja-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #f1f5f9;
}

.top-franja-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary-red);
    flex-shrink: 0;
}

.top-franja-right {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .top-franja {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.65rem 1rem;
        text-align: center;
    }
}

/* Barra de progreso para rotación del Slider */
.slider-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1500;
    pointer-events: none;
}

.slider-progress-inner {
    width: 0%;
    height: 100%;
    background: var(--primary-red);
    transition: width 8s linear;
}

/* Puntos indicadores del carrusel (Dots) */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 1000;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background: var(--primary-red);
    width: 25px;
    border-radius: 5px;
    border-color: var(--primary-red);
}

/* Animación de entrada fadeUp al hacer scroll */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slider / Banners Carrusel */
.slider-container {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
}

.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.2) 30%, rgba(15, 23, 42, 0.25) 75%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 12;
    pointer-events: none;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide.entering {
    opacity: 1 !important;
    z-index: 10 !important;
    background-image: none !important;
}

.slide.exiting {
    opacity: 1 !important;
    z-index: 3 !important;
}

.no-transition {
    transition: none !important;
}

/* Efecto de Cortes Secuenciales (Slices) */
.slices-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.slice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 1.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.6s ease-out;
    transform: translateX(100%);
    opacity: 0;
}

.slice.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

/* Contenido Principal sobre el Banner */
.hero-content {
    position: absolute;
    z-index: 15;
    max-width: 1200px;
    width: 90%;
    padding: 2.5rem;
    text-align: center;
    color: #ffffff;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(150px);
}

.slide.active .hero-content {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: none !important;
}

.slide.entering .hero-content {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: transform 4s cubic-bezier(0.16, 1, 0.3, 1), opacity 4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.slide.exiting .hero-content {
    opacity: 0 !important;
    transform: translateX(-150px) !important;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4.25rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.95);
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 600;
    opacity: 1;
    letter-spacing: -0.01em;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95);
    margin-top: 0.5rem;
}

/* Botones Navegación del Slider */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.05);
}

/* Portafolio de Proyectos */
.proyectos-section {
    max-width: 1200px;
    margin: 4.5rem auto;
    padding: 0 2rem;
}

.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-head h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.section-head p {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
}

.proyecto-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.proyecto-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
    border-bottom: 1px solid var(--border);
}

.proyecto-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proyecto-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.proyecto-titulo {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.proyecto-desc {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.proyecto-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-card-more {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.proyecto-card:hover .btn-card-more {
    color: var(--primary);
}

.btn-card-more span {
    transition: transform 0.2s ease;
}

.proyecto-card:hover .btn-card-more span {
    transform: translateX(3px);
}

/* Noticias, Concursos, Becas y Eventos */
.noticias-section {
    max-width: 1200px;
    margin: 4.5rem auto;
    padding: 0 2rem;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.noticia-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.noticia-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e5e7eb;
}

.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-img {
    transform: scale(1.05);
}

.noticia-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    z-index: 2;
}

.badge-concurso { background-color: var(--primary-red); }
.badge-beca { background-color: #10b981; }
.badge-evento { background-color: #3b82f6; }
.badge-noticia { background-color: #6b7280; }

.noticia-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.noticia-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.noticia-desc {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-noticia-more {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.noticia-card:hover .btn-noticia-more {
    color: var(--primary);
}

.btn-noticia-more span {
    transition: transform 0.2s ease;
}

.noticia-card:hover .btn-noticia-more span {
    transform: translateX(3px);
}

/* Sección Red CTA */
.red-cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a32424 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.red-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.red-cta-section h2 {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: white;
}

.red-cta-section p {
    font-size: 1.1rem;
    color: #fee2e2;
    margin-bottom: 2rem;
    line-height: 1.55;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: var(--primary-red);
    padding: 0.95rem 2rem;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-white:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

/* Botón Volver Arriba */
#btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-red);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 6px 16px rgba(204, 51, 51, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

#btn-back-to-top:hover {
    background-color: #0f172a;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

#btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Modales Estilo Moderno */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background: #ffffff;
    width: 95%;
    max-width: 1100px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    z-index: 20;
}

.lightbox-close:hover {
    background: var(--primary-red);
    color: white;
    transform: rotate(90deg);
}

.lightbox-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 500px;
}

.lightbox-left {
    position: relative;
    background: #0c0f17;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 650px;
    display: block;
}

.lightbox-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 650px;
    overflow-y: auto;
}

.lightbox-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.lightbox-right h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.lightbox-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2rem;
    white-space: pre-line;
}

.lightbox-info-block {
    border-top: 1px dashed var(--border);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: #374151;
}

.lightbox-info-block div {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.lightbox-info-block strong {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lightbox-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-left {
        height: 250px;
    }
    .lightbox-right {
        padding: 1.75rem;
        max-height: none;
    }
}

/* Footer Enriquecido */
footer {
    background: #0f172a;
    color: #9ca3af;
    padding: 4.5rem 2rem 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.3fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand-column h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.footer-brand-sub {
    display: block;
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-socials a:hover {
    color: #ffffff;
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.footer-column h4 {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background-color: var(--primary-red);
}

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

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: #9cb3af;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
}

.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    font-size: 0.88rem;
    color: #d1d5db;
}

.footer-contact-list li {
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.footer-contact-list strong {
    color: white;
    font-weight: 600;
}

.footer-map-wrapper {
    margin-top: 0.75rem;
    position: relative;
}

.btn-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.55rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.35rem;
}

.btn-map-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

/* Hamburguesa del Menú Móvil */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1200;
    outline: none;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--primary-red);
}
.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--primary-red);
}

/* Responsive - Menú Móvil Colapsable (Habilitado hasta 1150px de ancho debido a la gran cantidad y longitud de enlaces) */
@media (max-width: 1150px) {
    .mobile-nav-toggle {
        display: flex;
    }
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        position: relative;
    }
    .logo svg {
        height: 48px !important;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 3px solid var(--primary-red);
        padding: 1.25rem 1.5rem;
        gap: 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1100;
        text-align: left;
        align-items: flex-start;
        box-sizing: border-box;
    }
    .nav-menu.active {
        display: flex;
        animation: slideDownMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .nav-menu li {
        width: 100%;
        list-style: none;
    }
    .nav-menu a {
        display: block;
        font-size: 0.85rem !important;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }
    .nav-menu a::after {
        display: none !important;
    }
    .nav-menu li:last-child a, .nav-menu li .btn-auth {
        border-bottom: none;
    }
    .nav-menu .btn-auth {
        text-align: center;
        background: var(--primary-red) !important;
        color: white !important;
        margin-top: 0.5rem;
        border-radius: 6px;
        padding: 0.75rem 1rem !important;
        display: block !important;
        width: 100%;
    }

    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Responsive - Adaptaciones de contenido general y grilla adaptativa para Tablet / Móvil */
@media (max-width: 1024px) {
    .footer-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.25rem;
        width: 95%;
    }
    .hero-content h1 {
        font-size: 1.75rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    }
    .hero-content p {
        font-size: 0.95rem;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
    }
    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .slider-container {
        height: 50vh;
    }
    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .slider-nav {
        padding: 0 0.75rem;
    }
    .proyectos-section {
        margin: 2.5rem auto;
        padding: 0 1.25rem;
    }
    .section-head {
        margin-bottom: 2rem;
    }
    .section-head h2 {
        font-size: 1.75rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Grillas reforzadas a un solo carril en pantallas pequeñas */
@media (max-width: 480px) {
    .noticias-grid {
        grid-template-columns: 1fr;
    }
    .proyectos-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1151px) and (max-width: 1450px) {
    .logo svg, #logo-header {
        height: 60px !important;
    }
    .nav-container {
        padding: 0.75rem 1.25rem;
    }
    .nav-menu {
        gap: 0.85rem;
    }
    .nav-menu a {
        font-size: 0.72rem;
    }
    .btn-auth {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.72rem !important;
    }
}

@media (min-width: 1151px) and (max-width: 1250px) {
    .logo svg, #logo-header {
        height: 52px !important;
    }
    .nav-container {
        padding: 0.65rem 1rem;
    }
    .nav-menu {
        gap: 0.55rem;
    }
    .nav-menu a {
        font-size: 0.66rem;
        letter-spacing: 0.03em;
    }
    .btn-auth {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.66rem !important;
        letter-spacing: 0.03em;
    }
}

@media (min-width: 769px) and (max-width: 1150px) {
    .proyectos-section {
        padding: 0 1.5rem;
    }
    .slider-container {
        height: 60vh;
    }
}

/* --- SECCIÓN INTERACTIVA DEPARTAMENTO DEL ATLÁNTICO --- */
.atlantico-map-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2.5rem;
    text-align: center;
}

.map-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-top: 3rem;
}

.map-card-header {
    background: #0f172a;
    color: #ffffff;
    padding: 1.5rem;
    border-bottom: 4px solid var(--primary-red);
}

.map-card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01e;
}

.map-card-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background-color: #f1f5f9;
    padding: 0;
}

/* Imagen del mapa base */
.atlantico-map-img {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    margin: 0 auto;
    user-select: none;
    pointer-events: auto; /* Permite hover sobre la imagen pero principalmente para los hotspots encima */
}

/* Hotspots de poblacion */
.map-hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    transition: all 0.25s ease;
}

@keyframes pin-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 51, 51, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(204, 51, 51, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(204, 51, 51, 0);
    }
}

.hotspot-pin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-red);
    animation: pin-pulse 2.2s infinite ease-in-out;
    transition: all 0.25s ease;
}

.hotspot-label {
    position: absolute;
    display: flex;
    align-items: center;
    background: #0f172a;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.25);
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    pointer-events: none;
    z-index: 5;
}

/* Direcciones de etiquetas personalizadas para evitar traslapes */
.label-top {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.label-bottom {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.label-left {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.label-right {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Efecto hover interactivo: Alto Relieve */
.map-hotspot:hover {
    z-index: 100 !important;
}

.map-hotspot:hover .hotspot-label {
    background: var(--primary-red);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(204, 51, 51, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-hotspot:hover .hotspot-label.label-top {
    transform: translateX(-50%) translateY(-5px) scale(1.15);
}
.map-hotspot:hover .hotspot-label.label-bottom {
    transform: translateX(-50%) translateY(5px) scale(1.15);
}
.map-hotspot:hover .hotspot-label.label-left {
    transform: translateY(-50%) translateX(-5px) scale(1.15);
}
.map-hotspot:hover .hotspot-label.label-right {
    transform: translateY(-50%) translateX(5px) scale(1.15);
}

.map-hotspot:hover .hotspot-pin {
    background-color: #ffffff;
    transform: scale(1.4);
    box-shadow: 0 0 0 5px var(--primary-red);
    animation: none; /* Detiene el pulso para enfoque nítido */
}

/* Responsividad para pantallas medianas/móviles */
@media (max-width: 768px) {
    .atlantico-map-section {
        margin: 2.5rem auto;
        padding: 0 1rem;
    }
    .map-card-header h3 {
        font-size: 1.15rem;
    }
    .map-card-header p {
        font-size: 0.8rem;
    }
    .map-hotspot {
        width: 14px;
        height: 14px;
    }
    .hotspot-label {
        padding: 1px 4px;
        font-size: 0.52rem;
        border-width: 1px;
    }
    
    .label-top { bottom: 14px; }
    .label-bottom { top: 14px; }
    .label-left { right: 14px; }
    .label-right { left: 14px; }
    
    .hotspot-pin {
        width: 8px;
        height: 8px;
    }
    
    .map-hotspot:hover .hotspot-label.label-top { transform: translateX(-50%) translateY(-2px) scale(1.08); }
    .map-hotspot:hover .hotspot-label.label-bottom { transform: translateX(-50%) translateY(2px) scale(1.08); }
    .map-hotspot:hover .hotspot-label.label-left { transform: translateY(-50%) translateX(-2px) scale(1.08); }
    .map-hotspot:hover .hotspot-label.label-right { transform: translateY(-50%) translateX(2px) scale(1.08); }
}

