/* ==========================================================================
   1. VARIABLES GLOBALES & TOKENS DE DISEÑO
   ========================================================================== */
:root {
    --color-primary: #0a4297;
    --color-primary-dark: #06275c;
    --color-primary-light: #eff6ff;
    --color-accent: #f59e0b;
    --color-text: #334155;
    --color-heading: #0f172a;
    --hero-overlay: rgba(10, 66, 151, 0.7);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background-color: #f8fafc;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

.fs-7 {
    font-size: 0.875rem;
}

.w-fit {
    width: fit-content;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 80%;
}

/* ==========================================================================
   3. HERO SECTION (Banner Adaptativo)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 80px 0;
    min-height: 500px;
    background-color: var(--color-primary);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    background-image:
        linear-gradient(var(--hero-overlay), var(--hero-overlay)),
        url('../images/Banner-Principal-600x338.jpg');
}

@media (min-width: 768px) {
    .hero-section {
        padding: 100px 0;
        min-height: 540px;
        background-image:
            linear-gradient(var(--hero-overlay), var(--hero-overlay)),
            url('../images/Banner-Principal-768x432.jpg');
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding: 120px 0;
        min-height: 580px;
        background-image:
            linear-gradient(var(--hero-overlay), var(--hero-overlay)),
            url('../images/Banner-Principal-1024x576.jpg');
    }
}

@media (min-width: 1200px) {
    .hero-section {
        padding: 140px 0;
        min-height: 620px;
        background-image:
            linear-gradient(var(--hero-overlay), var(--hero-overlay)),
            url('../images/Banner-Principal-1536x864.jpg');
    }
}

/* ==========================================================================
   4. TARJETAS, BOTONES Y COMPONENTES
   ========================================================================== */

/* Premium Buttons */
.btn-warning {
    background: linear-gradient(135deg, var(--color-accent), #fcd34d);
    border: none;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(10, 66, 151, 0.3);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    border: none;
    box-shadow: 0 4px 15px rgba(10, 66, 151, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 66, 151, 0.4);
}

/* Cards */
.custom-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    transform: perspective(1000px) translateZ(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-card:hover {
    transform: perspective(1000px) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.custom-card .card-img-top {
    height: 180px;
    object-fit: cover;
    background-color: #e9ecef;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Hover Shadows */
.shadow-sm-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.shadow-sm-hover:hover {
    border-color: rgba(10, 66, 151, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
}

.object-fit-cover {
    object-fit: cover;
}