:root {
    --bg-black: #000000;
    --text-white: #ffffff;

    --brand-purple: #7337FB;
    --brand-green: #BDF62F;
    --brand-orange: #FC3B1C;
    --brand-pink: #DB40FC;
    --brand-cyan: #2DC3C2;

    --switch-off-bg: #cfcfcf;
    --switch-on-bg: #ffffff;

    --switch-knob-off: #1f1f1f;
    --switch-knob-on: #BDF62F;

    /* Variables extra de prueba.css (Las mismas de arriba, por redundancia o uso propio de la seccion) */
    --mp-violeta: #7337fb;
    --mp-verde-lima: #bdf62f;
    --mp-rojo: #fc3b1c;
    --mp-fucsia: #db40fc;
    --mp-cian: #2dc3c2;

--cursor-hand: url("assets/hand-pointing.svg") 17 20, pointer;
    --cursor-grab: url("assets/hand-still.svg") 17 20, grab;
    --cursor-grabbing: url("assets/hand-grabbing.png") 20 20, grabbing;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Anton solo viene en un peso (400): los h1-h6 vienen en bold por default
   del navegador, y como no hay un archivo bold real termina "inventando"
   uno sintético (más grueso / con trazo raro). Se resetea a normal para
   que Anton se vea siempre igual en todos los títulos del sitio. */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

a, button {
    cursor: var(--cursor-hand);
}

body {
    background: var(--bg-black);
    color: var(--text-white);
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Base de imágenes para evitar conflictos globales con la seccion work */
.work video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Antes el padding vertical (24px arriba/abajo) comía la altura
       disponible para estirar a los hijos: el "content box" que queda
       para el stretch era 83px - 48px = 35px, no los 83px totales. Con
       altura fija y padding solo horizontal, ahora el stretch sí llega
       a la altura completa del header (logo y links se siguen
       centrando solos adentro, por su propio align-items: center). */
    height: 83px;
    padding: 0 60px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 99999;
    background-color: black;
    /* Sin color en el estado inicial (arriba de todo, en la hero): el
       borde recién aparece (ver .navbar.scrolled) una vez que scrolleaste
       y volvés a ver el header. El grosor queda igual siempre (sólo
       cambia el color) para que no salte el alto del header al aparecer. */
    border-bottom: 3px solid transparent;

    transition: transform .35s ease, border-bottom-color .2s ease;
    transform: translateY(0);
}

.navbar.scrolled {
    border-bottom-color: var(--brand-purple);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    /* El archivo del logo tiene ~7px de margen transparente propio del
       lado izquierdo (medido en el original: 117px de 2455px de ancho).
       El texto del nav no tiene ese margen extra, así que sin esto el
       logo se ve con más aire a la izquierda que el nav a la derecha. */
    margin-left: -8px;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
}

.menu-list {
    display: flex;
    list-style: none;
    align-items: stretch;
    height: 100%;
}

.menu-item {
    margin-left: 35px;
    position: relative;
}

.menu-item>a {
    display: flex;
    align-items: center;
    height: 100%;
    color: white;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.menu-item>a:hover {
    color: var(--brand-orange);
}

.work-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;

    min-width: 230px;

    background: #fff;
    border: 1px solid #fc3b1c;

    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;

    opacity: 0;
    transform: translateY(10px) rotate(-1deg);
    pointer-events: none;

    transition: opacity .22s ease, transform .22s ease;
    z-index: 1001;
}

.work-dropdown::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent;
}

.menu-item-has-dropdown:hover .work-dropdown,
.work-dropdown:hover {
    opacity: 1;
    transform: translateY(0) rotate(-1deg);
    pointer-events: auto;
}

/* Se fuerza el cierre justo después de clickear un link, aunque el mouse
   se quede arriba (el :hover de CSS solo no alcanza para eso). */
.menu-item-has-dropdown.dropdown-force-closed .work-dropdown {
    opacity: 0 !important;
    transform: translateY(10px) rotate(-1deg) !important;
    pointer-events: none !important;
}

.work-dropdown a {
    font-family: 'Anton', sans-serif;
    color: #000;
    text-decoration: none;
    font-size: 1.3rem;
    text-transform: uppercase;
    padding: 10px 12px;
    line-height: 1.1;
    background: transparent;
}

.work-dropdown a:hover {
    background: var(--brand-orange);
    color: #ffffff;
}

.content-wrapper {
    display: flex;
    height: 100vh;
    background: var(--bg-black);
}

.main-content {
    flex: 1.35;
    padding-left: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-text-container {
    position: relative;
    width: 100%;
    max-width: 980px;
    z-index: 5;
}

.hero__title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 9vw, 8.5rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__title-outline {
    color: transparent;
    -webkit-text-stroke: 3px white;
    margin-bottom: 8px;
}

.hero__title-fill {
    color: white;
}

.dots-decoration {
    position: absolute;
    top: -120px;
    right: -400px;
    z-index: 1;
    pointer-events: none;
}

.trama-svg {
    width: 360px;
    height: auto;
    display: block;
    filter: grayscale(100%);
}

.switch-container {
    margin-top: 55px;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.custom-switch {
    width: 380px;
    height: 108px;
    background: var(--switch-off-bg);
    border-radius: 999px;
    border: none;
    position: relative;
    flex-shrink: 0;
    cursor: var(--cursor-grab);
    overflow: hidden;
}

.custom-switch.dragging {
    cursor: var(--cursor-grabbing);
}

.handle {
    width: 90px;
    height: 90px;
    background: var(--switch-knob-off);
    border-radius: 50%;
    position: absolute;
    left: 9px;
    top: 9px;
    z-index: 2;
}

.indicator-group {
    position: relative;
    width: 320px;
    height: 150px;
    flex-shrink: 0;
}

.arrow-hand-drawn {
    position: absolute;
    left: -8px;
    top: 32px;
    width: 200px;
    height: 100px;
    transform: scaleY(-1) rotate(-8deg);
    transform-origin: center;
    pointer-events: none;
}

.arrow-hand-drawn svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tag-orange,
.tag-purple {
    position: absolute;
    left: 105px;
    top: 4px;
    padding: 14px 26px;
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    color: white;
    white-space: nowrap;
    transform: rotate(8deg);
    transform-origin: center;
}

.tag-orange {
    background: var(--brand-orange);
    opacity: 1;
}

.tag-purple {
    background: var(--brand-purple);
    opacity: 0;
}

.side-visuals {
    flex: 0.95;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
}

.image-composition {
    position: relative;
    width: 620px;
    height: 100vh;
}

.color-block {
    position: absolute;
    top: 26px;
    right: 84px;
    width: 420px;
    height: 900px;
    background: var(--brand-orange);
    opacity: 0;
    z-index: 1;
}

.main-image {
    position: absolute;
    right: 0;
    top: 78px;
    width: auto;
    height: calc(100vh - 78px);
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    z-index: 2;
}

.extra-image {
    position: absolute;
    object-fit: cover;
    opacity: 0;
    z-index: 3;
}

.extra-image-1 {
    width: auto;
    height: 320px;
    right: 380px;
    top: 310px;
    z-index: 3;
}

.extra-image-2 {
    width: auto;
    height: 300px;
    right: 300px;
    bottom: 50px;
    z-index: 3;
}

.tags-physics-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 9000;
    overflow: hidden;
}

.tag-pill {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 30px;
    border-radius: 0;
    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    pointer-events: none;
}

.tag-pill--purple {
    background: var(--brand-purple);
    color: #ffffff;
}

.tag-pill--green {
    background: var(--brand-green);
    color: #000000;
}

.tag-pill--orange {
    background: var(--brand-orange);
    color: #ffffff;
}

.tag-pill--pink {
    background: var(--brand-pink);
    color: #ffffff;
}

.tag-pill--cyan {
    background: var(--brand-cyan);
    color: #000000;
}

/* =========================
   SECCION 2 - TRABAJOS
========================= */

#worksBottomWord {
    display: inline-block;
}

