/* Paleta de Colores */
:root {
    --primary-blue: #1F3556;
    --secondary-blue: #16263F;
    --white: #FFFFFF;
    --light-gray: #F2F4F7;
    --text-gray: #6B7280;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary-blue);
    line-height: 1.6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--white) !important;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--light-gray) !important;
}

/* Custom Button Styles */
.btn-primary-custom {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 53, 86, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.hero-section h1 {
    color: var(--primary-blue);
}

.hero-section .lead {
    color: var(--text-gray);
    font-size: 1.25rem;
}

.hero-section .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.text-primary-custom {
    color: var(--primary-blue) !important;
}

.bg-primary-custom {
    background-color: var(--primary-blue) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-blue) !important;
}

/* Table Styles */
.table-primary-custom {
    background-color: var(--primary-blue);
    color: var(--white);
}

.table-primary-custom th {
    border: none;
    padding: 1rem;
}

.table-hover tbody tr:hover {
    background-color: var(--light-gray);
}

/* Phase Cards */
.phase-card {
    position: relative;
    overflow: hidden;
}

.phase-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Form Styles */
.form-control {
    border: 2px solid var(--light-gray);
    padding: 0.75rem;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(31, 53, 86, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

/* Section Spacing */
section {
    position: relative;
}

.py-5 {
    padding: 5rem 0;
}

/* Background Colors */
.bg-light {
    background-color: var(--light-gray) !important;
}

/* Icons */
.bi {
    vertical-align: middle;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Footer */
footer {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .py-5 {
        padding: 3rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .btn-primary-custom {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

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

/* Success and Danger Variants */
.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Scroll Padding for Fixed Navbar */
section {
    scroll-margin-top: 80px;
}
