/* =========================================
   JAIRO3ST — ESTILOS FUTURISTAS
   ========================================= */

/* 1. RESET & VARIABLES */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --bg-2: #11111a;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #a0a0b0;
    --accent: #00d4ff;
    --accent-2: #7b2ff7;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    --glow: 0 0 40px rgba(0, 212, 255, 0.3);
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* cambiar el glow en hover*/
.service-card:hover img,
.process-step:hover img {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    transform: scale(1.05);
    transition: all 0.4s ease;
}

/* 2. CURSOR PERSONALIZADO */
.cursor {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}
.cursor-follower {
    position: fixed;
    width: 40px; height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.25s ease, width 0.3s, height 0.3s;
}

/* 3. PRELOADER */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
}
.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    overflow: hidden;
}
.preloader-bar span {
    display: block;
    height: 100%;
    background: var(--gradient);
    animation: load 1.8s ease forwards;
}
@keyframes load {
    from { width: 0; }
    to { width: 100%; }
}

/* 4. PARTÍCULAS */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* 5. NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo img { height: 38px; width: auto; }
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s;
    position: relative;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--gradient);
    transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }
.nav-cta {
    padding: 0.6rem 1.4rem !important;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text) !important;
}
.nav-cta:hover {
    background: var(--gradient);
    border-color: transparent;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* 6. HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    z-index: 0;
    animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.hero-content { position: relative; z-index: 2; max-width: 1000px; }
.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--gradient);
    color: var(--text);
    box-shadow: var(--glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
}
.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
}
.hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px; height: 40px;
    background: var(--gradient);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 7. MARQUEE */
.marquee {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-2);
}
.marquee-track {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dim);
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 8. SECCIONES GENERALES */
section { position: relative; z-index: 2; padding: 8rem 0; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.section-desc {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* 9. SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.service-card {
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--glow);
}
.service-card img {
    width: 60px; height: 60px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.5));
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}
.service-card p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.service-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

/* 10. ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(0.3);
    transition: filter 0.4s;
}
.about-image:hover img { filter: grayscale(0); }
.about-image-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,212,255,0.2) 100%);
    pointer-events: none;
}
.about-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 11. PROCESO */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}
.process-step img {
    width: 70px; height: 70px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 15px rgba(0,212,255,0.4));
}
.process-num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}
.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.process-step p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* 12. CONTACTO */
.contact {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group {
    position: relative;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1rem 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    cursor: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-group label {
    position: absolute;
    top: 1.2rem; left: 1rem;
    color: var(--text-dim);
    pointer-events: none;
    transition: all 0.3s;
    font-size: 1rem;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 0.4rem;
    font-size: 0.75rem;
    color: var(--accent);
}
.btn-full { width: 100%; justify-content: center; }

/* 13. FOOTER */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    color: var(--text-dim);
    margin-top: 1rem;
    max-width: 300px;
}
.footer-links h4,
.footer-social h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    margin-bottom: 1.2rem;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.social-icons {
    display: flex;
    gap: 0.8rem;
}
.social-icons a {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}
.social-icons a:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
}
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* 14. REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 15. RESPONSIVE */
@media (max-width: 900px) {
    .about-grid,
    .contact-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-stats { gap: 1.5rem; flex-wrap: wrap; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: var(--bg-2);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s;
        border-left: 1px solid var(--border);
    }
    .nav-menu.active { right: 0; }
    .nav-toggle { display: flex; }
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
    .btn, .form-group input, .form-group textarea { cursor: pointer; }
}

@media (max-width: 600px) {
    section { padding: 5rem 0; }
    .container { padding: 0 1.2rem; }
    .hero { padding: 6rem 1.2rem 3rem; }
}