.works-intro {
    position: relative;
    min-height: 100vh;
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.works-intro__inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
    padding: 60px 40px;
}

.works-intro__title {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    z-index: 20;
    cursor: var(--cursor-hand);
}

.works-title-bottom {
    position: relative;
    display: inline-block;
}

.works-underline {
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 100%;
    height: 14px;
    overflow: visible;
    pointer-events: none;
}

/* =========================
   MISCELANEAS
========================= */

.works-deco {
    position: absolute;
    width: 150px;
    height: auto;
    opacity: 0;
    z-index: 10;
    will-change: transform, opacity;
    pointer-events: none;
}

.works-deco--1 {
    left: 800px;
    top: 80px;
}

.works-deco--2 {
    right: 220px;
    top: 150px;
}

.works-deco--3 {
    left: 10px;
    top: 40px;
}

.works-deco--4 {
    left: 300px;
    top: 70px;
}

.works-deco--5 {
    left: 0px;
    top: 400px;
    width: 120px;
}

.works-deco--6 {
    left: 170px;
    top: 550px;
}

.works-deco--7 {
    right: 10px;
    top: 250px;
}

.works-deco--8 {
    left: 540px;
    top: 80px;
}

/* =========================
   TAGS EN DOS TIRAS
========================= */

.works-tag-stack {
    position: absolute;
    z-index: 15;
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.works-tag-stack--left {
    left: 140px;
    top: 300px;
    transform: rotate(-12deg);
}

.works-tag-stack--right {
    right: 50px;
    top: 405px;
    transform: rotate(10deg);
}

.works-tag-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: 56px;
    padding: 0 30px;
    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.works-tag-strip--purple {
    background: var(--brand-purple);
    color: #ffffff;
}

.works-tag-strip--pink {
    background: var(--brand-pink);
    color: #ffffff;
}

.works-tag-stack--left .works-tag-strip:nth-child(1) {
    transform: translateX(8px);
}

.works-tag-stack--left .works-tag-strip:nth-child(2) {
    transform: translateX(28px);
}

.works-tag-stack--right .works-tag-strip:nth-child(1) {
    transform: translateX(10px);
}

.works-tag-stack--right .works-tag-strip:nth-child(2) {
    transform: translateX(-36px);
}

/* =========================
   SECCION 3 - BRANDING
========================= */

.revealed-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.revealed-image.active {
    opacity: 1;
}

/* ===================================================
   PLANTILLA PROYECTO BRANDING
   =================================================== */

/* ===================================================
   SECCIÓN BRANDING (TÍTULO Y TAG FLOTANTE)
   =================================================== */
.branding-section {
    min-height: 100vh;
    width: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.branding-text-container {
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.branding-title-wrapper {
    position: relative;
    display: inline-block;
}

.branding-section h2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(5rem, 12vw, 10rem);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 2px;
}

.branding-outline {
    -webkit-text-stroke: 3px white;
    color: transparent;
}

.branding-solid {
    color: white;
}

/* Tag BONTÉ estilo sticker */
.branding-tag {
    position: absolute;
    top: -15%;
    right: -4vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    background: var(--mp-cian);
    color: #000000;
    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
    padding: 0 30px;
    transform: rotate(-4deg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.misc-violet {
    position: absolute;
    width: clamp(50px, 10vw, 250px);
    height: auto;
    z-index: 2;
}

.misc-violet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.misc-left {
    bottom: 3%;
    left: 3%;
}

.misc-right {
    top: 3%;
    right: 3%;
}


/* ===================================================
   TARJETAS BRANDING (DINÁMICAS, ADAPTABLES Y HOVER)
   =================================================== */
.brand-image-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    width: 22vw;
    min-width: 280px;
    height: auto;
    /* El alto se calcula a través de la proporción interna */

    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    cursor: var(--cursor-hand);
    text-decoration: none;
    padding: 0;
    overflow: hidden;
    transition: scale 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-width 0.3s ease, box-shadow 0.3s ease;
    scale: 1;
}

.brand-image-wrapper:hover {
    scale: 1.05;
    z-index: 50 !important;
}

.brand-img-inner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;

    /* VITAL: Define la proporción exacta de tus imágenes (ej: 3/4 o 4/5 para vertical) */
    /* Esto evita que la caja colapse cuando GSAP oculta/muestra fotos */
    aspect-ratio: 3 / 4;
}

/* TODAS las imágenes se vuelven absolutas y respetan el contenedor rígido del aspect-ratio */
.brand-img-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta limpiamente sin estirar */
    display: block;
}

.brand-copy {
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    text-transform: uppercase;
    font-family: 'Anton', sans-serif;
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: 0.05em;
    background-color: #000;
    /* Bloque sólido que actúa como tapajuntas definitivo */
    position: relative;
    z-index: 5;
    transition: color 0.3s ease;
}

/* --- BORDES Y COLORES (ESTADO NORMAL Y HOVER) --- */

/* Pilas Principales */
.stack-1,
.stack-2,
.stack-3 {
    pointer-events: none;
    cursor: default;
}

.branding-expanded .stack-1,
.branding-expanded .stack-2,
.branding-expanded .stack-3 {
    pointer-events: auto;
    cursor: var(--cursor-hand);
}

.stack-1 {
    border: 2px solid var(--mp-violeta);
    z-index: 10;
}

.stack-1 .brand-copy {
    color: var(--mp-violeta);
}

.stack-1:hover {
    border: 6px solid var(--mp-violeta);
    box-shadow: 0px 15px 40px rgba(115, 55, 251, 0.5);
}

.stack-2 {
    border: 2px solid var(--mp-cian);
    z-index: 11;
}

.stack-2 .brand-copy {
    color: var(--mp-cian);
}

.stack-2:hover {
    border: 6px solid var(--mp-cian);
    box-shadow: 0px 15px 40px rgba(45, 195, 194, 0.5);
}

.stack-3 {
    border: 2px solid var(--mp-fucsia);
    z-index: 60 !important;
}

.stack-3 .brand-copy {
    color: var(--mp-fucsia);
}

.stack-3:hover {
    border: 6px solid var(--mp-fucsia);
    box-shadow: 0px 15px 40px rgba(219, 64, 252, 0.5);
}

/* Pilas Extra */
.extra {
    z-index: 5;
    opacity: 0;
    background-color: transparent;
    pointer-events: none;
    cursor: default;
}

/* Recién clickeables/hoverables cuando ya casi llegaron a su lugar final */
.extra.extra-arrived {
    pointer-events: auto;
    cursor: var(--cursor-hand);
}

.p-top {
    border: 2px solid var(--mp-verde-lima);
}

.p-top .brand-copy {
    color: var(--mp-verde-lima);
}

.p-top:hover {
    border: 6px solid var(--mp-verde-lima);
    box-shadow: 0px 15px 40px rgba(189, 246, 47, 0.5);
}

.p-left {
    border: 2px solid var(--mp-rojo);
}

.p-left .brand-copy {
    color: var(--mp-rojo);
}

.p-left:hover {
    border: 6px solid var(--mp-rojo);
    box-shadow: 0px 15px 40px rgba(252, 59, 28, 0.5);
}

.p-bottom-left {
    border: 2px solid var(--mp-violeta);
}

.p-bottom-left .brand-copy {
    color: var(--mp-violeta);
}

.p-bottom-left:hover {
    border: 6px solid var(--mp-violeta);
    box-shadow: 0px 15px 40px rgba(115, 55, 251, 0.5);
}

.p-right {
    border: 2px solid var(--mp-cian);
}

.p-right .brand-copy {
    color: var(--mp-cian);
}

.p-right:hover {
    border: 6px solid var(--mp-cian);
    box-shadow: 0px 15px 40px rgba(45, 195, 194, 0.5);
}

.p-bottom-right {
    border: 2px solid var(--mp-fucsia);
}

.p-bottom-right .brand-copy {
    color: var(--mp-fucsia);
}

.p-bottom-right:hover {
    border: 6px solid var(--mp-fucsia);
    box-shadow: 0px 15px 40px rgba(219, 64, 252, 0.5);
}

.p-bottom {
    border: 2px solid var(--mp-verde-lima);
}

.p-bottom .brand-copy {
    color: var(--mp-verde-lima);
}

.p-bottom:hover {
    border: 6px solid var(--mp-verde-lima);
    box-shadow: 0px 15px 40px rgba(189, 246, 47, 0.5);
}

.p-new-left {
    border: 2px solid var(--mp-rojo);
}

.p-new-left .brand-copy {
    color: var(--mp-rojo);
}

.p-new-left:hover {
    border: 6px solid var(--mp-rojo);
    box-shadow: 0px 15px 40px rgba(252, 59, 28, 0.5);
}

.p-new-center {
    border: 2px solid var(--mp-cian);
}

.p-new-center .brand-copy {
    color: var(--mp-cian);
}

.p-new-center:hover {
    border: 6px solid var(--mp-cian);
    box-shadow: 0px 15px 40px rgba(45, 195, 194, 0.5);
}

.p-new-right {
    border: 2px solid var(--mp-violeta);
}

.p-new-right .brand-copy {
    color: var(--mp-violeta);
}

.p-new-right:hover {
    border: 6px solid var(--mp-violeta);
    box-shadow: 0px 15px 40px rgba(115, 55, 251, 0.5);
}
/* =========================
   SECCION 4 - 3D
========================= */

.mundo-3d-section {
    width: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Anton', sans-serif;
    padding-top: 20vh;
    padding-bottom: 35vh;
    cursor: default;
    user-select: none;
}

.top-header-3d {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 40px 5%;
    padding-bottom: 0;
    box-sizing: border-box;
    background-color: #000000;
}

.title-3d {
    display: flex;
    gap: 15px;
    font-size: clamp(4rem, 9vw, 10rem);
    line-height: 1.1;
}

.title-3d .outline {
    color: transparent;
    -webkit-text-stroke: 3px #ffffff;
}

.title-3d .solid {
    color: #ffffff;
}

.tags-3d {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-right: 6vw;
    z-index: 10;
}

.tag {
    padding: 8px 20px;
    color: white;
    font-size: clamp(1.2rem, 2vw, 2.5rem);
    white-space: nowrap;
    text-transform: uppercase;
}

.red-tag {
    background-color: #ff3b1d;
    transform: rotate(-3deg);
    align-self: flex-start;
    z-index: 2;
    margin-bottom: 15px;
}

.purple-tag {
    background-color: #8a3ffc;
    transform: rotate(2deg);
    align-self: flex-end;
    margin-left: 30px;
    z-index: 1;
}

.misc {
    position: absolute;
    z-index: 5;
}

.cyan-misc {
    top: 10px;
    right: 3%;
    width: 7vw;
    min-width: 60px;
}

.orange-misc {
    bottom: 10px;
    right: 5%;
    width: 4vw;
    min-width: 40px;
}

.carousel-wrapper {
    width: 100%;
    flex: 1;
    padding: 0 5%;
    box-sizing: border-box;
    overflow: hidden;
    cursor: default;
    touch-action: pan-y;
    user-select: none;
}

.carousel-slider {
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
    margin-bottom: 48px;
    margin-top: 48px;
}

.carousel-arrow-hint {
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 90px;
    height: 45px;
    margin-left: 6px;
    transform: scaleY(-1) rotate(-8deg);
    transform-origin: center;
    pointer-events: none;
}

.carousel-arrow-hint svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.carousel-slider-track {
    position: relative;
    width: 100%;
    height: 12px;
    background-color: #4d4d4d;
    border-radius: 999px;
}

.carousel-slider-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 80px;
    height: 80px;
    transform: translate(0, -50%);
    cursor: var(--cursor-hand);
    touch-action: pan-y;
    pointer-events: auto;
}

