/* =========================
   ESTILOS BASE GENERALES
   ========================= */

:root {
    --navy: #0f172a;
    --blue-dark: #1d4ed8;
    --blue-soft: #e0edff;
    --blue-soft-alt: #eff6ff;
    --yellow-soft: #fef9c3;
    --gray-text: #4b5563;
    --gray-light: #9ca3af;
    --border-soft: #e5e7eb;
    --bg-soft: #f9fafb;
    --bg-soft-alt: #f3f4f6;
    --radius-lg: 1rem;
    --radius-xl: 1.4rem;
    --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 20px 45px rgba(15, 23, 42, 0.20);
}

/* GLOBAL */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-soft);
    color: var(--navy);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

p {
    margin: 0 0 0.6rem 0;
}

/* CONTENEDOR */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* HEADER Y NAV */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0 0.7rem 0;
    margin-bottom: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: linear-gradient(
        to bottom,
        rgba(249, 250, 251, 0.95),
        rgba(249, 250, 251, 0.80),
        transparent
    );
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.logo img {
    max-height: 52px;
    width: auto;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-text);
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--blue-dark);
    border-color: rgba(59, 130, 246, 0.55);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--blue-dark);
    border-color: var(--blue-dark);
}

/* BOTONES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-outline {
    background-color: #ffffff;
    color: var(--blue-dark);
    border-color: rgba(37, 99, 235, 0.35);
}

.btn-outline:hover {
    background-color: var(--blue-soft);
    border-color: rgba(37, 99, 235, 0.6);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-text);
    border-color: transparent;
}

.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

/* TAGS / BADGES */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background-color: #ffffff;
    color: var(--gray-text);
}

/* CARDS GENERALES */

.card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 0.95rem 1rem;
}

/* FOOTER SIMPLE */

.footer {
    border-top: 1px solid var(--border-soft);
    padding: 1.1rem 0 1.3rem 0;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-text);
    background-color: #f8fafc;
}

/* RESPONSIVE GENERAL */

@media (max-width: 720px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav ul {
        flex-wrap: wrap;
        gap: 0.6rem 1rem;
    }
}
