/* --- VARIABLES CSS (Modo Claro por defecto) --- */
:root {
    --bg-body: #f8f9fa;       /* Fondo claro general */
    --bg-card: #ffffff;       /* Fondo de tarjetas blanco */
    --bg-card-hover: #f1f3f5;
    --text-main: #212529;     /* Texto oscuro */
    --text-secondary: #6c757d;
    --accent-color: #0d6efd;  /* Azul */
    --accent-hover: #0b5ed7;
    --border-color: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    background: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand img {
    height: 45px; 
    width: auto;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after { width: 80%; }
.nav-link:hover { color: var(--accent-color) !important; }

/* --- Hero Section (SIEMPRE OSCURO) --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0a192f !important; /* Forzado Oscuro */
    color: #fff;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-weight: 700;
    color: #fff;
}
.hero p { color: #a8b2d1; }

.btn-hero {
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-hero:hover {
    background-color: #ffdb70;
    transform: translateY(-3px);
}

/* --- Cards General --- */
.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

/* --- Mission --- */
.mission-box {
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.mission-icon-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-body);
    padding: 0 15px;
}

/* --- Services Icons --- */
.service-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff; /* Icono blanco */
    background: #0d6efd; /* Azul de fondo */
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.4s;
}

.custom-card:hover .service-icon {
    transform: scale(1.1) rotateY(180deg);
    background: #ffc107; /* Cambia a amarillo al hover */
    color: #000;
}

.service-title { color: #212529; font-weight: 700; }

/* --- Systems (Tarjetas más pequeñas y compactas) --- */
.system-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.system-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.system-img-container {
    height: 200px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.system-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.system-card:hover .system-img-container img { transform: scale(1.05); }

.system-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.system-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-list li {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}
.feature-list li::before {
    content: '✓';
    color: #198754;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Convenios (Enlaces y Fondo Claro) --- */
.convenio-wrapper {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: transparent;
    transition: transform 0.3s;
    text-decoration: none;
    animation: float 4s ease-in-out infinite;
}

.convenio-wrapper:hover {
    transform: scale(1.1);
    background-color: rgba(0,0,0,0.05);
}

.convenio-logo {
    max-height: 70px;
    display: block;
    filter: grayscale(0%);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}
.convenio-wrapper:nth-child(even) { animation-duration: 4.5s; }


/* --- Footer (SIEMPRE OSCURO) --- */
footer {
    background-color: #0b1120 !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #e6f1ff;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.social-link:hover {
    background: #ffc107;
    color: #000;
}