.carousel-3d-container {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    height: 100%;
    width: max-content;
    will-change: transform;
    padding-right: 10vw;
}

/* Tarjeta contenedora principal */
.card-3d {
    display: block;
    text-decoration: none;
    width: clamp(280px, 28vw, 460px);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: var(--cursor-grab);
    background-color: #000000;
    box-sizing: border-box;

    /* CAMBIOS SOLICITADOS: Sin borde y sin sombra por defecto */
    border: none;
    box-shadow: none;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Solo el pez: deja que el tag "Agarrame" sangre un poco afuera del
   borde derecho de la tarjeta en vez de taparlo, y sube esta tarjeta por
   encima de la vecina (American Muscle) para que no se lo tape. */
.card-3d.color-3 {
    overflow: visible;
    z-index: 5;
}

.card-3d:active {
    cursor: var(--cursor-grabbing);
}

.card-3d:hover {
    /* CAMBIOS SOLICITADOS: Se agranda y aparece la sombra (glow) en hover */
    transform: scale(1.02);
    box-shadow: 0px 0px 40px 8px var(--glow-color);
}

/* Área Blanca (Enlace clickeable exclusivo) */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Ocupa todo el ancho interno */
    height: 60px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between; /* Nombre a la izquierda, Ver a la derecha */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
    text-decoration: none;
    color: #000000;
    cursor: var(--cursor-hand); /* Icono clickeable en toda la banda blanca */
}

