/* ========================================
   JZDS - Main Stylesheet
   Diseño Web & Branding Estratégico
   ======================================== */

/* ========================================
   1. VARIABLES CSS (Custom Properties)
   ======================================== */
:root {
    /* Colores de Marca */
    --jz-lime: #ddff19;
    --jz-teal: #03b4b2;
    --jz-white: #ffffff;
    --jz-black: #000000;
    --jz-dark: #0a0a0a;
    --jz-dark-card: #121212;
    
    /* Colores con transparencia */
    --jz-glass: rgba(255, 255, 255, 0.03);
    --jz-glass-light: rgba(255, 255, 255, 0.05);
    --jz-glass-lighter: rgba(255, 255, 255, 0.08);
    
    /* Gradientes */
    --gradient-lime-teal: linear-gradient(90deg, var(--jz-lime) 0%, var(--jz-teal) 100%);
    --gradient-teal-lime: linear-gradient(90deg, var(--jz-teal) 0%, var(--jz-lime) 100%);
    
    /* Sombras */
    --shadow-lime: 0 10px 30px rgba(221, 255, 25, 0.2);
    --shadow-teal: 0 10px 30px rgba(3, 180, 178, 0.2);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Bordes Redondeados */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    
    /* Tipografía */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Espaciado */
    --container-max: 1200px;
    --section-padding: 100px;
}

/* ========================================
   2. RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--jz-black);
    color: var(--jz-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   3. TIPOGRAFÍA
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.text-lime { color: var(--jz-lime); }
.text-teal { color: var(--jz-teal); }
.text-white { color: var(--jz-white); }

/* ========================================
   4. UTILIDADES
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { display: flex; flex-direction: column; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.hidden { display: none; }
.visible { display: block; }

/* ========================================
   5. NAVEGACIÓN
   ======================================== */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navegación transparente solo en Home (hero) */
body.page-home .main-navigation {
    background: transparent;
    border-bottom: none;
}

body.page-home .main-navigation.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-navigation.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--jz-white);
}

.logo-text {
    background: var(--gradient-lime-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.nav-menu a:hover {
    color: var(--jz-lime);
}

.btn-nav-contact {
    padding: 12px 24px;
    background: var(--jz-lime);
    color: var(--jz-black) !important;
    border-radius: var(--radius-full);
    font-weight: 700 !important;
    transition: all var(--transition-base) !important;
}

.btn-nav-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lime);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--jz-white);
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* Mobile Navigation - MEJORADO */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
        flex-direction: column;
        padding: 80px 24px 40px;
        gap: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-100%);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.2s ease;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--jz-lime);
        padding-left: 8px;
    }

    .nav-menu .btn-nav-contact {
        margin-top: 20px;
        padding: 16px 24px;
        background: linear-gradient(135deg, var(--jz-lime), var(--jz-teal));
        color: var(--jz-black);
        border-radius: 12px;
        text-align: center;
        font-weight: 700;
    }

    .nav-menu .btn-nav-contact:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 24px rgba(221, 255, 25, 0.3);
    }

    /* Overlay background */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Animated hamburger to X */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ========================================
   6. BOTONES
   ======================================== */
.btn-jzds {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 38px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-lime {
    background: var(--jz-lime);
    color: var(--jz-black);
    box-shadow: var(--shadow-lime);
}

.btn-lime:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(221, 255, 25, 0.4);
    background: var(--jz-white);
}

.btn-teal {
    background: var(--jz-teal);
    color: var(--jz-white);
    box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(3, 180, 178, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--jz-lime);
    color: var(--jz-lime);
}

.btn-outline:hover {
    background: var(--jz-lime);
    color: var(--jz-black);
    transform: translateY(-5px);
}

/* ========================================
   7. SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 10;
    width: auto;
    margin: 0;
    padding: 0;
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    margin-bottom: 10px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--jz-lime);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBtn 2s infinite;
}

@keyframes scrollBtn {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ========================================
   8. FOOTER
   ======================================== */
.main-footer {
    background: var(--jz-dark);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-lime-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--jz-glass-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--jz-lime);
    color: var(--jz-black);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--jz-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--jz-lime);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--jz-lime);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--jz-lime);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}
