* { margin: 0; padding: 0; box-sizing: border-box; }

/* Anton solo viene en un peso (400): sin este reset los h1-h3 caen en el
   bold por default del navegador y Anton lo "inventa" sintéticamente
   (se ve más grueso / con trazo raro). Mismo reset que en style.css. */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

/* PALETA OFICIAL MEDIAPILA */
:root {
    --bg-black: #000000;
    --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;
}

a, button {
    cursor: var(--cursor-hand);
}

body {
    background-color: #fff;
    overflow-x: hidden;
}

img, video { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* =====================
   WORK - arranca blanco, Three.js pinta encima
   ===================== */
.work {
    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;
}

/* =====================
   DECORACIONES
   ===================== */
.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 (3D CYLINDER INTEGRATION)
   ===================== */
.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-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; }

/* Tarjetas */
.card:nth-child(1) { width: 55vw; aspect-ratio: 16 / 9; transform: translate(-50%, -50%) rotateY(70deg) translateZ(-60vw) translateY(-10vh) scale(1); border: 2px solid var(--mp-violeta); }
.card:nth-child(1) .card-copy { color: var(--mp-violeta); }
.card:nth-child(1):hover { transform: translate(-50%, -50%) rotateY(70deg) translateZ(-60vw) translateY(-10vh) scale(1.08); 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; transform: translate(-50%, -50%) rotateY(115deg) translateZ(-60vw) translateY(20vh) scale(1); border: 2px solid var(--mp-cian); }
.card:nth-child(2) .card-copy { color: var(--mp-cian); }
.card:nth-child(2):hover { transform: translate(-50%, -50%) rotateY(115deg) translateZ(-60vw) translateY(20vh) scale(1.08); 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; transform: translate(-50%, -50%) rotateY(160deg) translateZ(-60vw) translateY(-5vh) scale(1); border: 2px solid var(--mp-fucsia); }
.card:nth-child(3) .card-copy { color: var(--mp-fucsia); }
.card:nth-child(3):hover { transform: translate(-50%, -50%) rotateY(160deg) translateZ(-60vw) translateY(-5vh) scale(1.08); 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; transform: translate(-50%, -50%) rotateY(205deg) translateZ(-60vw) translateY(18vh) scale(1); border: 2px solid var(--mp-rojo); }
.card:nth-child(4) .card-copy { color: var(--mp-rojo); }
.card:nth-child(4):hover { transform: translate(-50%, -50%) rotateY(205deg) translateZ(-60vw) translateY(18vh) scale(1.08); 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; transform: translate(-50%, -50%) rotateY(250deg) translateZ(-60vw) translateY(-15vh) scale(1); border: 2px solid var(--mp-verde-lima); }
.card:nth-child(5) .card-copy { color: var(--mp-verde-lima); }
.card:nth-child(5):hover { transform: translate(-50%, -50%) rotateY(250deg) translateZ(-60vw) translateY(-15vh) scale(1.08); border: 6px solid var(--mp-verde-lima); box-shadow: 0px 15px 40px rgba(189, 246, 47, 0.5); }

/* =====================
   OUTRO
   ===================== */
.outro { display: flex; justify-content: center; align-items: center; background: #fff; color: #000; }
.outro h1 { font-family: 'Anton', sans-serif; font-size: 6vw; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }

/* ===================================================
   DISEÑO FIEL A MEDIAPILA (SUBPÁGINAS INDEPENDIENTES)
   =================================================== */

/* ===================================================
   HEADER (igual al de index.html)
   =================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;

    /* Altura fija + padding solo horizontal: el padding vertical se
       comía el alto disponible para el stretch (ver style.css). Logo y
       links siguen centrándose solos adentro con su propio
       align-items: center. */
    height: 83px;
    /* ACÁ PONEMOS 80px PARA IGUALAR AL CONTENIDO DE ABAJO */
    padding: 0 80px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background-color: black;
    transition: transform .35s ease;
    transform: translateY(0);
}
.logo-wrapper {
    display: flex;
    align-items: center;
    /* El archivo del logo tiene ~7px de margen transparente propio del
       lado izquierdo, que el texto del nav no tiene — sin esto 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;
    position: static; /* ESTO ANULA EL ABSOLUTE GLOBAL */
}

.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%;
    font-family: 'Open Sans', sans-serif;
    color: white;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.menu-item > a:hover {
    color: var(--mp-rojo);
}

.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;
}

.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(--mp-rojo);
    color: #ffffff;
}

.case-study-page {
    width: 100vw;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16vh 0 10vh;
    position: relative;
    z-index: 5;
    overflow-x: hidden;
}

.back-btn-page {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    line-height: 1.1;
    color: #000000;
    background: transparent;
    border: 2px solid #000000;
    padding: 12px 22px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 4vh;
}

.back-btn-page .back-arrow {
    transition: transform 0.3s ease;
}

.back-btn-page:hover {
    background: #000000;
    color: #ffffff;
}

.back-btn-page:hover .back-arrow {
    transform: translateX(-4px);
}

.case-content-page {
    width: calc(100vw - 160px);
    display: flex;
    align-items: flex-start;
    gap: 3vw;
}

.case-text-block {
    flex: 0 0 34%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5vh;
}

.case-header-page {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.4vw;
}