.view-more {
    font-family: 'Anton', sans-serif;
    font-size: 0.85rem;
    line-height: 1.1;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

/* Tag "Agarrame": solo en la tarjeta del pez (color-3). Aparece recién
   después de que el usuario mueve el slider del carrusel, como pista de
   que las tarjetas también se pueden arrastrar para rotarlas. Arranca en
   scale 0 / opacity 0 y hace un pop vía GSAP (ver script.js). Se deja
   sangrar un poco afuera del borde derecho, por eso esta tarjeta
   puntual pasa a overflow: visible (ver regla de .card-3d.color-3 más
   abajo, junto a los estilos de esa tarjeta).
*/
.card-agarrame-tag {
    position: absolute;
    bottom: 100px;
    right: -30px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--brand-orange);
    color: #ffffff;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.card-info:hover .view-more {
    color: var(--misc-color);
}

.model-name {
    font-family: 'Anton', sans-serif;
    font-size: 1.15rem;
    line-height: 1.1;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-block;
    transition: color 0.2s ease; /* Suaviza el cambio */
}

/* Efecto al pasar el mouse sobre la franja blanca */
.card-info:hover .model-name {
    color: var(--misc-color); /* Toma el color temático de cada tarjeta automáticamente */
}

/* Asignación de colores y variables de resplandor para cada tarjeta */
.color-1 {
    background-color: #fc3b1c;
    --misc-color: #ea2303;
    --glow-color: rgba(252, 59, 28, 0.6);
    --misc-transform: scaleX(1) scaleY(1);
}

.color-2 {
    background-color: #2dc3c2;
    --misc-color: #00a3a3;
    --glow-color: rgba(45, 195, 194, 0.6);
    --misc-transform: scaleX(-1) scaleY(1);
}

.color-4 {
    background-color: #bdf62f;
    --misc-color: #88b100;
    --glow-color: rgba(189, 246, 47, 0.6);
    --misc-transform: scaleX(1) scaleY(-1);
}

.color-3 {
    background-color: #7337fb;
    --misc-color: #8962dd;
    --glow-color: rgba(115, 55, 251, 0.6);
    --misc-transform: scaleX(-1) scaleY(-1);
}

.color-5 {
    background-color: #db40fc;
    --misc-color: #a131bc;
    --glow-color: rgba(219, 64, 252, 0.6);
    --misc-transform: scaleX(1) scaleY(1);
}

.card-3d::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) var(--misc-transform);
    background-color: var(--misc-color);

    mask-image: url("https://res.cloudinary.com/cqwvblnr/image/upload/v1785202640/miscelanea3d_ry2yy4.webp");
    -webkit-mask-image: url("https://res.cloudinary.com/cqwvblnr/image/upload/v1785202640/miscelanea3d_ry2yy4.webp");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: 100% auto;
    -webkit-mask-size: 100% auto;

    transform-origin: center;
    z-index: 1;
    pointer-events: none;
}

/* La miscelánea de fondo de American Muscle se ve muy fuerte contra el
   verde lima de la tarjeta; se atenúa solo para esta. */
.card-3d.color-4::before {
    opacity: 0.5;
}

.card-3d canvas {
    position: relative;
    z-index: 2;
    display: block;
    max-height: calc(100% - 60px);
}
/* =========================
   FUNDA INTRO MOTION
========================= */

.motion-mask-intro {
    position: absolute;
    inset: 0;
    z-index: 80;
    pointer-events: none;
}

.motion-mask-sleeve {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.motion-mask-cutout {
    width: 13vw;
    height: 92vh;
    border-radius: 999px;


    box-shadow: 0 0 0 200vw #ffffff;
    border: none;
}

.motion-deco {
    position: absolute;
    z-index: 90;
    pointer-events: none;
}

.motion-deco-top-right {
    top: 12vh;
    right: -4vw;
    width: 20vw;
    transform: rotate(90deg);
    fill: #00a3a3;
}

.motion-deco-bottom-left {
    bottom: -8vh;
    left: 6vw;
    width: 10vw;
    fill: #00a3a3;
    transform: rotate(90deg);

}


/* ===================================================
   SECCION 5 - WORK (INTEGRACION DE PRUEBA.CSS)
   =================================================== */

.work {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #fff;
    overflow: hidden;
    perspective: 1200px;
}

.text-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.text-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}



.deco-bl {
    position: absolute;
    bottom: 2vh;
    left: 2vw;
    display: grid;
    grid-template-columns: 4vw 7vw 7vw;
    grid-template-rows: 4vw 4vw;
    gap: 0.5vw;
    align-items: center;
    z-index: 1;
}

.circle-sm {
    width: 4vw;
    height: 4vw;
    border-radius: 50%;
    background: #000;
    grid-row: 1 / 3;
    grid-column: 1;
}

.pill {
    border-radius: 999px;
    background: #9afc00;
    width: 100%;
    height: 3.5vw;
}

.arrow {
    position: absolute;
    top: 3vh;
    right: 14vw;
    font-size: 2.5vw;
    color: #ccc;
    z-index: 1;
}

