/* =================== RESET Y ESTILOS BASE =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --metal-blue: #1b263b;        /* Azul metálico profundo */
    --metal-accent: #0d6efd;      /* Azul brillante tipo acero */
    --metal-light: #2a3f5f;       /* Azul grisáceo más claro */
    --metal-dark: #0f172a;        /* Azul oscuro metalizado */
    --metal-bright: #1e40af;      /* Azul eléctrico */
    --highlight: #ecf0f1;         /* Amarillo dorado */
    --metal-gradient: linear-gradient(135deg, #1b263b 0%, #0d6efd 100%);
    --light: #ecf0f1;
    --shadow: 0 4px 12px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--metal-dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =================== NAVBAR COMPLETAMENTE IDÉNTICO AL DE MARCAS =================== */
.navbar {
    background: linear-gradient(90deg, var(--metal-dark), var(--metal-accent), var(--metal-dark)) !important;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

/* Logo IDÉNTICO al de marcas */
.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-brand span {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--light);
}

/* Links de navegación IDÉNTICOS al de marcas */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--highlight);
    opacity: 1;
}

.nav-link.active {
    font-weight: 700;
    transform: scale(1.05);
    text-shadow: 0 0 10px #ecf0f1(250, 204, 21, 0.5);
}

/* Subrayado animado en link activo - IDÉNTICO */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    border-radius: 2px;
    animation: glowUnderline 2s ease-in-out infinite;
}

@keyframes glowUnderline {
    0%, 100% {
        opacity: 0.7;
        box-shadow: 0 0 5px var(--highlight);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px var(--highlight);
    }
}

/* Botón menú móvil IDÉNTICO al de marcas */
#mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    padding: 8px 12px;
    transition: var(--transition);
    border-radius: 4px;
}

#mobile-menu-button:hover {
    background: rgba(255,255,255,0.1);
    color: var(--highlight);
}

/* Menú móvil IDÉNTICO al de marcas */
#mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--metal-blue);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

#mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#mobile-menu .mobile-link {
    color: var(--light);
    text-decoration: none;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#mobile-menu .mobile-link:hover, 
#mobile-menu .mobile-link.active {
    background: rgba(255,255,255,0.05);
    color: var(--highlight);
    padding-left: 25px;
}

#mobile-menu .mobile-link.active {
    font-weight: 700;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.15), transparent);
    border-left: 4px solid var(--highlight);
    text-shadow: 0 0 10px #ecf0f1(250, 204, 21, 0.5);
    transform: translateX(5px);
}

/* =================== VIDEO BACKGROUND =================== */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* =================== HERO MEJORADO =================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(27, 38, 59, 0.85) 50%,
        rgba(13, 110, 253, 0.6) 100%
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    background: linear-gradient(45deg, #ffffff, #0d6efd, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =================== BOTONES MÁS ELEGANTES =================== */
.btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.1rem;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #1e40af 50%, #0d6efd 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #1b263b 0%, #0d6efd 50%, #1b263b 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* =================== FEATURES =================== */
.features {
    padding: 100px 0;
    background: var(--metal-dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%232a3f5f" opacity="0.1"><polygon points="50,0 100,50 50,100 0,50"/></svg>');
    background-size: 80px;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(135deg, var(--metal-blue), var(--metal-light));
    border-radius: 16px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: var(--transition);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-card i {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #0d6efd, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    margin-bottom: 18px;
    font-size: 1.6rem;
    color: var(--light);
}

.feature-card h3 a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.feature-card h3 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--metal-accent);
    transition: var(--transition);
}

.feature-card h3 a:hover::after {
    width: 100%;
}

.feature-card h3 a:hover {
    color: var(--metal-accent);
}

.feature-card p {
    color: #bdc3c7;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =================== FOOTER =================== */
footer {
    background: linear-gradient(90deg, var(--metal-dark), var(--metal-blue), var(--metal-dark));
    color: white;
    text-align: center;
    padding: 50px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--metal-accent), transparent);
}

footer a {
    color: white;
    font-size: 1.8rem;
    margin: 0 18px;
    transition: var(--transition);
    display: inline-block;
}

footer a:hover {
    color: var(--metal-accent);
    transform: translateY(-5px) scale(1.1);
}

footer p {
    margin-top: 25px;
    font-size: 0.95rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* =================== RESPONSIVE MEJORADO =================== */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    #mobile-menu-button {
        display: block !important;
    }
    
    /* LOGO RESPONSIVE */
    .nav-brand {
        gap: 12px;
    }
    
    .nav-brand span {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 42px;
    }
    
    .hero {
        min-height: 75vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .feature-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    footer a {
        font-size: 1.5rem;
        margin: 0 12px;
    }
    
    #mobile-menu .mobile-link {
        padding: 16px 20px;
        font-size: 1rem;
    }
}