/* css/style.css - Estilos personalizados */

:root {
    --primary-color: #0337D1;
    --primary-dark: #022AA3;
    --primary-light: #E8EEFF;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 76px;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.brand-highlight {
    color: var(--primary-color);
    position: relative;
}

.brand-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a !important;
    padding: 10px 18px !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 46, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(3, 55, 209, 0.2);
    border: 1px solid rgba(3, 55, 209, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #FFD700;
    margin-right: 8px;
}

.text-highlight {
    background: linear-gradient(135deg, #0337D1, #4A7FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-text {
    animation: fadeInUp 1s ease-out;
}

/* Hero Stats */
.hero-stats {
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    line-height: 36px;
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}

.scroll-indicator a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== SECTION TITLES ===== */
.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== EMPRESAS ===== */
#empresas {
    background: var(--gray-light);
    padding: 80px 0;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn-filter {
    padding: 10px 28px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: transparent;
    color: var(--gray-medium);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 55, 209, 0.3);
}

/* Empresa Cards */
.empresa-card {
    background: #fff;
    border-radius: 16px !important;
    padding: 25px 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Línea superior con el color de la empresa */
.empresa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--empresa-color, #0337D1);
    opacity: 0;
    transition: var(--transition);
}

/* Sombra y borde con el color de la empresa al hacer hover */
.empresa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--empresa-color, #0337D1) !important;
}

.empresa-card:hover::before {
    opacity: 1;
}

.empresa-card .logo-wrapper {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
}

.empresa-card .empresa-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.empresa-card:hover .empresa-logo {
    transform: scale(1.05);
}

.empresa-card .card-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.description-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6c757d;
    min-height: 60px;
}

.division-badge {
    font-size: 0.7rem;
    padding: 5px 16px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
}

/* Card Hover Animation */
.hover-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.hover-card:nth-child(1) { animation-delay: 0.1s; }
.hover-card:nth-child(2) { animation-delay: 0.2s; }
.hover-card:nth-child(3) { animation-delay: 0.3s; }
.hover-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== NOSOTROS ===== */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), #4A7FFF);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-year {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.timeline-content {
    color: #4a4a4a;
    font-weight: 500;
}

/* ===== CONTACTO ===== */
.contact-card {
    background: #fff;
    border-radius: 16px;
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a0a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1.4rem;
    }
    
    .hero-section h1 {
        font-size: 3rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .empresa-card .logo-wrapper {
        min-height: 60px;
    }
    
    .empresa-card .empresa-logo {
        max-height: 60px;
    }
    
    .filter-buttons .btn-filter {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem !important;
    }
    
    .stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}