.deco-tr {
    position: absolute;
    top: 2vh;
    right: 1.5vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5vw;
    z-index: 1;
}

.dot {
    border-radius: 50%;
    background: #1bc8c8;
}

.dot-lg {
    width: 4vw;
    height: 4vw;
}

.pill-tr {
    border-radius: 999px;
    background: #1bc8c8;
    height: 3vw;
}

.pill-tr-wide {
    width: 10vw;
}

.dot-row {
    display: flex;
    gap: 0.5vw;
}

.cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #111;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    pointer-events: auto;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
    opacity: 0;
    text-decoration: none;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    --card-angle: 0deg;
    --card-y: 0vh;
    --card-scale: 1;

    transform: translate(-50%, -50%) rotateY(var(--card-angle)) translateZ(-60vw) translateY(var(--card-y)) scale(var(--card-scale));
}

.card-img {
    flex: 1;
    overflow: hidden;
    background: #000;
    position: relative;
}

.card-copy {
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    text-transform: uppercase;
    font-family: 'Anton', sans-serif;
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.card:hover {
    z-index: 50;
}



.card:hover {
    --card-scale: 1.08;
}

.card:nth-child(1) {
    width: 55vw;
    aspect-ratio: 16 / 9;
    --card-y: -10vh;
    border: 2px solid var(--mp-violeta);
}

.card:nth-child(1) .card-copy {
    color: var(--mp-violeta);
}

.card:nth-child(1):hover {
    border: 6px solid var(--mp-violeta);
    box-shadow: 0px 15px 40px rgba(115, 55, 251, 0.5);
}

.card:nth-child(2) {
    width: 42vw;
    aspect-ratio: 16 / 9;
    --card-y: 20vh;
    border: 2px solid var(--mp-cian);
}

.card:nth-child(2) .card-copy {
    color: var(--mp-cian);
}

.card:nth-child(2):hover {
    border: 6px solid var(--mp-cian);
    box-shadow: 0px 15px 40px rgba(45, 195, 194, 0.5);
}

.card:nth-child(3) {
    width: 45vw;
    aspect-ratio: 4 / 3;
    --card-y: -5vh;
    border: 2px solid var(--mp-fucsia);
}

.card:nth-child(3) .card-copy {
    color: var(--mp-fucsia);
}

.card:nth-child(3):hover {
    border: 6px solid var(--mp-fucsia);
    box-shadow: 0px 15px 40px rgba(219, 64, 252, 0.5);
}

.card:nth-child(4) {
    width: 48vw;
    aspect-ratio: 16 / 9;
    --card-y: 18vh;
    border: 2px solid var(--mp-rojo);
}

.card:nth-child(4) .card-copy {
    color: var(--mp-rojo);
}

.card:nth-child(4):hover {
    border: 6px solid var(--mp-rojo);
    box-shadow: 0px 15px 40px rgba(252, 59, 28, 0.5);
}

.card:nth-child(5) {
    width: 40vw;
    aspect-ratio: 4 / 3;
    --card-y: -15vh;
    border: 2px solid var(--mp-verde-lima);
}

.card:nth-child(5) .card-copy {
    color: var(--mp-verde-lima);
}

.card:nth-child(5):hover {
    border: 6px solid var(--mp-verde-lima);
    box-shadow: 0px 15px 40px rgba(189, 246, 47, 0.5);
}












.logo-marquee {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    
    
}

.logo-marquee__track {
    display: flex;
    width: max-content;
    animation: logoMarquee 25s linear infinite;
    background: #fc3b1c;
    ;
    padding: 20px;
}

.logo-marquee__group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 140px;
    padding-right: 140px;
    flex-shrink: 0;
}

.logo-marquee__logo {
    height: 24px;
    width: auto;
    display: block;
    filter: brightness(0);
}

.logo-marquee__icon {
    width: 28px;
    height: 28px;
    color: #bdf62f;
    stroke-width: 4;
    flex-shrink: 0;
}

@keyframes logoMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================
   COMPUTER SCROLL SECTION
========================= */

.computer-scroll-section {
    position: relative;

    width: 100%;
    height: 100vh;

    background: #ffffff;

    overflow: hidden;
}

.computer-scroll-inner {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;

    /*
     * Centra verticalmente el bloque izquierdo
     * respecto del monitor.
     */
    align-items: center;
    justify-content: center;

    gap: 4vw;
    padding: 0 6vw;
}

/* =========================
   MISCELÁNEAS
========================= */

.computer-deco {
    position: absolute;

    width: clamp(50px, 9vw, 200px);
    height: auto;

    z-index: 1;

    pointer-events: none;
}

.computer-deco img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.computer-deco-left {
    bottom: 4%;
    left: 3%;
}

.computer-deco-right {
    top: 6%;
    right: 3%;
}

/* =========================
   COPY IZQUIERDA
========================= */

.computer-copy {
    position: relative;

    flex: 0 0 520px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #000000;

    z-index: 20;
}

.computer-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    align-self: flex-start;

    height: 56px;
    padding: 0 30px;

    margin-bottom: 24px;

    background: var(--brand-orange);
    color: #ffffff;

    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.5px;

    text-transform: uppercase;
}

.computer-title {
    margin: 0 0 12px;

    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 400;
    line-height: 1.1;

    text-transform: uppercase;
}

.computer-subtitle {
    margin: 0 0 20px;

    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;

    text-transform: uppercase;

    color: var(--brand-pink);
}

.computer-desc {
    width: 100%;
    max-width: 520px;

    margin: 0;

    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    line-height: 1.45;

    /*
     * El valor definitivo lo calcula JavaScript
     * según la descripción más alta.
     */
    min-height: 0;

    /*
     * Mantiene el texto alineado arriba dentro
     * del espacio reservado.
     */
    align-content: start;
}

/* =========================
   MONITOR
========================= */

.computer-stage {
    position: relative;

    width: min(52vw, 860px);
    aspect-ratio: 16 / 10;

    flex-shrink: 1;
    min-width: 0;

    z-index: 5;
}

.computer-visit-tag {
    position: absolute;

    right: 5vw;
    bottom: 15%;

    z-index: 20;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 56px;
    padding: 0 30px;

    background: var(--brand-cyan);
    color: #000000;

    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
    letter-spacing: 0.5px;

    text-transform: uppercase;
    white-space: nowrap;

    transform: rotate(-5deg);

    pointer-events: none;
}

.computer-frame {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    z-index: 10;

    pointer-events: none;
}

.computer-page-arm {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    opacity: 0;

    transform: rotate(90deg);
    transform-origin: center 140%;

    z-index: 6;

    pointer-events: auto;
}

