/* =========================================
   U.E. Tomás Aguerrevere - Estilos Personalizados
   ========================================= */

:root {
    --primary: #1e3a8a;
    --primary-dark: #172554;
    --secondary: #64748b;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #0f172a;
}

/* Tipografía */
body {
    font-family: 'Roboto', sans-serif;
    color: #334155;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand span {
    line-height: 1.2;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #eff6ff;
    color: var(--primary);
    padding-left: 1.75rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
}

/* Stats Bar */
.stats-bar {
    transform: translateY(50%);
}

/* Cards & Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.card-img-top {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Sections */
.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

@media (min-width: 768px) {
    .py-6 {
        padding-top: 7rem !important;
        padding-bottom: 7rem !important;
    }
}

/* Testimonials */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-size: 60%;
}

/* Footer */
.hover-white:hover {
    color: #ffffff !important;
}

footer a {
    transition: color 0.2s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .stats-bar {
        position: relative;
        transform: none;
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .dropdown-menu {
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* Utility Classes */
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    body { font-size: 12pt; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}