@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap');

/* =============================================
   VARIABLES
============================================= */
:root {
    --acento:   #6D37FE;
    --negro:    #06060D;
    --texto:    #FFFFFF;
    --gris:     rgba(255, 255, 255, 0.4);
    --azul:     #1515F5;
    --magenta:  #D4187A;
    --lavanda:  #7050E0;
    --morado:   #4A0882;
}

/* =============================================
   RESET
============================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    background: var(--negro);
    color: var(--texto);
    font-family: 'Urbanist', sans-serif;
    overflow-x: hidden;
}

/* =============================================
   CURSOR — solo desktop (mismo estilo que la web principal)
============================================= */
.cursor{position:fixed;width:6px;height:6px;background:#7B5CF0;border-radius:50%;pointer-events:none;z-index:9999;transform:translate(-50%,-50%);transition:width .2s,height .2s;mix-blend-mode:screen;display:none}
.cursor.big{width:34px;height:34px;background:transparent;border:1px solid #7B5CF0}
@media(pointer:fine){body{cursor:none}.cursor{display:block}}

/* =============================================
   FONDO ANIMADO
============================================= */
.bg-fijo {
    position: fixed;
    inset: 0;
    background: var(--negro);
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(170px);
    will-change: transform;
}

.blob-1 {
    width: 600px; height: 600px;
    background: var(--azul);
    opacity: 0.22;
    top: -20%; right: -300px;
    animation: vertical-right 20s ease-in-out infinite alternate,
               color-right    14s ease-in-out infinite;
}

.blob-2 {
    width: 520px; height: 520px;
    background: var(--magenta);
    opacity: 0.32;
    bottom: -20%; left: -260px;
    animation: vertical-left 18s ease-in-out infinite alternate,
               color-left    11s ease-in-out infinite;
}

.blob-3 {
    width: 400px; height: 400px;
    background: var(--lavanda);
    opacity: 0.12;
    top: 35%; left: 25%;
    animation: deriva-3 26s ease-in-out infinite;
}

@keyframes vertical-right {
    from { transform: translateY(0); }
    to   { transform: translateY(110vh); }
}
@keyframes vertical-left {
    from { transform: translateY(0); }
    to   { transform: translateY(-110vh); }
}
@keyframes deriva-3 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-150px, 120px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes color-right {
    0%, 100% { background: var(--azul); }
    50%      { background: var(--magenta); }
}
@keyframes color-left {
    0%, 100% { background: var(--magenta); }
    50%      { background: var(--lavanda); }
}

/* =============================================
   OVERLAY FIJO
============================================= */
.isotipo-fijo {
    position: fixed;
    top: 24px; right: 28px;
    width: 32px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.isotipo-fijo.visible { opacity: 1; }

.footer-fijo {
    position: fixed;
    bottom: 20px;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: clamp(0.65rem, 1.1vw, 0.8rem);
    color: var(--gris);
    pointer-events: none;
}

.footer-fijo.visible { opacity: 1; }

/* =============================================
   FLECHAS DE NAVEGACIÓN
============================================= */
.flecha {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0.45;
    transition: opacity 0.25s ease;
}

.flecha:hover { opacity: 0.85; }
.flecha-prev  { left: 20px; }
.flecha-next  { right: 20px; }
.flecha.hidden { display: none; }

/* =============================================
   SLIDES
============================================= */
.slide {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    background: transparent;
    z-index: 1;
    overflow: hidden;
}

/* Transición de entrada/salida */
.animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide.visible .animate {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   SLIDE CONTENT BASE
============================================= */
.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    padding: 2rem 3rem;
}

.slide-content.centrado { text-align: center; }
.slide-content.angosto  { max-width: 760px; }

.slide-content.dos-col {
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 64px;
    text-align: left;
}

.col-texto { flex: 1; }
.col-media  { flex: 1; display: flex; align-items: center; justify-content: center; }

/* =============================================
   TIPOGRAFÍA DE CONTENIDO
============================================= */
.acento { color: var(--acento); }

/* Slide 1 */
.logo-principal {
    width: clamp(240px, 38vw, 460px);
    margin-bottom: 1.5rem;
}

.servicios {
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.link-web {
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    font-weight: 600;
    color: var(--acento);
    text-decoration: none;
}

/* Slides 2, 6, 7 */
.titulo {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.cuerpo {
    font-size: clamp(0.9rem, 1.7vw, 1.1rem);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.4rem;
}

.destacado {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 800;
    color: var(--acento);
    margin-top: 0.5rem;
}

.enunciado {
    font-size: clamp(1.3rem, 2.8vw, 2.1rem);
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.enunciado.acento {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--acento);
}

/* Slides 4 y 5 */
.servicio-titulo {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    color: var(--acento);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.servicio-sub {
    font-size: clamp(1rem, 1.9vw, 1.35rem);
    font-weight: 600;
    margin-bottom: 0.9rem;
    line-height: 1.3;
}

.servicio-cuerpo {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================
   BRAND STACK (Slide 4)
============================================= */
.brand-stack {
    position: relative;
    width: 340px;
    height: 230px;
    margin: 10px 50px 10px 20px;
}

.b-card {
    position: absolute;
    width: 300px;
    height: 210px;
    border-radius: 10px;
    overflow: hidden;
}

.b-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================
   VIDEO CAROUSEL (Slide 5)
============================================= */
.video-carousel {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-card {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    background: #06060D;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.vc-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tamaños y posición */
.vc-center {
    width: 175px;
    height: 300px;
    z-index: 3;
    transform: translateY(0);
    opacity: 1;
}

.vc-left {
    width: 148px;
    height: 255px;
    z-index: 2;
    transform: translateX(-130px);
    opacity: 0.7;
}

.vc-right {
    width: 148px;
    height: 255px;
    z-index: 2;
    transform: translateX(130px);
    opacity: 0.7;
}

/* Animación de entrada */
@keyframes vc-entrada {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vc-entrada-lateral {
    from {
        opacity: 0;
        transform: translateY(18px) translateX(var(--tx));
    }
    to {
        opacity: 0.7;
        transform: translateY(0) translateX(var(--tx));
    }
}

/* Animación de salida */
@keyframes vc-salida {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-18px);
    }
}

@keyframes vc-salida-lateral {
    from {
        opacity: 0.7;
        transform: translateY(0) translateX(var(--tx));
    }
    to {
        opacity: 0;
        transform: translateY(-18px) translateX(var(--tx));
    }
}

.vc-left  { --tx: -130px; }
.vc-right { --tx:  130px; }

.vc-card.entrando-center  { animation: vc-entrada         0.5s ease forwards; }
.vc-card.entrando-lateral { animation: vc-entrada-lateral 0.5s ease forwards; }
.vc-card.saliendo-center  { animation: vc-salida          0.4s ease forwards; }
.vc-card.saliendo-lateral { animation: vc-salida-lateral  0.4s ease forwards; }

/* Mobile: 2 cards lado a lado */
@media (max-width: 768px) {
    .video-carousel {
        height: 220px;
    }

    .vc-card {
        position: relative;
        transform: none !important;
        border-radius: 12px;
    }

    .vc-center {
        width: 130px;
        height: 200px;
        opacity: 1;
    }

    .vc-left {
        width: 130px;
        height: 200px;
        opacity: 1;
    }

    .vc-right {
        display: none;
    }

    .video-carousel {
        gap: 10px;
        justify-content: center;
        flex-direction: row;
    }

    .vc-card.entrando-center,
    .vc-card.entrando-lateral {
        animation: vc-entrada 0.5s ease forwards;
    }

    .vc-card.saliendo-center,
    .vc-card.saliendo-lateral {
        animation: vc-salida 0.4s ease forwards;
    }
}

/* =============================================
   TEAM (Slide 8)
============================================= */
.team-header { margin-bottom: 1.8rem; }

.team-titulo {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
}

.team-subtitulo {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--acento);
}

.team-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.team-card {
    transform: skewX(-8deg);
    overflow: hidden;
    width: 155px;
    flex-shrink: 0;
}

.card-inner {
    transform: skewX(8deg);
    position: relative;
    height: 240px;
    background: #08080F;
    margin: 0 -22px;
}

.card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    display: block;
}

.card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.card-nombre {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.card-rol {
    display: block;
    font-size: 0.58rem;
    color: var(--acento);
    font-weight: 400;
    margin-top: 2px;
}

/* =============================================
   CLIENTES (Slide 9)
============================================= */
.clientes-header { margin-bottom: 1.8rem; }

.clientes-titulo {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    color: var(--acento);
    margin-bottom: 0.4rem;
}

.clientes-sub {
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    color: rgba(255, 255, 255, 0.85);
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px 48px;
    align-items: center;
    justify-items: center;
}

.clientes-grid img {
    height: 30px;
    width: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* =============================================
   CIERRE (Slide 10)
============================================= */
.slide-cierre { align-items: stretch; }

.slide-content.cierre {
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
}

.cierre-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    text-align: center;
    padding: 3rem 3rem 1rem;
}

.cierre-titulo {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--acento);
    line-height: 1.25;
    max-width: 800px;
}

.cierre-sub {
    font-size: clamp(0.9rem, 1.7vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
}

.cierre-contacto {
    display: flex;
    gap: 48px;
    justify-content: center;
    font-size: clamp(0.72rem, 1.4vw, 0.88rem);
    color: rgba(255, 255, 255, 0.7);
}

.cierre-social {
    display: flex;
    gap: 18px;
    justify-content: center;
    color: var(--acento);
}

.cierre-logo {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    flex-shrink: 0;
}

.cierre-logo img {
    width: 104%;
    margin-left: -2%;
    display: block;
}

/* =============================================
   RESPONSIVE — Mobile
============================================= */
@media (max-width: 768px) {
    .blob { filter: blur(120px); }

    .slide-content         { padding: 1.5rem; }
    .slide-content.dos-col {
        flex-direction: column;
        text-align: center;
        gap: 28px;
        max-width: 100%;
    }

    .col-texto { order: 1; }
    .col-media  { order: 2; }

    .clientes-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
    .clientes-grid img { height: 20px; }

    .team-grid {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .team-card  { width: 110px; }
    .card-inner { height: 170px; }

    .cierre-contacto { flex-direction: column; gap: 6px; }
    .cierre-top      { padding: 2rem 1.5rem 1rem; }

    .carrusel { height: 160px; }
    .gif-card { height: 155px; max-width: 110px; }

    .flecha       { width: 38px; height: 38px; }
    .flecha-prev  { left: 10px; }
    .flecha-next  { right: 10px; }

    .footer-fijo { padding: 0 16px; }
    .isotipo-fijo { top: 16px; right: 16px; width: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .blob    { animation: none; }
    .animate { transition: none; }
}