.computer-page {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    pointer-events: none;
}



html {
    scroll-behavior: smooth;
    /* body ya tenía overflow-x:hidden, pero el que realmente scrollea la
       página (en la mayoría de los navegadores) es el html, no el body —
       si algún elemento se pasa del ancho de la ventana en algún punto de
       la página, sin esto igual se puede scrollear para el costado y
       asomar el negro del fondo por detrás. Por eso aparecía "a veces sí,
       a veces no": dependía de qué sección tuviera ese elemento de más. */
    overflow-x: hidden;
}

#branding,
#motion,
#mundo-3d,
#webs,
#illustraciones,
#hocicos-contentos {
    scroll-margin-top: 90px;
}

.navbar:not(.show-nav) {
    transform: translateY(-120%);
}
/* ==========================================
   SECCIÓN ILUSTRACIONES (DRAG & DROP) - FINAL
   ========================================== */

/* 1. SECCIÓN PRINCIPAL */
.illustrations-section {
    --illustrations-stage-height: clamp(540px, 31.25vw, 600px);

    height: calc(
        var(--illustrations-stage-height) + 200px
    ) !important;

    min-height: calc(
        var(--illustrations-stage-height) + 200px
    ) !important;

    padding: 100px 20px !important;
    background-color: transparent !important;
    position: relative !important;
    overflow: hidden !important;

    display: flex !important;
    flex-direction: column !important;
}

/* 2. CONTENEDOR DE LA CAJA Y EL TEXTO */
.illustrations-container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: stretch !important;

    width: 100% !important;
    max-width: 100% !important;

    height: var(--illustrations-stage-height) !important;
    min-height: var(--illustrations-stage-height) !important;
    max-height: var(--illustrations-stage-height) !important;

    margin: 0 !important;
    gap: 4vw !important;
    padding: 0 6vw !important;
    box-sizing: border-box !important;

    position: relative !important;
    z-index: 2 !important;
}

/* 3. TEXTO A LA DERECHA */
.illustrations-info {
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;
    min-height: 0 !important;

    order: 2 !important;
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;

    overflow: visible !important;
}

.illust-title {
    font-family: 'Anton', sans-serif !important;
    font-size: 6.5rem !important;
    line-height: 1.1 !important;
    letter-spacing: 2px !important; 
    color: #ffffff !important; 
    text-transform: uppercase !important;
    margin-bottom: 25px !important;
    word-wrap: break-word !important; 
}

#illust-desc {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 1.1rem !important;
    color: #cccccc !important; 
    line-height: 1.6 !important;
    margin-bottom: 40px !important; 
    max-width: 600px !important; 
}

/* 4. CAJA DE ARRASTRE A LA IZQUIERDA (FORZADA A PROPORCIÓN DE PÓSTER) */
.illustrations-dropzone {
    flex: 0 0 auto !important;

    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;

    aspect-ratio: 4 / 5 !important;

    border: 3px dashed #444444 !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease !important;

    background-color:
        rgba(255, 255, 255, 0.03) !important;

    order: 1 !important;
    padding: 0 !important;
}

.illustrations-dropzone.drag-over {
    border-color: var(--custom-color, #fc3b1c) !important;
    background-color: rgba(252, 59, 28, 0.08) !important;
}

.drop-text {
    font-family: 'Anton', sans-serif !important;
    font-size: 2rem !important;
    line-height: 1.1 !important;
    color: #555555 !important;
    pointer-events: none !important;
    padding: 20px !important;
}

#dropped-image {
    width: 100% !important;
    height: 100% !important; 
    object-fit: cover !important; /* Calza perfecta en la proporción 4:5 sin deformarse */
    position: absolute !important; 
    top: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
}

/* 5. ESPACIADOR (reserva el lugar donde arrancan las tarjetas, ver capa
   de abajo — no tiene contenido ni estilos propios) */
.illustrations-pile {
    position: absolute !important;

    left: 0 !important;
    bottom: 0 !important;

    height: 380px !important;
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    display: block !important;

    pointer-events: none !important;
}

/* 5b. CAPA SUELTA: las tarjetas viven acá, sueltas por TODA la sección
   (dropzone + texto), para poder arrastrarlas a cualquier lado. La capa
   en sí no debe tapar clicks en el dropzone/texto — sólo las tarjetas
   (pointer-events:auto) son interactivas. */
.illustrations-drag-layer {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 20 !important;
}


.draggable-illust {
    width: clamp(150px, 14vw, 200px) !important;
    height: auto !important;
    position: absolute !important;
    top: 0 !important;
    margin: 0 !important;
    border: 2px solid var(--card-color, #ffffff) !important;
    background-color: #000000 !important;
    display: flex !important;
    flex-direction: column !important;
    /* Segunda capa de sombra (el glow de color) ya presente en reposo,
       sólo que con 0% de mezcla de color = invisible. En vez de aparecer
       de golpe en hover, se desvanece de un valor a otro — mismo truco
       que pediste. */
    box-shadow: 0 8px 15px rgba(0,0,0,0.5), 0px 10px 25px color-mix(in srgb, var(--card-color) 0%, transparent) !important;
    cursor: var(--cursor-grab) !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    touch-action: none !important;
    transition: transform 0.2s, scale 0.2s, border-width 0.1s, box-shadow 0.2s, left 0.4s ease, top 0.4s ease, opacity 0.2s ease !important;
}

/* Mientras se arrastra, nada de transiciones de transform (si no, la
   tarjeta "patina" detrás del cursor en vez de seguirlo 1 a 1) ni glow de
   hover (si el cursor pasa por encima de otra tarjeta en el camino). */
.draggable-illust.is-dragging {
    transition: none !important;
}

.draggable-illust,
.draggable-illust *,
#drop-zone,
#drop-zone * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
}

#drop-zone {
    touch-action: none !important;
}

#drop-zone.has-card {
    cursor: var(--cursor-grab) !important;
}

#drop-zone.has-card.is-grabbing {
    cursor: var(--cursor-grabbing) !important;
}

/* Cuando la tarjeta quedó bien puesta en el dropzone, se oculta: lo único
   que se tiene que ver ahí es la imagen grande de fondo (#dropped-image),
   no la tarjeta chica encima. Sigue "ahí" (se puede volver a agarrar para
   sacarla), sólo que invisible mientras tanto. */
.draggable-illust.is-placed {
    opacity: 0 !important;
}

