/* ===== VARIABLES DE COLORES ===== */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --orange: #FF6B35;
    --light-bg: #f8f9fa;
    --nav-primary: #003366; /* Color principal del navbar y footer */
}

/* ===== ESTILOS GENERALES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('../img/hero-bg.jpg');
}
.text-orange {
    color: var(--orange) !important;
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}
.btn-orange {
    background-color: var(--orange);
    color: white;
    border: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-orange:hover {
    background-color: #e05a2a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}
/* Efecto pulso para CTA */
.pulse {
    animation: pulse 2s infinite;
    position: relative;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}


/* ===== CARDS DE SERVICIOS ===== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ===== FORMULARIOS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ===== BOTONES ===== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--orange);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #e05a2a;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
    transition: all 0.3s ease;
    background-color: var(--nav-primary) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.navbar .nav-link {
    font-weight: 500;
    position: relative;
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: white !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .dropdown-menu {
    background-color: var(--nav-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

.navbar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--nav-primary) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

footer h4,
footer h5 {
    color: white !important;
}

footer a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
    text-decoration: none;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer hr {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

footer .text-decoration-none.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .text-decoration-none.text-muted:hover {
    color: white !important;
}

footer .fs-5 {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

footer .fs-5:hover {
    color: white !important;
}

/* ===== UTILIDADES ===== */
.rounded-circle {
    border-radius: 50% !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ===== AJUSTES RESPONSIVE ===== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .navbar-collapse {
        background-color: var(--nav-primary);
        padding: 1rem;
        border-radius: 0.25rem;
        margin-top: 0.5rem;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item.active {
    color: var(--primary);
}