/* ==========================================
   JEEPGEEK - Main Stylesheet
   Ruta y Tecnología Off-Road
   Versión unificada - SIN DUPLICADOS
   ========================================== */

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

body {
    background-color: #0A0C10;
    font-family: 'Inter', sans-serif;
    color: #E9EDF2;
    scroll-behavior: smooth;
}

/* rugged earthy + tech accents */
:root {
    --deep-mud: #1E1B16;
    --trail-green: #2C5F2D;
    --geek-cyan: #00E5FF;
    --geek-purple: #A855F7;
    --carbon-gray: #13161C;
    --panel-rust: #5A3E2B;
    --signal-orange: #FF6B35;
    --matrix-glow: rgba(0, 229, 255, 0.2);
}

/* Custom scroll */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1E1B16;
}
::-webkit-scrollbar-thumb {
    background: #2C5F2D;
    border-radius: 10px;
}

/* container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* header / navbar */
.header {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    background: rgba(10, 12, 16, 0.4);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==========================================
   LOGO STYLES
   ========================================== */

.logo-img {
    height: 120px;
    width: auto;
    max-width: 700px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.2));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.6));
    transform: scale(1.02);
}

/* ==========================================
   NAVIGATION LINKS
   ========================================== */

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #CBD5E1;
    transition: 0.2s;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.nav-links a:hover {
    color: #00E5FF;
    text-shadow: 0 0 6px #00E5FF;
}

/* ==========================================
   MENÚ HAMBURGUESA
   ========================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 200;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--geek-cyan);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ==========================================
   HERO SECTION CON VIDEO
   ========================================== */

.hero-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0;
    animation: videoFadeIn 1s ease forwards;
}

@keyframes videoFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 490px 20px 60px;  /* Aumenta el padding superior */
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h2,
.hero-content p,
.hero-content .hero-badge,
.hero-content .stats-chip {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hero-badge {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 229, 255, 0.12);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    color: var(--geek-cyan);
    border: 1px solid rgba(0,229,255,0.3);
    margin-bottom: 24px;
}

.hero h2 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(145deg, #FFFFFF, #89CFF0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 24px auto;
    color: #ADB7C7;
}

.stats-chip {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.chip {
    background: #1A1E26;
    padding: 8px 20px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 3px solid var(--geek-cyan);
}

/* ==========================================
   CONTENT WRAPPER
   ========================================== */

.content-wrapper {
    position: relative;
    z-index: 2;
    background: rgba(10, 12, 16, 0.92);
    backdrop-filter: blur(8px);
}

.content-wrapper .pillars,
.content-wrapper .tech-showcase,
.content-wrapper .geek-module,
.content-wrapper .trail-log {
    background: transparent;
}

/* ==========================================
   CARDS
   ========================================== */

.pillars {
    padding: 80px 0 40px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.card {
    background: rgba(17, 19, 24, 0.95);
    border-radius: 28px;
    padding: 32px 24px;
    transition: all 0.25s ease;
    border: 1px solid rgba(44, 95, 45, 0.4);
    backdrop-filter: blur(2px);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.5);
}

.card:hover {
    transform: translateY(-6px);
    border-color: #00E5FF;
    box-shadow: 0 18px 30px -8px rgba(0,229,255,0.2);
}

.card-icon {
    font-size: 2.8rem;
    color: var(--geek-cyan);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p {
    color: #B9C3D0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.card-badge {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.75rem;
    font-family: monospace;
    background: #1E2A1E;
    padding: 4px 12px;
    border-radius: 20px;
    color: #8BFF8F;
}

.card-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
    height: 200px;
    object-fit: cover;
}

/* ==========================================
   TECH SHOWCASE
   ========================================== */

.tech-showcase {
    background: rgba(14, 17, 23, 0.9);
    padding: 70px 0;
    margin: 40px 0;
    border-radius: 48px;
    border-top: 1px solid #2C5F2D;
    border-bottom: 1px solid #2C5F2D;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.feature-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 24px;
    background: rgba(0,0,0,0.5);
    border-radius: 32px;
    backdrop-filter: blur(4px);
}

.feature-item i {
    font-size: 3rem;
    color: var(--signal-orange);
}

.feature-item h4 {
    font-size: 1.5rem;
    margin: 16px 0 8px;
}

.feature-item .desc {
    font-size: 0.85rem;
    font-family: monospace;
}

.feature-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 16px;
    height: 160px;
    object-fit: cover;
}