/* Mientras está agrandada ocupando todo el dropzone, el hover NO puede
   escalarla/levantarla: al ser tan grande (480x600 en vez de ~180px),
   hasta un 5% de scale corre los bordes muchos píxeles, y el navegador
   clickea sobre la geometría YA transformada, no sobre el layout
   original — por eso el cursor de agarre se veía bien en toda la caja
   pero el click sólo funcionaba en una parte: el hover corría la
   tarjeta invisible lejos de donde el mouse en realidad estaba. */
.draggable-illust.is-placed:hover {
    scale: 1 !important;
    transform: none !important;
}

.draggable-illust img {
    width: 100% !important;
    aspect-ratio: 4 / 5 !important; /* CLAVE: Fuerza a la tarjeta horizontal a ser vertical */
    object-fit: cover !important;  /* Recorta prolijamente la foto sin deformarla */
    display: block !important;
    pointer-events: none !important;
}

.illust-tag {
    height: 30px !important; 
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-family: 'Anton', sans-serif !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    color: var(--card-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* HOVER: sólo el resplandor, el borde se queda del mismo grosor que en
   reposo (el grosor extra es sólo para cuando la estás agarrando de
   verdad, ver :active / .is-dragging más abajo). */
.draggable-illust:hover {
    scale: 1.05 !important;
    transform: translateY(-10px) !important;
    z-index: 50 !important;
    border-color: var(--card-color) !important;

    /* Misma sombra de siempre + el glow, ahora sí a un 40% de mezcla
       (mismas dos capas que en reposo, sólo cambia el color de la
       segunda: por eso el "aparece de golpe" se ve como un fade). */
    box-shadow: 0 8px 15px rgba(0,0,0,0.5), 0px 10px 25px color-mix(in srgb, var(--card-color) 40%, transparent) !important;
}

.draggable-illust:active,
.draggable-illust.is-dragging {
    transform: scale(1.05) translateY(-5px) !important;
    cursor: var(--cursor-grabbing) !important;

    /* Acá sí: el borde de 6px sólo aparece mientras la estás agarrando. */
    border-width: 6px !important;
    border-style: solid !important;
    border-color: var(--card-color) !important;
}

/* ==========================================
   7. MISCELÁNEAS DECORATIVAS (ESQUINAS)
   ========================================== */
.illust-deco {
    position: absolute !important;
    z-index: 0 !important; 
    pointer-events: none !important; 
    opacity: 1 !important; 
}

/* Forma anclada abajo a la izquierda */
.illust-deco-bottom-left {
    bottom: 20px !important; /* Despegada del borde inferior */
    left: 20px !important;   /* Despegada del borde izquierdo */
    width: 150px !important; /* MUCHO más chica (antes 250px) */
    transform: none !important; /* Sacamos el empuje hacia afuera para que no se corte */
}

/* Forma anclada arriba a la derecha */
.illust-deco-top-right {
    top: 20px !important;    /* Despegada del borde superior para que no se corte */
    right: 20px !important;  /* Despegada del borde derecho */
    width: 150px !important; /* MUCHO más chica (antes 180px) */
    transform: none !important; /* Sacamos el empuje hacia afuera */
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
    position: relative;
    background-color: var(--bg-black);
    color: #ffffff;
    overflow: hidden;
    padding: 10vh 6vw 40px;
    font-family: 'Open Sans', sans-serif;
}

.footer-glow-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--mp-violeta);
}

.footer-deco {
    position: absolute;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

.footer-deco-left {
    width: clamp(80px, 10vw, 160px);
    bottom: 6%;
    left: 3%;
}

.footer-deco-right {
    width: clamp(70px, 8vw, 130px);
    top: 8%;
    right: 4%;
}

.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 6vw;
    padding-bottom: 6vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b3b3b3;
    max-width: 320px;
}

.footer-col-title {
    display: block;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    line-height: 1.1;
    letter-spacing: 0.08em;
    color: var(--mp-cian);
    margin-bottom: 18px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 24px;
}

.footer-nav a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 0;
    width: fit-content;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-social-icons {
    display: flex;
    gap: 14px;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-social-icon:hover {
    border-color: var(--mp-fucsia);
    background-color: var(--mp-fucsia);
    transform: translateY(-3px);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    font-size: 0.85rem;
    color: #808080;
}

.footer-credit {
    color: #808080;
}


/* ===================================================
   HOCICOS CONTENTOS
=================================================== */

.hocicos-section {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: clamp(100px, 14vh, 170px) 6vw;

    background: #ffffff;
    color: #000000;

    overflow: hidden;
}


/* ===================================================
   CONTENEDOR GENERAL
=================================================== */

.hocicos-inner {
    position: relative;

    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    align-items: center;

    gap: clamp(50px, 7vw, 130px);
}


/* ===================================================
   COLUMNA DEL VIDEO
=================================================== */

.hocicos-video-column {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hocicos-video-wrapper {
    position: relative;

    width: min(
        100%,
        calc(var(--hocicos-copy-height, 420px) * 16 / 9)
    );

    max-width: 100%;

    aspect-ratio: 16 / 9;

    flex: 0 0 auto;

    background: transparent; /* Cambiado a transparente para no dejar sombra/hueco negro */

    border: 7px solid var(--mp-violeta);
    box-sizing: border-box;

    overflow: hidden;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.hocicos-video-wrapper iframe {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    border: 0;
    background: transparent;

    /* Escala un 2.5% el video para eliminar por completo los márgenes negros que crea el reproductor de Vimeo */
    transform: scale(1.025);
    transform-origin: center center;
}


/* ===================================================
   ESTILOS PARA RASCAR Y REVELAR VIDEO (CANVAS & HINT)
=================================================== */

#scratchCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    touch-action: none;
    cursor: crosshair;
    transition: opacity 0.6s ease;
}

#scratchCanvas.is-revealed {
    opacity: 0;
    pointer-events: none;
}

/* Texto de ayuda sin recuadro ni fondo */
.scratch-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    pointer-events: none;
    transition: opacity 0.3s ease;
    user-select: none;
    text-align: center;
    width: 80%;
}

.scratch-hint span {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
}

.scratch-hint.is-hidden {
    opacity: 0;
}


/* ===================================================
   TEXTO
=================================================== */

.hocicos-copy {
    position: relative;

    width: 100%;
    max-width: 650px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.hocicos-title {
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 7vw, 8rem);
    font-weight: 400;
    line-height: 1.1;

    text-transform: uppercase;
}


.hocicos-title-row {
    position: relative;

    display: inline-flex;
    align-items: center;
}


.hocicos-outline {
    color: transparent;

    -webkit-text-stroke: 3px #000000;
}


.hocicos-solid {
    color: #000000;
}


