/* VARIABLES GLOBALES - COLORES VIBRANTES */
:root {
    --cni-blue: #003366; 
    --cni-blue-light: #0056b3;
    --cni-blue-dark: #001f40;
    --cni-red: #e60000; 
    --cni-red-hover: #ff1a1a;
    --bg-main: #ffffff; 
    --bg-light: #f4f6f9; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: #333;
    line-height: 1.6;
}

/* TOP BAR */
.text-sm {
    font-size: 0.85rem;
}
.top-bar a:hover {
    color: #ccc !important;
}

/* HEADER Y NAVEGACIÓN */
.header {
    background-color: var(--bg-main);
    border-bottom: 4px solid var(--cni-red);
}

.logo {
    width: 60px;
}

.header-text p.subtitle {
    letter-spacing: 0.5px;
}

.menu-link {
    color: var(--cni-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 5px;
    transition: 0.3s;
}

.menu-link:hover {
    color: var(--cni-red);
    background-color: rgba(230, 0, 0, 0.05);
}

.menu-link.active {
    color: var(--cni-red) !important;
    border-bottom: 2px solid var(--cni-red);
    border-radius: 0;
}

.btn-unete {
    background-color: var(--cni-red);
    color: white !important;
    border-radius: 20px;
    padding: 8px 20px;
}

.btn-unete:hover {
    background-color: var(--cni-red-hover);
    transform: scale(1.05);
}


.section-padded {
    padding: 70px 0;
}

.section-title-vibrant {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--cni-blue);
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-title-vibrant::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--cni-red);
    bottom: 0;
    left: 25%;
    border-radius: 2px;
}


.section-hero {
    background: linear-gradient(rgba(0, 31, 64, 0.8), rgba(0, 31, 64, 0.8)), url('img/aniversario01.png');
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--cni-blue-dark); 
    min-height: 70vh;
}

.titulo-heroe {
    font-family: 'Alfa Slab One', cursive;
    letter-spacing: 1px;
}

/* TARJETAS MISION/VISION */
.card-vibrant {
    background: white;
    border-radius: 12px;
    transition: 0.3s;
}
.border-top-cni {
    border-top: 5px solid var(--cni-blue);
}
.card-vibrant:hover {
    transform: translateY(-5px);
}

/* PILARES */
.pilar-box {
    background-color: white;
    transition: 0.3s;
    border-left: 4px solid transparent;
}
.pilar-box:hover {
    border-left: 4px solid var(--cni-red);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px);
}

/* FOOTER */
.footer-cni {
    background: var(--cni-blue-dark);
}
#reloj-vivo {
    font-family: 'Poppins', sans-serif; 
    background: rgba(0, 0, 0, 0.3); 
    padding: 12px 20px !important;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.text-capitalize {
    text-transform: capitalize;
}
.bg-cni-blue {
    background-color: var(--cni-blue);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-img-cni {
    width: 100%;
    aspect-ratio: 16 / 9; 
    object-fit: cover;
}

.img-uniforme {
    width: 100%;
    height: 280px; 
    object-fit: cover; 
    object-position: center;
    border-radius: 12px; 
    display: block;
}

.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px); 
}

.logo-container-footer {
    background-color: white; 
    display: inline-flex;    
    padding: 15px;          
    border-radius: 12px;     
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    margin-bottom: 1.5rem;
}

.logo-footer {
    width: 80px;           
    height: auto;
    display: block;
}
.logo-container-footer {
    border-bottom: 4px solid var(--cni-red);
}
section {
    scroll-margin-top: 90px;
}
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 3000; 
    text-decoration: none;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.logo-footer {
    width: 60px;
    height: auto;
}
/* BOTÓN WHATSAPP FLOTANTE */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 2000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1) rotate(10deg);
}