.case-title-page { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 5.8vw; text-transform: uppercase; line-height: 1.1; letter-spacing: 1px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4vh; }
.case-title-page .text-outline { position: relative; color: transparent; -webkit-text-stroke: 3px #000000; }
.case-title-page .text-solid { color: #000000; position: relative; }

.case-tag-page { position: absolute; top: 0; left: 100%; margin-left: 60px; display: inline-flex; align-items: center; justify-content: center; height: 56px; background: var(--custom-color, var(--mp-rojo)); color: var(--custom-text-color, #ffffff); -webkit-text-stroke-width: 0; font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.45rem; line-height: 1.1; padding: 0 30px; transform: rotate(-4deg); letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }

.case-divider { width: 70px; height: 5px; background: var(--custom-color, var(--mp-rojo)); }
/* ===================================================
   CONTENEDOR DEL VIDEO PRINCIPAL (Adaptado para Vimeo)
   =================================================== */
.case-video-wrapper-page {
    flex: 1;
    align-self: stretch;
    aspect-ratio: 16 / 9;
    outline: 7px solid var(--custom-color, var(--mp-violeta));
    background: #000000;
    position: relative;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.case-video-wrapper-page video,
.case-video-wrapper-page iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.case-desc-page { font-family: 'Open Sans', sans-serif; font-size: 1.05vw; color: #000000; line-height: 1.65; text-align: left; font-weight: 500; }

/* ===================================================
   RECOMENDADOS (MÁS MOTIONS)
   =================================================== */
.case-recommendations {
    width: calc(100vw - 160px);
    margin-top: 8vh;
    padding-top: 5vh;
    border-top: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 3.5vh;
}

.reco-header {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.reco-title-wrapper {
    position: relative;
    display: inline-block;
}

.reco-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 3.5vw;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 2px;
    display: flex;
    gap: 1vw;
}

.reco-title .text-outline { color: transparent; -webkit-text-stroke: 3px #000000; }
.reco-title .text-solid { color: #000000; }
/* Dinámico y más a la derecha */
.cool-tag {
    position: absolute;
    top: 1vh; 
    left: 100%; /* Lo empuja exactamente al final del título */
    margin-left: 20px; /* Separación entre la última 'S' y el tag. Podés agrandarlo si querés más espacio */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    background: var(--custom-color, var(--mp-fucsia));
    color: var(--custom-text-color, #ffffff);
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.1;
    padding: 0 30px;
    transform: rotate(5deg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
/* ===================================================
   RECOMENDADOS (MÁS MOTIONS)
   =================================================== */
/* ... (reco-header, reco-title, etc. quedan igual) ... */

.reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5vw;
}

.reco-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #111;
    padding: 8px; /* Cambiado a 8px para igualar a .card */
    
    /* Stroke inicial de 2px con el color de la variable */
    border: 2px solid var(--reco-color);
    
    gap: 8px; /* Cambiado a 8px */
    
    /* Animación idéntica a las cards del home */
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.reco-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    overflow: hidden;
}

.reco-info {
    font-family: 'Anton', sans-serif;
    font-size: 1.1vw;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    padding: 0 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--reco-color); 
}

.reco-card:hover {
    z-index: 10;
    
    /* Se agranda como el cilindro 3D */
    transform: scale(1.08);
    
    /* ACÁ BAJAMOS EL STROKE: de 6px lo pasamos a 4px (o probá 3px si lo querés aún más sutil) */
    border: 4px solid var(--reco-color);
    
    /* Aparece la sombra con el color temático */
    box-shadow: 0px 15px 40px var(--reco-color);
}
/* ===================================================
   DECORACIONES FLOTANTES 
   =================================================== */
.case-deco-left { position: absolute; bottom: 5vh; left: -2vw; display: flex; flex-direction: column; gap: 0.5vw; z-index: 1; }
.shape-purple { background: var(--mp-fucsia); width: 6.5vw; }
.shape-purple.circle { height: 6.5vw; border-radius: 50%; }
.shape-purple.pill-vertical { height: 10vw; border-radius: 999px; }

.case-deco-right { position: absolute; bottom: 0; right: 0; display: flex; flex-direction: column; align-items: flex-end; z-index: 1; }
.shape-green { background: var(--mp-verde-lima); }
.shape-green.top-rounded { width: 6.5vw; height: 14vw; border-top-left-radius: 999px; border-top-right-radius: 999px; margin-right: 2vw; }
.shape-green.cross-bottom { display: flex; gap: 0.5vw; background: transparent; margin-top: 0.5vw; }
.shape-green.cross-bottom .sub-green { background: var(--mp-verde-lima); width: 6.5vw; height: 6.5vw; }
.shape-green.cross-bottom .sub-green:nth-child(1) { border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.shape-green.cross-bottom .sub-green:nth-child(2) { border-top-left-radius: 999px; border-top-right-radius: 999px; }
/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
    position: relative;
    z-index: 50; /* ESTO EVITA QUE LAS MANCHAS MORADAS LO PISEN */
    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);
}

/* --- MISCELÁNEAS DEL FOOTER --- */
.footer-deco {
    position: absolute !important; /* Necesita ser absoluto para flotar de fondo */
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    height: auto !important; /* Mata el height 100% global */
    object-fit: contain !important;
}

.footer-deco-left {
    width: clamp(80px, 10vw, 160px) !important; /* Forzamos su tamaño real */
    bottom: 6% !important;
    left: 3% !important;
    top: auto !important; /* Mata el top: 0 global */
    right: auto !important;
}

.footer-deco-right {
    width: clamp(70px, 8vw, 130px) !important; /* Forzamos su tamaño real */
    top: 8% !important;
    right: 4% !important;
    left: auto !important; /* Mata el left: 0 global */
    bottom: auto !important;
}

/* --- FIN MISCELÁNEAS --- */

.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;
}

/* --- ARREGLO DEL LOGO --- */
.footer-logo {
    height: 32px;
    width: auto;
    position: static; /* Lo saca del absolute global */
    display: block;
}

.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;
}

/* Protegemos el logo del loader de la regla global de imágenes */
#loader-logo-sub {
    position: static !important;
    width: 250px !important;
    height: auto !important; 
    object-fit: contain !important;
}