.hocicos-tag {
    position: absolute;

    top: 50%;
    left: 100%;

    margin-left: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 56px;
    padding: 0 30px;

    background: var(--mp-violeta);
    color: #ffffff;

    -webkit-text-stroke: 0;

    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.5px;

    text-transform: uppercase;
    white-space: nowrap;

    transform:
        translateY(-50%)
        rotate(-4deg);

    z-index: 2;
}


.hocicos-separator {
    width: 70px;
    height: 5px;

    margin: 25px 0;

    background: var(--mp-violeta);
}


.hocicos-description {
    width: 100%;
    max-width: 520px;

    margin: 0;

    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    line-height: 1.45;

    color: #000000;
}


/* ==========================================
   POPUP "VIDEOCASO" (confirmación antes de salir)
========================================== */
.videocaso-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.videocaso-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.videocaso-modal {
    width: min(560px, 100%);
    background: #0a0a0a;
    border: 2px solid var(--brand-cyan);
    box-shadow: 0 0 40px rgba(45, 195, 194, 0.55), 0 0 90px rgba(45, 195, 194, 0.25);
    padding: 50px 45px;
    text-align: center;
    transform: scale(0.94);
    transition: transform 0.3s ease;
}

.videocaso-overlay.is-open .videocaso-modal {
    transform: scale(1);
}

.videocaso-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 24px;
}

.videocaso-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e6e6e6;
}

.videocaso-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
}

.videocaso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 30px;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid;
    cursor: var(--cursor-hand);
    transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.videocaso-arrow {
    display: inline-block;
}

.videocaso-btn--secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.videocaso-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.videocaso-btn--primary {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
    color: #000000;
}

.videocaso-btn--primary:hover {
    opacity: 0.85;
}

/* Puntero de espátula SOLO para el canvas de este video en específico */
.hocicos-video-wrapper #scratchCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    touch-action: none;

    /* Usa la espátula solo sobre este canvas */
    cursor: url('assets/spatula.svg') 16 16, pointer;

    transition: opacity 0.6s ease;
}

/* Cuando se termina de raspar, se apaga el canvas y devuelve el cursor normal al resto de elementos */
.hocicos-video-wrapper #scratchCanvas.is-revealed {
    opacity: 0;
    pointer-events: none;
}
/* ===================================================
   PREGUNTA ANIMADA
   =================================================== */

.animated-question {
    position: relative;
    width: 100%;
    height: 100vh;

    background-color: #000000;

    overflow: hidden;
}

.animated-question__pin {
    position: relative;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    background-color: inherit;
}

.animated-question__text {
    position: absolute;

    top: 50%;
    left: 0;

    width: max-content;

    margin: 0;

    white-space: nowrap;

    font-family: 'Anton', sans-serif;
    font-size: 11vw;
    font-weight: 400;
    line-height: 1;

    text-transform: uppercase;

    color: #ffffff;

    transform: translateY(-50%);

    z-index: 10;

    visibility: visible;
    opacity: 1;

    will-change: transform;
}

.animated-question__letter {
    display: inline-block;

    color: #ffffff;
    opacity: 1;

    transform-origin: center center;

    will-change:
        transform,
        opacity,
        color;
}

.animated-question__space {
    display: inline-block;
    width: 0.25em;
}


/* ===================================================
   CARD (Impacto corregido + Glow Naranja)
   =================================================== */

.animated-question__card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 400px;
    box-sizing: border-box;
    padding: 60px;
    background-color: #000000;
    border-radius: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;

    z-index: 30;
    pointer-events: auto;

    /* NOTA: NO ponemos transform acá para no romper a GSAP */
    /* Solo animamos el resplandor y el borde (salida del hover: más lenta y suave) */
    transition: box-shadow 0.9s ease-out, outline 0.9s ease-out;
}

/* HOVER EN LA TARJETA COMPLETA */
.animated-question__card:hover {
    /* Mantiene la posición donde GSAP la dejó y solo enciende el Glow naranja */
    box-shadow: 0px 0px 50px 12px rgba(252, 59, 28, 0.8) !important;
    /* Entrada del hover: la que ya estaba funcionando bien */
    transition: box-shadow 0.6s ease-in-out, outline 0.6s ease-in-out;
}

/* ===================================================
   TITULO DE LA CARD
   =================================================== */

.animated-question__card-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    will-change: color;
}

/* ===================================================
   BOTÓN (Hover con escala e inversión)
   =================================================== */

.animated-question__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 56px;

    background-color: #ffffff; 
    color: #000000;

    border-radius: 0;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: var(--cursor-hand);

    will-change: background-color, color;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* HOVER EN EL BOTÓN */
.animated-question__card-button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    transform: scale(1.05); /* El zoom se lo hacemos al botón para no romper la card */
}

/* ===================================================
   MISCELÁNEAS FINALES
   =================================================== */

.animated-question__misc {
    position: absolute;

    right: -2vw;
    bottom: 0;

    width: 320px;
    height: 300px;

    z-index: 20;

    pointer-events: none;

    opacity: 0;

    will-change:
        transform,
        opacity;
}

.animated-question__misc-image {
    position: absolute;

    display: block;

    height: auto;

    will-change:
        transform,
        opacity;
}

.animated-question__misc-image--back {
    right: -50px;
    bottom: -65px;

    width: 300px;

    transform: rotate(15deg);
}

.animated-question__misc-image--front {
    right: 50px;
    bottom: 20px;

    width: 145px;

    transform: rotate(90deg);
}
.animated-question__misc-image--top-left {
    position: absolute;
    
    /* Lo mandamos más afuera por la izquierda */
    left: -100px; /* Si querés esconderla todavía más, probá con -120px o -140px */
    
    /* Bajamos un poco la altura para que no choque con la navbar */
    top: 15vh; 
    
    width: 220px;
    height: auto;
    z-index: 20;
    pointer-events: none;
    
    /* Le ajustamos la rotación para que acompañe el borde */
    transform: rotate(-10deg); 
}

/* Modificador exclusivo para el marquee violeta de abajo */
.logo-marquee--violeta {
    background: #ffffff !important; /* <--- Fondo blanco para el espacio de separación */
    padding-top: 100px; /* <--- Esto genera la separación blanca limpia */
    position: relative;
    z-index: 10;
}

.logo-marquee--violeta .logo-marquee__track {
    background: var(--mp-violeta);
}

.logo-marquee--violeta .logo-marquee__icon {
    color: var(--mp-verde-lima);
}

.logo-marquee--violeta .logo-marquee__logo {
    filter: brightness(0) invert(1);
}