
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html {
    scroll-behavior: smooth;
}

        body {
            background: #0c0c0c;
            color: white;
            overflow-x: hidden;
            font-family: Arial, Helvetica, sans-serif;
        }
        .bg-video {
    position: absolute;
    top: -40px;
    left: -80px;
    width: 110%;
    height: 110%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    transform: rotate(357deg);
}

        /* NAV */
        nav {
            position: absolute;
            top: 0;
            width: 100%;
            padding: 25px 70px;
            display: flex;
            justify-content: space-around;
            gap: 40px;
            font-weight: 600;
            z-index: 20;
        }
        nav a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            letter-spacing: .5px;
        }

        /* HERO */
        .hero {
            height: 100vh;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* TÍTULO GIGANTE DEL FONDO */
        .title-big {
            position: absolute;
            top: 12%;
            width: 100%;
            text-align: center;
            font-size: 150px;
            font-weight: 900;
            letter-spacing: -8px;
            opacity: .15;
            z-index: 1;
            pointer-events: none;
        }

        /* CONTENIDO PRINCIPAL */
        .hero-inner {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 60px;
            z-index: 5;
            padding: 0 40px;
            max-width: 1500px;
            width: 100%;
        }

        /* TEXTO IZQUIERDO */
        .left-text {
            max-width: 350px;
            text-align: left;
        }
        .left-text p {
            line-height: 1.5;
            opacity: .9;
            font-size: 18px;
        }

        /* AVATAR CENTRO */
        .avatar-box {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 320px;
            height: 320px;
            perspective: 900px;
        }
        .avatar-box img {
            width: 300px;
            transition: transform 0.2s ease-out;
            transform-style: preserve-3d;
        }

        /* BOTON A LA DERECHA */
        .right-col {
            display: flex;
            align-items: center;
        }

        .btn {
            padding: 14px 35px;
            font-size: 18px;
            font-weight: 700;
            border-radius: 50px;
            background: linear-gradient(45deg, #ff00cc, #ff8800);
            color: white;
            text-decoration: none;
            box-shadow: 0 0 20px #ff00cc66;
            transition: .25s;
        }
        .btn:hover {
            transform: scale(1.07);
        }

        /* RESPONSIVE */
        @media (max-width: 1050px) {
            .hero-inner {
                flex-direction: column;
            }
            .title-big {
                font-size: 100px;
            }
        }

        /* Banda Infinita */
        /* SLIDER DE LOGOS */
.logo-slider {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: transparent;
    white-space: nowrap;
    transform: rotate(357deg) !important;
    top: 560px;
    position: absolute;
    z-index: 10;
    margin-bottom: 20px;
}

.logo-track {
    display: inline-flex;
    gap: 60px;
    animation: scroll 38s linear infinite;
}

/* Logos blancos por defecto */
.logo-track img {
    height: 70px;
    filter: brightness(200%) grayscale(100%); 
    opacity: .7;
    transition: .3s ease-in-out;
}

/* Iluminación + color al hover */
.logo-track img:hover {
    filter: brightness(120%) grayscale(0%);
    opacity: 1;
    transform: scale(1.12);
}


/* Animación contínua */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* SECCIÓN DE TECNOLOGÍAS */
.tech-section {
    margin-top: 90px;
    transform: rotate(357deg) !important;
}
.tech-slider {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin: 35px 0;
}

.tech-track {
    display: inline-flex;
    gap: 40px;
    align-items: center;
}

/* Cards largas */
.tech-track img {
    height: 160px;
    border-radius: 20px;
    object-fit: cover;
    filter: brightness(85%);
    transition: .3s ease;
}

.tech-track img:hover {
    filter: brightness(120%);
    transform: scale(1.05);
}

/* Animación de izquierda → derecha ↓ */
.right .tech-track {
    animation: scrollRight 190s linear infinite;
}

/* Animación de derecha → izquierda ↓ */
.left .tech-track {
    animation: scrollLeft 190s linear infinite;
}

/* KEYFRAMES */
@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

        /* ************** */

        /* about us */
        /* ABOUT ME */
.about-me-section {
    position: relative;
    padding: 140px 0;
    text-align: center;
    background: #0c0c0c;
    overflow: hidden;
}

.about-title-big {
    font-size: 130px;
    font-weight: 900;
    opacity: .12;
    letter-spacing: -6px;
    margin-bottom: 40px;
    pointer-events: none;
}

.about-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    z-index: 10;
}

.about-text p {
    font-size: 22px;
    line-height: 1.6;
    opacity: .92;
    margin-bottom: 40px;
}

.about-btn {
    padding: 14px 45px;
    background: linear-gradient(45deg, #ff00cc, #ff8800);
    border-radius: 40px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 0 18px #ff00cc66;
    transition: .25s;
}
.about-btn:hover {
    transform: scale(1.07);
}

/* IMÁGENES DECORATIVAS 3D */
.shape {
    position: absolute;
    width: 170px;
    opacity: 0.9;
    filter: drop-shadow(0 0 12px #ffffff30);
    animation: float 6s ease-in-out infinite;
}

.shape1 { top: 20%; left: 10%; animation-delay: 0s; }
.shape2 { top: 60%; right: 12%; animation-delay: 1s; }
.shape3 { bottom: 15%; left: 20%; width: 150px; animation-delay: 2s; }
.shape4 { top: 35%; right: 28%; width: 140px; animation-delay: 3s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0px); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-title-big {
        font-size: 80px;
    }
    .shape {
        width: 120px;
    }
}
/* MODELOS 3D DECORATIVOS — NO INTERACTIVOS */
model-viewer.shape {
    position: absolute;
    width: 260px;
    height: 260px;
    z-index: 50;
    filter: drop-shadow(0 0 20px #ffffff40);
    animation: float 7s ease-in-out infinite;
    --poster-color: transparent;
}
/* ROTACIÓN INICIAL DE LOS MODELOS GLB */
model-viewer.shape {
    --model-viewer-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    transform: var(--model-viewer-transform);
}

/* NUEVAS POSICIONES MÁS A LOS BORDES */
.shape1 { top: -70%; left: -12%; animation-delay: 0s; }
.shape2 { top: 55%; right: -3%; animation-delay: 1s; }
.shape3 { bottom: -35%; left: -35%; animation-delay: 2s; }
.shape4 { top: -40%; right: -26%; animation-delay: 3s; }

/* ANIMACIÓN */
@keyframes float {
    0%   { transform: translateY(0px) rotateZ(0deg); }
    50%  { transform: translateY(-24px) rotateZ(4deg); }
    100% { transform: translateY(0px) rotateZ(0deg); }
}

        /* ********* */

        /* ================= FOOTER ================= */
.footer {
    padding: 150px 0;
    background: #0a0a0a;
    border-top: 1px solid #ffffff15;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-col p {
    opacity: .7;
    font-size: 15px;
    margin-top: 4px;
}

.footer-col a {
    display: block;
    color: #fff;
    opacity: .75;
    text-decoration: none;
    margin-bottom: 8px;
    transition: .25s;
}

.footer-col a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: #ff00aa;
}


/* -------- FOOTER -------- */
.footer {
    padding: 60px 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 120px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-col p {
    color: #ccc;
    margin-bottom: 15px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bbb;
    margin: 8px 0;
    text-decoration: none;
    font-size: 15px;
    transition: color .3s;
}

.footer-col a:hover {
    color: #00ffcc;
}

.footer-social a svg {
    flex-shrink: 0;
}

.footer-btn {
    margin-bottom: 15px;
    background: #00ffcc;
    color: #000;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .5px;
    transition: background .3s, transform .3s;
}

.footer-btn:hover {
    background: #00e6b8;
    transform: translateY(-2px);
}

.footer-col:last-child p {
    color: #777;
    font-size: 14px;
}

/* RESPONSIVE */
@media(max-width: 780px) {
    .footer-inner {
        text-align: center;
        justify-content: center;
    }
}
model-viewer.shape,
model-viewer.ai-model {
    opacity: 0;
    transition: opacity 0.6s ease;
}

model-viewer.shape.loaded,
model-viewer.ai-model.loaded {
    opacity: 1;
}

/* animaciones */
/* ANIMACIONES DE ENTRADA */
@keyframes pizoton {
    0%  { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.15; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animaciones solo cuando estén en pantalla */
.title-big.animated {
    animation: pizoton 1.6s ease-out forwards;
}

.left-text.animated,
.avatar-box.animated,
.right-col.animated {
    animation: fadeInUp 1.8s ease-out forwards;
}

/* Delay escalonado */
.left-text.animated      { animation-delay: 0.2s; }
.avatar-box.animated     { animation-delay: 0.4s; }
.right-col.animated      { animation-delay: 0.6s; }
/* === ANIMACIÓN DE ENTRADA CON INVISIBILIDAD INICIAL === */

/* Clase base: empieza invisible y desplazado */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Cuando se agrega .animated, aparece */
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Delay opcional */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 10.5s; }
/* ///////////////// */
        /* --------------------------- */
        /* ANIMACIONES DE ENTRADA/SALIDA UNIVERSALES */
        /* --------------------------- */

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity .8s ease, transform .8s ease;
        }

        .animate-on-scroll.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .animate-on-scroll.hidden {
            opacity: 0;
            transform: translateY(40px);
        }

        /* Delays */
        .delay-1 { transition-delay: .2s; }
        .delay-2 { transition-delay: .4s; }
        .delay-3 { transition-delay: .6s; }
        .delay-4 { transition-delay: .8s; }
        .delay-5 { transition-delay: 1s; }
        .title-big {
    position: absolute;
    top: 12%;
    width: 100%;
    text-align: center;
    font-size: 120px;
    font-weight: 900;
    letter-spacing: -8px;
    opacity: .15;
    z-index: 1;
    pointer-events: none;
    color: #ffffff26;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 40px;

    display: flex;
    justify-content: space-around;
    gap: 40px;

    backdrop-filter: blur(12px);
    background: rgba(10, 10, 20, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    z-index: 9999;

    transition: background 0.3s ease, padding 0.3s ease;
}

/* efecto al hacer scroll */
nav.scrolled {
    background: rgba(10, 10, 20, 0.6);
    padding: 10px 40px;
}

nav a {
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 14px;
    transition: color .3s;
}

nav a:hover {
    color: #00ffcc;
}

/* =========================== */
/* RESPONSIVE GLOBAL */
/* =========================== */

/* Pantallas grandes – Ajustes suaves */
@media (max-width: 1300px) {
    .title-big {
        font-size: 120px;
    }
    .avatar-box {
        width: 280px;
        height: 280px;
    }
    .avatar-box img {
        width: 260px;
    }
}

/* =========================== */
/* 1050px – Breakpoint PRINCIPAL */
/* =========================== */
@media (max-width: 1050px) {

    nav {
        padding: 18px 35px;
        gap: 25px;
        font-size: 14px;
        position: fixed;
        backdrop-filter: blur(12px);
        background: rgba(0,0,0,0.35);
    }

    .hero-inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .title-big {
        font-size: 90px;
        top: 18%;
    }

    .left-text {
        max-width: 90%;
    }

    .right-col {
        justify-content: center;
    }

    .logo-slider {
        margin-top: 80px;
        padding: 20px 0;
    }
}


/* =========================== */
/* 600px – Teléfonos grandes */
/* =========================== */
@media (max-width: 600px) {

    nav {
        justify-content: center;
        gap: 18px;
        padding: 10px 15px;
    }

    nav a {
        font-size: 12.5px;
    }

    .title-big {
        font-size: 52px;
    }

    .hero-inner {
        gap: 30px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 15px;
    }

    .logo-track img {
        height: 45px;
    }

    .tech-track img {
        height: 95px;
    }

    .about-title-big {
        font-size: 55px;
    }

    .about-text p {
        font-size: 17px;
    }

    .about-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* 3D shapes */
    .shape {
        width: 90px;
    }
    .ai-message {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    min-height: 20px !important;
    color: #eaeaea;
}
.ai-chat {
    background: #111;
    padding: 25px 10px;
    border-radius: 18px;
    max-width: 520px;
    border: 1px solid #ffffff20;
    box-shadow: 0 0 18px #ff00cc33;
}
    .ai-title {
        font-size: 40px !important;
    }
    model-viewer.shape {
    position: absolute;
    width: 76vw;
    height: 46vw;
    z-index: -10;
    filter: drop-shadow(0 0 20px #ffffff40);
    animation: float 7s ease-in-out infinite;
    --poster-color: transparent;
}
    .logo-slider {
        margin-top: 0;
        transform: rotate(0) !important;
        padding: 20px 0;
    }
       nav {
        width: 100vw;
        position: fixed;
        top: 1px;
        left: 0;
        padding: 20px 10px;
        display: flex;
        justify-content: space-around;
        backdrop-filter: blur(12px);
        background: rgba(10, 10, 20, 0.35);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 9999;
    }
        nav a {
        font-size: 9.5px;
    }
    .ia-chat-window {
    position: absolute;
    bottom: 90px !important;
    right: 0vh !important; 
    width: 360px !important;
    height: 80vh;
    background: #0e0f16;
    backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1px solid #00ffcc55;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .7);
    transform: translateY(20px) scale(.85);
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease;
}
.ia-chat-flotante {
    position: fixed;
    bottom: 14vh !important;
    right: 80px !important;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
}
    .title-big {
        font-size: 52px;
        letter-spacing: -3px !important;
    }
        .ai-title {
        font-size: 40px !important;
        letter-spacing: -2px !important;
    }
        .ai-model {
        width: 240px !important;
        height: 200px !important;
    }
        .ia-chat-window {
        position: absolute;
        bottom: 70% !important;
        right: -5vw !important;
        width: 97vw !important;
        height: 80vh;
        background: #0e0f16;
        backdrop-filter: blur(25px);
        border-radius: 24px;
        border: 1px solid #00ffcc55;
        overflow: hidden;
        box-shadow: 0 25px 60px rgba(0, 0, 0, .7);
        transform: translateY(20px) scale(.85);
        opacity: 0;
        visibility: hidden;
        transition: all .35s ease;
    }
        .ia-chat-flotante {
        position: fixed;
        bottom: 20px;
        right: 13vw !important;
        z-index: 9999;
        font-family: 'Segoe UI', sans-serif;
    }
    #iaSendBtn {
    background: linear-gradient(135deg, #00ffcc, #0099ff);
    color: #000;
    border: none;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    padding: 0 0.5rem !important;
    font-weight: bold;
}
        .bg-video {
        position: absolute;
        top: -40px;
        left: -10px;
        width: 110%;
        height: 110%;
        object-fit: cover;
        z-index: -1;
        pointer-events: none;
        transform: rotate(0);
    }
    .tech-section{
       transform: rotate(0) !important; 
    }
}

