/* ===== TEMA OSCURO · Opción B (Académico tecnológico) ===== */
:root {
    --bg: #0F172A; /* fondo principal */
    --surface: #0B1220; /* paneles/cards */
    --surface-2: #111827; /* superficies secundarias */
    --text: #E5E7EB; /* texto principal */
    --muted: #A3A3A3; /* texto secundario */
    --primary: #3B82F6; /* acción principal */
    --primary-600: #2563EB;
    --accent: #22D3EE; /* detalles/foco */
    --border: #1F2937; /* bordes/contornos */
    --ok: #22C55E;
    --warn: #F59E0B;
    --danger: #F43F5E;

    --radius: 16px;
    --shadow-1: 0 10px 30px rgba(0, 0, 0, .25);
    --shadow-2: 0 20px 40px rgba(0, 0, 0, .35);
}

html, body {
    height: 100%
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(1000px 600px at -10% -10%, #0b1020 0%, transparent 60%) no-repeat,
    radial-gradient(900px 500px at 110% -10%, #0b1020 0%, transparent 60%) no-repeat,
    linear-gradient(180deg, var(--bg) 0%, #0B1220 100%);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
}

/* Enlaces */
a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

/* Tarjetas y paneles genéricos */
.container-card, .panel, .card-simple, .card-reset {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

/* Formularios */
.form-control {
    background: #0f172a !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
}

.form-control::placeholder {
    color: rgba(229, 231, 235, .75) !important;
}

.form-label {
    color: var(--text)
}

/* Botones (ajuste suave sobre Bootstrap) */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary-600) !important;
    color: #0B1220 !important;
    border-radius: 12px;
}

.btn-primary:hover {
    background: var(--primary-600) !important;
}

.btn-light {
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

/* Alertas */
.alert-info {
    background: #0b2733;
    border-color: #134e6a;
    color: #cffafe;
}

.alert-success {
    background: #0b3322;
    border-color: #14532D;
    color: #86EFAC;
}

.alert-warning {
    background: #33240b;
    border-color: #713F12;
    color: #FDE68A;
}

.alert-danger {
    background: #331017;
    border-color: #7F1D1D;
    color: #FCA5A5;
}

/* Utilidades */
.text-muted {
    color: var(--muted) !important;
}


/* ==== LANDING PAGE / HOME ==== */

:root {
    --accent: #3b82f6;
    --accent-2: #60a5fa;
    --text-strong: #eaf2ff;
    --text-soft: #b6c4e3;
    --hero-bg-1: #0b1220;
    --hero-bg-2: #101a2e;
}

/* Navbar glass */
.navbar {
    backdrop-filter: saturate(1.4) blur(8px);
    background: rgba(8, 12, 20, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.navbar .nav-link:hover {
    color: var(--accent-2) !important;
    text-decoration: underline;
}

/* Hero section */
.landing-hero {
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2), transparent 60%),
    linear-gradient(180deg, var(--hero-bg-1), var(--hero-bg-2));
    padding: clamp(90px, 15vh, 160px) 0 90px;
}

.hero-title {
    font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
    font-weight: 750;
    color: var(--text-strong);
}

.hero-subtitle {
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CTA button */
.btn-cta {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #fff !important;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);
    transition: all 0.15s ease-in-out;
}

.btn-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

/* Wave separator */
.wave-separator svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -6px;
}

/* Features */
.features {
    background-color: #101a2e;
    padding: 60px 0 80px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 18px;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.feature-card h3 {
    color: var(--text-strong);
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card p {
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.5;
}

/* ===== Footer con mejor visibilidad ===== */
.footer {
    background: linear-gradient(180deg, #0b1220, #0e1628);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.03);
    color: #c9d6f5 !important; /* texto claro */
    text-align: center;
    font-size: 0.9rem;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.05);
}

.footer p {
    color: #c9d6f5 !important; /* color visible también para la primera línea */
    margin-bottom: 6px;
}

.footer a {
    color: #a8c3ff !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

.hero-illustration img {
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
    animation: fadeInUp 0.9s ease both;
}

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

.hero-illustration img {
    border-radius: 18px; /* puedes probar entre 12px y 24px */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-illustration img:hover {
    transform: scale(1.015);
    transition: all 0.25s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}