:root {
    /* Variables originales */
    --primary: #012840;
    --accent: #009fe3;
    --accent-hover: #007bb0;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --text-dark: #333;

    /* Variables COMPATIBLES para el Footer Pro */
    --azul-marino: #012840;
    --azul-claro: #009fe3;
}

html {
    scroll-behavior: smooth;
    height: 100%; /* Fix pantalla completa */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
    /* Configuración para que el footer siempre quede abajo */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* BASE SECTIONS */
section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* Contenido siempre encima de la animación */
section .container {
    position: relative;
    z-index: 5;
}

.section-title {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 60px;
    border-radius: 2px;
}

/* NAVBAR */
.navbar {
    background: rgba(1, 40, 64, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    transition: 0.3s;
}
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
}
.nav-link:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 10px rgba(0, 159, 227, 0.5);
}

/* --- 1. HERO ANIMADO --- */
#hero {
    background: linear-gradient(-45deg, #001219, #012840, #005f73, #0a9396);
    background-size: 400% 400%;
    animation: ocean-move 15s ease infinite;
    color: white;
    padding-top: 80px;
}

@keyframes ocean-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Texto Gradiente */
.text-gradient {
    background: linear-gradient(to right, #48cae4, #ffffff);
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: white; 
}

/* Partículas Flotantes */
.circles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: 1; pointer-events: none; padding: 0; margin: 0;
}
.circles li {
    position: absolute; display: block; list-style: none;
    width: 20px; height: 20px; background: rgba(255, 255, 255, 0.1);
    animation: float-up 25s linear infinite; bottom: -150px; border-radius: 50%;
}
.circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }

@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* --- COMPONENTES VISUALES --- */
.hero-visual img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.5s;
}
.hero-visual:hover img {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.btn-glow {
    background: var(--accent); color: white; padding: 12px 35px;
    border-radius: 50px; text-decoration: none; font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 159, 227, 0.4); transition: 0.3s;
    border: 2px solid transparent;
}
.btn-glow:hover {
    background: transparent; border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); color: white;
}

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    animation: bounce 2s infinite; z-index: 10; opacity: 0.7; color: white;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* --- ESTILOS DE SECCIONES INTERNAS --- */
#about {
    background-color: #ffffff;
    background-image: linear-gradient(#e5e5f7 1px, transparent 1px), linear-gradient(90deg, #e5e5f7 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}
@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

#team {
    background: #f4f7f6;
    position: relative;
    z-index: 1;
}
.blob {
    position: absolute; filter: blur(40px); z-index: -1; opacity: 0.4;
    animation: blob-bounce 10s infinite ease-in-out alternate;
}
.blob-1 { top: 10%; left: 10%; width: 300px; height: 300px; background: #bde0fe; }
.blob-2 { bottom: 10%; right: 10%; width: 400px; height: 400px; background: #caf0f8; animation-delay: 5s; }
@keyframes blob-bounce {
    0% { transform: translate(0, 0) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { transform: translate(20px, -20px) scale(1.1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

#project {
    background: repeating-linear-gradient(45deg, #ffffff, #ffffff 20px, #f8fbfd 20px, #f8fbfd 40px);
    background-size: 200% 200%;
    animation: stripes-move 20s linear infinite;
}
@keyframes stripes-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

#newsSec { background: linear-gradient(to bottom, #f0f4f8, #ffffff); position: relative; }
.squares { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none; }
.squares li {
    position: absolute; display: block; list-style: none; width: 20px; height: 20px;
    background: rgba(0, 159, 227, 0.05); animation: float-square 20s linear infinite; bottom: -150px;
}
@keyframes float-square {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-1000px) rotate(360deg); opacity: 0; }
}

#contactSec { background: radial-gradient(circle at center, #ffffff 0%, #eef2f5 100%); }
#contactSec::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: rgba(0, 159, 227, 0.05); border-radius: 50%;
    animation: pulse-bg 4s infinite; z-index: 1;
}
@keyframes pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* --- CARDS & UI --- */
.mission-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); height: 100%; border-top: 4px solid var(--accent); transition: 0.3s; }
.mission-card:hover { transform: translateY(-10px); }
.mission-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }

.team-card { background: white; padding: 40px 20px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); text-align: center; transition: 0.3s; height: 100%; border: 1px solid #eee; position: relative; z-index: 2; }
.team-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.team-img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 5px solid #f8f9fa; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.news-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; height: 100%; position: relative; z-index: 2; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.contact-container { position: relative; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); overflow: hidden; z-index: 10; }
.contact-info-side { background: var(--primary); color: white; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.contact-form-side { padding: 50px; }

.step-card { text-align: center; padding: 20px; }
.step-number { width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-weight: bold; font-size: 1.2rem; }

/* --- FOOTER PRO --- */
footer {
    background-color: var(--azul-marino);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: auto; /* IMPORTANTE: Empuja el footer al fondo */
    font-size: 0.9rem;
    width: 100%;
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

footer p { line-height: 1.6; }

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--azul-claro);
    transform: translateX(5px);
}

footer .social-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    color: white;
    transition: 0.3s;
}

footer .social-icon:hover {
    color: var(--azul-claro);
    transform: translateY(-3px);
}

footer .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

footer .contact-item i {
    color: var(--azul-claro);
    font-size: 1.1rem;
    margin-right: 12px;
    margin-top: 3px;
}

footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}