/* ==========================================
   GEEK MODS & RETRO DECOR
   ========================================== */

.geek-module {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 60px 0;
    align-items: center;
}

.geek-text {
    flex: 1;
}

.geek-text h3 {
    font-size: 2rem;
    color: #A855F7;
    margin-bottom: 16px;
}

.geek-text p {
    font-size: 1rem;
    line-height: 1.5;
}

.geek-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-geek {
    background: transparent;
    border: 1.5px solid #A855F7;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
    color: white;
    display: inline-block;
}

.btn-geek:hover {
    background: #A855F7;
    color: #0A0C10;
    box-shadow: 0 0 12px #A855F7;
}

.geek-gallery {
    flex: 1;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.gadget-chip {
    background: #24222C;
    padding: 12px 20px;
    border-radius: 60px;
    font-weight: 500;
    font-family: monospace;
    font-size: 0.9rem;
}

.gadget-chip i {
    margin-right: 8px;
    color: var(--geek-cyan);
}

.gadget-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ==========================================
   TRAIL LOG SECTION
   ========================================== */

.trail-log {
    background: rgba(15, 18, 25, 0.9);
    padding: 60px 0;
    border-radius: 40px;
    margin: 40px 0;
}

.trail-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.log-item {
    background: rgba(30, 27, 22, 0.7);
    padding: 18px 24px;
    border-radius: 28px;
    border-left: 6px solid var(--trail-green);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.log-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.log-meta {
    color: #00E5FF;
    font-family: monospace;
}

.trail-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

/* ==========================================
   CTA BOX
   ========================================== */

.cta-box {
    background: linear-gradient(95deg, #10151F, #0B0E14);
    border-radius: 48px;
    padding: 48px 32px;
    text-align: center;
    border: 1px solid #2C5F2D;
}

.tech-badge {
    display: inline-flex;
    gap: 8px;
    background: #1A1E28;
    border-radius: 60px;
    padding: 6px 20px;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    position: relative;
    z-index: 2;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #2C3A2A;
    padding: 48px 0 32px;
    text-align: center;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(145deg, #fff, #00E5FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-copy {
    margin-top: 24px;
    font-size: 0.8rem;
    color: #728197;
}

/* ==========================================
   UTILITIES & EXTRAS
   ========================================== */

.glow-text {
    text-shadow: 0 0 5px rgba(0,229,255,0.5);
}

.btn-outline {
    background: none;
    border: 1px solid var(--geek-cyan);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.2s;
    cursor: default;
    display: inline-block;
}

.inline-code {
    font-family: monospace;
    background: #00000040;
    padding: 2px 6px;
    border-radius: 8px;
    color: #00E5FF;
}

html {
    scroll-padding-top: 80px;
}

/* ==========================================
   RESPONSIVE DESIGN (UNIFICADO)
   ========================================== */

@media (max-width: 800px) {
    .container {
        padding: 0 20px;
    }
    .hero h2 {
        font-size: 2.4rem;
    }
    .stats-chip {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 100px;
    }
    
    .header {
        padding: 8px 0;
        background: rgba(10, 12, 16, 0.85);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 12, 16, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.3s ease;
        z-index: 150;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(0, 229, 255, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-links a {
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .hero-video {
        min-height: 600px;
    }
    
    .hero-content {
        padding: 80px 20px;
    }
    
    .video-background video {
        display: none;
    }
    
    .hero-video {
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../image/hero-offroad.png');
        background-size: cover;
        background-position: center;
    }
    
    .card-img {
        height: 160px;
    }
    
    .feature-img {
        height: 130px;
    }
    
    .cta-box {
        padding: 32px 20px;
    }
    
    .footer {
        padding: 32px 0 24px;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 70px;
    }
    
    .hero-video {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 60px 15px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .chip {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .card-img {
        height: 140px;
    }
    
    .feature-img {
        height: 120px;
    }
    
    .trail-thumb {
        width: 50px;
        height: 50px;
    }
    
    .log-title {
        font-size: 0.9rem;
    }
    
    .log-meta {
        font-size: 0.7rem;
    }
    
    .cta-box {
        padding: 24px 16px;
    }
    
    .cta-box h3 {
        font-size: 1.3rem !important;
    }
    
    .tech-badge {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .footer-copy {
        font-size: 0.7rem;
    }
}