:root {
    --orange: #e45a00;
    --ink: #302724;
    --cream: #efebe1;
    --pink: #e693c5;
    --blue: #6ccaff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--orange);
    color: var(--ink);
    font-family: Poppins, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea {
    font: inherit
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent
}

button {
    color: inherit;
    cursor: pointer
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 3.5vw;
    pointer-events: none
}

header>* {
    pointer-events: auto
}

.brand {
    display: block;
    width: 120px
}

.brand img {
    width: 100%;
    height: auto;
    display: block
}

.header-caption {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .16em;
    margin-left: auto;
    margin-right: 10vw
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 18px;
    background: none;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    padding: 15px 0
}

.menu-toggle i {
    width: 29px;
    display: grid;
    gap: 6px
}

.menu-toggle b {
    height: 2px;
    background: currentColor;
    transition: transform .4s;
    display: block
}

.menu-open .menu-toggle b:first-child {
    transform: translateY(4px) rotate(45deg)
}

.menu-open .menu-toggle b:last-child {
    transform: translateY(-4px) rotate(-45deg)
}

.track {
    height: 100svh;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none
}

.track::-webkit-scrollbar {
    display: none
}

.panel {
    flex: 0 0 100%;
    height: 100%;
    padding: 135px 7vw 85px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.orange {
    background: var(--orange)
}

.cream {
    background: var(--cream)
}

.dark {
    background: var(--ink);
    color: var(--cream)
}

.pink {
    background: var(--pink)
}

.blue {
    background: var(--blue)
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 600;
    margin: 0 0 24px
}

.panel h1,
.panel h2 {
    font-size: clamp(54px, 7.4vw, 132px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.065em;
    margin: 0 0 28px;
    position: relative;
    z-index: 2
}

.panel h2 {
    font-size: clamp(48px, 6.2vw, 106px)
}

em {
    font-style: normal;
    color: inherit;
    -webkit-text-stroke: 1.3px currentColor;
    -webkit-text-fill-color: transparent
}

.hero h1 {
    font-size: clamp(55px, 7.25vw, 126px);
    max-width: 85%;
    line-height: 1.03
}

.hero h1 em {
    font-size: .87em
}

.lastline {
    font-size: .8em
}

.hero .eyebrow {
    margin-bottom: 20px
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    width: 100%;
    margin-top: 10px;
    z-index: 3
}

.hero-bottom p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0
}

.pill {
    border: 1px solid currentColor;
    border-radius: 99px;
    display: inline-flex;
    gap: 40px;
    padding: 16px 24px;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    align-self: flex-start;
    background: transparent;
    transition: background .3s, color .3s, transform .3s
}

.pill:hover {
    background: var(--ink);
    color: var(--cream);
    transform: rotate(-2deg)
}

.dark .pill:hover {
    background: var(--cream);
    color: var(--ink)
}

.pill span {
    font-size: 24px;
    line-height: 1
}

.lead {
    font-size: clamp(15px, 1.4vw, 22px);
    line-height: 1.7;
    max-width: 650px;
    margin: 10px 0 30px
}

.split-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 800px;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 25px
}

.spark {
    position: absolute;
    right: 9%;
    top: 28%;
    width: 160px;
    animation: spin 25s linear infinite;
    z-index: 0
}

.hero .spark {
    width: 95px;
    right: 15%;
    top: 21%
}

.intro .spark {
    right: 5%;
    top: 58%;
    width: 120px
}

@media (max-width: 760px) {
  .intro .spark {
    top: 12%;
    bottom: auto;
    right: 10%;
    width: 70px;
  }
}

.end .spark {
    top: 50%;
    width: 220px
}

.camera {
    position: absolute;
    right: 8%;
    top: 49%;
    width: 190px;
    height: 150px;
    transform: rotate(-12deg);
    animation: bob 4s ease-in-out infinite;
    z-index: 1
}

.reels {
    display: flex;
    gap: 6px;
    position: absolute;
    top: -38px;
    left: 10px
}

.reels i {
    display: block;
    border: 8px solid var(--ink);
    background: var(--cream);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 12px var(--orange)
}

.bodycam {
    border: 7px solid var(--ink);
    background: var(--cream);
    border-radius: 18px;
    width: 150px;
    height: 100px;
    position: relative;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 900
}

.bodycam b {
    position: absolute;
    right: -52px;
    top: 15px;
    width: 48px;
    height: 65px;
    background: var(--ink);
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 75%)
}

.legs {
    height: 45px;
    width: 90px;
    border-left: 8px solid;
    border-right: 8px solid;
    transform: skew(-15deg);
    margin-left: 35px
}

.service-links {
    width: 60%;
    margin-top: 15px
}

.service-links a {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #efebe155;
    padding: 15px 0;
    font-size: 18px
}

.service-links a:hover {
    color: var(--pink)
}

ul {
    padding: 0;
    list-style: none;
    max-width: 660px;
    margin: 0 0 30px
}

li {
    padding: 11px 0;
    border-bottom: 1px solid #30272430;
    font-size: 14px
}

.dark li {
    border-color: #efebe140
}

li:before {
    content: '↗';
    margin-right: 20px
}

.email {
    font-size: clamp(16px, 2vw, 30px);
    border-bottom: 1px solid;
    align-self: start;
    margin-top: 25px
}

.form-panel {
    padding-top: 115px
}

.form-panel h2 {
    font-size: 55px;
    margin-bottom: 12px
}

form {
    max-width: 850px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 35px
}

label {
    font-size: 12px;
    font-weight: 500;
    display: block
}

.full {
    grid-column: 1/-1
}

input,
textarea {
    border: 0;
    border-bottom: 1px solid #30272470;
    background: transparent;
    border-radius: 0;
    width: 100%;
    padding: 11px 0;
    outline-offset: 2px;
    font-size: 15px;
    color: var(--ink)
}

textarea {
    resize: vertical;
    max-height: 160px
}

.consent {
    display: flex;
    gap: 10px;
    align-items: start;
    margin: 20px 0;
    font-size: 10px;
    max-width: 700px
}

.consent input {
    width: 16px;
    margin: 0;
    accent-color: var(--orange)
}

.consent a {
    text-decoration: underline
}

.trap {
    position: absolute;
    left: -9999px
}

.form-panel .pill {
    padding: 10px 24px
}

.legal p {
    max-width: 750px;
    font-size: 14px;
    line-height: 1.8
}

.legal h1 {
    font-size: 70px
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 18px 3.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 20;
    pointer-events: none;
    font-size: 9px;
    letter-spacing: .08em
}

.progress {
    height: 2px;
    width: 26%;
    background: #30272425
}

.progress i {
    display: block;
    background: currentColor;
    width: 25%;
    height: 100%;
    transition: width .5s
}

.controls {
    display: flex;
    gap: 20px;
    align-items: center;
    pointer-events: auto
}

.controls button {
    border: 0;
    background: none;
    font-size: 23px;
    padding: 0 5px
}

.controls button:disabled {
    opacity: .25;
    cursor: default
}

.counter {
    font-size: 10px;
    margin-right: 8px
}

nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--cream);
    z-index: 30;
    padding: 125px 12vw 40px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .65s cubic-bezier(.76, 0, .24, 1);
    overflow: auto
}

.menu-open nav {
    clip-path: inset(0)
}

.menu-open header {
    color: var(--cream)
}

.menu-top {
    font-size: 10px;
    letter-spacing: .2em;
    margin-bottom: 25px
}

.menu-links {
    max-width: 850px
}

.menu-links a {
    display: flex;
    align-items: baseline;
    gap: 22px;
    font-size: clamp(28px, 4.2vw, 65px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.3;
    transform: translateY(30px);
    opacity: 0;
    transition: transform .6s, opacity .6s, color .25s
}

.menu-open .menu-links a {
    transform: translateY(0);
    opacity: 1;
    transition-delay: .15s
}

.menu-links a:hover,
.menu-links a[aria-current] {
    color: var(--orange)
}

.menu-links small {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0
}

.menu-links span {
    margin-left: auto;
    font-size: .6em
}

.menu-mail {
    display: inline-block;
    font-size: 12px;
    margin-top: 30px
}

.loader {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--orange);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: loaderOut .8s 2.4s cubic-bezier(.76, 0, .24, 1) forwards;
    pointer-events: none
}

.loader>div {
    font-size: clamp(60px, 12vw, 180px);
    font-weight: 800;
    letter-spacing: -.07em;
    animation: loadWord 2.4s both;
    line-height: .85
}

.loader span {
    display: block;
    font-size: .25em;
    letter-spacing: 0;
    text-align: right;
    color: var(--cream)
}

.loader p {
    font-size: 9px;
    letter-spacing: .2em;
    margin-top: 40px
}

.loader>i {
    width: 200px;
    height: 2px;
    background: var(--orange);
    transform-origin: left;
    animation: bar 2.4s both
}

.ready .loader {
    display: none
}

.enter .panel:first-child h1 {
    animation: rise 1s .05s both
}

.panel.active h2 {
    animation: rise .8s both
}

.light-header header,
.light-header footer {
    color: var(--cream)
}

#form-status {
    font-size: 12px;
    max-width: 700px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes bob {
    50% {
        transform: translateY(-12px) rotate(-7deg)
    }
}

@keyframes loaderOut {
    to {
        transform: translateY(-100%);
        visibility: hidden
    }
}

@keyframes loadWord {
    from {
        opacity: 0;
        transform: translateY(35px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bar {
    from {
        transform: scaleX(0)
    }

    to {
        transform: scaleX(1)
    }
}

@keyframes rise {
    from {
        opacity: .1;
        transform: translateY(45px) rotate(1deg)
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(0)
    }
}

@media(min-width:1000px) and (max-height:780px) {
    .panel {
        padding-top: 110px
    }

    .panel h1 {
        font-size: 6.7vw
    }

    .panel h2 {
        font-size: 5.6vw
    }

    .eyebrow {
        margin-bottom: 15px
    }

    .lead {
        font-size: 16px;
        margin-bottom: 18px
    }

    .form-grid {
        gap: 12px 35px
    }

    .form-panel h2 {
        font-size: 42px
    }

    .consent {
        margin: 12px 0
    }
}

@media(max-width:760px) {
    header {
        padding: 15px 6vw
    }

    .brand {
        width: 95px
    }

    .header-caption {
        display: none
    }

    .track {
        height: auto;
        display: block;
        overflow: visible;
        scroll-snap-type: none
    }

    .panel {
        min-height: 100svh;
        height: auto;
        padding: 130px 7vw 95px;
        overflow: hidden
    }

    .panel h1,
    .hero h1 {
        font-size: clamp(45px, 10.6vw, 80px);
        max-width: 100%;
        line-height: 1.1
    }

    .panel h2 {
        font-size: 12vw
    }

    .hero {
        justify-content: center
    }

    .hero-bottom {
        margin-top: 135px;
        display: block
    }

    .hero-bottom .pill {
        margin-top: 22px
    }

    .hero .camera {
        top: auto;
        bottom: 205px;
        right: 15%;
        transform: scale(.65) rotate(-12deg);
        width: 130px
    }

    .hero .spark {
        top: 39%;
        right: 6%;
        width: 55px
    }

    .spark {
        width: 80px;
        right: 10%;
        top: 77%
    }

    .split-copy {
        grid-template-columns: 1fr;
        gap: 0;
        font-size: 14px
    }

    .lead {
        font-size: 16px
    }

    .service-links {
        width: 100%
    }

    .service-links a {
        font-size: 16px
    }

    .end .spark {
        width: 100px;
        top: 70%
    }

    .camera {
        opacity: .4;
        right: 8%;
        top: 70%
    }

    footer {
        padding: 13px 6vw;
        background: var(--cream);
        color: var(--ink) !important
    }

    .progress {
        display: none
    }

    .controls {
        gap: 9px
    }

    .counter {
        display: none
    }

    .menu-links a {
        font-size: 38px;
        line-height: 1.65
    }

    nav {
        padding: 125px 8vw 60px
    }

    .menu-top {
        font-size: 8px
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .form-panel {
        padding-top: 100px
    }

    .contact-title {
        min-height: 85svh
    }

    .contact-title .spark {
        top: 80%
    }

    .form-panel h2 {
        font-size: 48px
    }

    .consent {
        font-size: 11px
    }

    .legal h1 {
        font-size: 48px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }

    .loader {
        display: none
    }
}

.brand img {
    filter: brightness(0) saturate(100%)
}

.menu-open .brand img,
.light-header .brand img {
    filter: brightness(0) invert(93%) sepia(12%) saturate(220%)
}

.hero h1 em {
    margin-left: .12em
}

.hero h1 {
    letter-spacing: -.055em
}

/* DestaK · segunda edición */
.track {
    scroll-snap-type: none;
    scroll-behavior: auto
}

.panel {
    scroll-snap-align: none
}

.blink {
    position: fixed;
    inset: 0;
    z-index: 85;
    pointer-events: none;
    display: grid;
    place-items: center;
    color: var(--cream)
}

.blink::before,
.blink::after {
    content: '';
    position: absolute;
    left: -5%;
    width: 110%;
    height: 54%;
    background: var(--ink);
    transition: transform .65s cubic-bezier(.65, 0, .25, 1);
    z-index: 1
}

.blink::before {
    top: 0;
    border-radius: 0 0 50% 50%/0 0 14% 14%;
    transform: translateY(-105%)
}

.blink::after {
    bottom: 0;
    border-radius: 50% 50% 0 0/14% 14% 0 0;
    transform: translateY(105%)
}

.blink span {
    z-index: 2;
    font-size: 11px;
    letter-spacing: .2em;
    opacity: 0;
    transition: opacity .4s
}

.leaving .blink::before,
.leaving .blink::after,
.arriving .blink::before,
.arriving .blink::after {
    transform: translateY(0)
}

.leaving .blink span {
    opacity: 1;
    transition-delay: .4s
}

.menu-links a {
    position: relative;
    transition: transform .4s, opacity .6s, color .3s;
    transform-origin: left
}

.menu-open .menu-links a:hover {
    transform: translateX(20px) rotate(-1.5deg);
    transition-delay: 0s
}

.menu-links a span {
    transition: transform .4s
}

.menu-links a:hover span {
    transform: rotate(45deg)
}

.menu-links a small {
    transition: transform .4s
}

.menu-links a:hover small {
    transform: rotate(-15deg)
}

.orbit {
    width: 170px;
    height: 170px;
    position: absolute;
    right: 8%;
    bottom: 14%;
    overflow: visible
}

.orbit text {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    fill: currentColor;
    animation: spin 24s linear infinite;
    transform-origin: 110px 110px
}

.orbit-arrow {
    fill: none;
    stroke: currentColor;
    stroke-width: 2
}



.mascot {
    position: absolute;
    right: 6%;
    bottom: 14%;
    width: 280px;
    height: 350px;
    z-index: 3;
    animation: macabeaFloat 5s ease-in-out infinite;
    transform-origin: bottom center;
    pointer-events: none
}

.sprite {
    width: 100%;
    height: 100%;
    background-image: url('assets/macabea.webp');
    background-repeat: no-repeat;
    background-size: 1261px 1247px
}

.film .sprite {
    background-position: -295px -15px
}

.music .sprite {
    background-position: -940px -18px
}

.hello {
    width: 235px;
    height: 300px
}

.hello .sprite {
    background-position: 0 -720px
}

.hero .mascot {
    right: 5%;
    bottom: 24%;
    transform: scale(.8)
}

.hero h1 {
    max-width: 80%;
    font-size: clamp(50px, 6.8vw, 116px)
}

.hero .spark {
    right: 8%;
    top: 17%;
    width: 60px
}

.service-intro h1 {
    font-size: clamp(40px, 5vw, 88px);
    max-width: 80%
}

.service-intro .mascot {
    right: 4%;
    bottom: 12%;
    transform: scale(.8)
}

.service-intro .lead {
    max-width: 65%;
    font-size: 17px
}

.plans h2,
.strategy h2 {
    font-size: clamp(42px, 5.2vw, 90px)
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1100px;
    margin: 20px 0 25px
}

.plan-grid article {
    border-top: 2px solid;
    padding: 18px 0
}

.plan-grid article>span {
    font-size: 10px;
    letter-spacing: .12em
}

.plan-grid h3 {
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -.04em;
    margin: 15px 0
}

.plan-grid p {
    font-size: 13px;
    line-height: 1.8
}

.plan-grid strong {
    font-size: 20px;
    font-weight: 500
}

.note {
    font-size: 11px;
    line-height: 1.7;
    max-width: 800px
}

.pack-row {
    display: flex;
    gap: 65px;
    margin: 8px 0
}

.pack-row h3 {
    font-size: 22px;
    margin: 8px 0
}

.pack-row p {
    font-size: 14px;
    line-height: 1.8
}

.creative h2 {
    font-size: 5.7vw
}

.creative .lead {
    font-size: 16px;
    max-width: 700px;
    margin: 0 0 10px
}

.extras ul {
    max-width: 65%;
    margin: 25px 0 35px
}

.biography h2 {
    font-size: 6vw
}

.bio-copy {
    max-width: 65%;
    font-size: 15px;
    line-height: 1.8
}

.bio-copy p {
    margin: 0 0 13px
}

.biography .mascot {
    right: 7%;
    bottom: 20%
}

.together .split-copy {
    max-width: 75%
}

.together h2 {
    font-size: 6vw
}

.location {
    font-size: 13px;
    margin-top: 22px
}

.hero-bottom {
    position: relative;
    z-index: 4
}

.hero-bottom strong {
    font-size: 20px
}

.end .spark {
    display: none
}

.end .mascot {
    right: 13%;
    bottom: 15%
}

.bespoke .lead {
    max-width: 72%
}

.hero:after {
    content: 'DESLIZA PARA DESCUBRIR →';
    position: absolute;
    bottom: 70px;
    left: 7vw;
    font-size: 9px;
    letter-spacing: 2px;
    opacity: .6
}

.panel.active h2 {
    animation: none
}

@keyframes macabeaFloat {

    0%,
    100% {
        translate: 0 0;
        rotate: -3deg
    }

    50% {
        translate: 0 -15px;
        rotate: 3deg
    }
}

@media(max-height:780px) and (min-width:761px) {
    .plan-grid {
        margin: 5px 0;
        gap: 25px
    }

    .plan-grid p {
        margin: 7px 0
    }

    .plan-grid h3 {
        font-size: 20px;
        margin: 8px 0
    }

    .bio-copy {
        font-size: 13px
    }

    .biography h2 {
        font-size: 5vw
    }

    .mascot {
        scale: .8
    }

    .creative h2 {
        font-size: 4.7vw
    }
}

@media(max-width:760px) {
    .hero h1 {
        font-size: 11vw;
        max-width: 100%
    }

    .hero .mascot {
        right: 0;
        bottom: 195px;
        scale: .65;
        transform: none;
        transform-origin: bottom right
    }

    .hero-bottom {
        margin-top: 190px
    }

    .hero:after {
        bottom: 70px;
        font-size: 8px
    }

    .service-intro h1 {
        font-size: 9vw;
        max-width: 100%
    }

    .service-intro .lead {
        max-width: 100%;
        font-size: 15px
    }

    .service-intro {
        padding-bottom: 330px
    }

    .service-intro .mascot {
        bottom: 55px;
        scale: .7;
        transform: none;
        transform-origin: bottom right
    }

    .plan-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 20px 0
    }

    .plan-grid article {
        padding: 15px 0
    }

    .plan-grid h3 {
        font-size: 26px
    }

    .plan-grid p {
        font-size: 14px
    }

    .plan-grid strong {
        font-size: 18px
    }

    .plans h2,
    .strategy h2 {
        font-size: 11vw
    }

    .pack-row {
        display: block
    }

    .creative h2,
    .biography h2,
    .together h2 {
        font-size: 11vw
    }

    .creative .lead {
        font-size: 15px
    }

    .pack-row article {
        margin: 20px 0
    }

    .extras ul,
    .bio-copy,
    .together .split-copy,
    .bespoke .lead {
        max-width: 100%
    }

    .biography {
        padding-bottom: 360px
    }

    .biography .mascot {
        bottom: 65px;
        right: 10%;
        scale: .75;
        transform-origin: bottom right
    }

    .extras {
        padding-bottom: 350px
    }

    .extras .mascot {
        bottom: 55px;
        scale: .7;
        transform-origin: bottom right
    }

    .end {
        padding-bottom: 350px
    }

    .end .mascot {
        bottom: 65px;
        scale: .8;
        transform-origin: bottom right
    }

    .orbit {
        width: 110px;
        height: 110px;
        right: 10%;
        bottom: 55px
    }

    .together {
        padding-bottom: 200px
    }

    .bespoke {
        padding-bottom: 220px
    }



    .bio-copy {
        font-size: 15px
    }

    .team .mascot {
        scale: .7
    }

    .panel:first-child:has(.hello) {
        padding-bottom: 360px
    }

    .panel:first-child .hello {
        bottom: 55px;
        scale: .8;
        transform-origin: bottom right
    }
}

@media(prefers-reduced-motion:reduce) {
    .blink {
        display: none
    }

    .orbit text,
    .mascot {
        animation: none !important
    }
}

/* Servicios: dos ramas, una vista */
.services-page .track {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    display: block
}

.services-page .service-map {
    height: auto;
    min-height: 100svh;
    padding: 115px 6vw 70px;
    justify-content: flex-start;
    overflow: visible
}

.map-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    position: relative;
    padding-top: 25px
}

.map-heading>.eyebrow {
    position: absolute;
    top: 0;
    left: 0
}

.map-heading h1 {
    font-size: clamp(35px, 3.6vw, 65px);
    margin: 12px 0 20px;
    max-width: 75%;
    line-height: 1.08
}

.map-heading>p:last-child {
    max-width: 240px;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 22px
}

.branches {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 22px
}

.branch {
    padding: 25px 28px;
    border-radius: 5px;
    position: relative;
    transition: transform .4s;
    animation: branchArrive .9s both
}

.branch:nth-child(2) {
    animation-delay: .15s
}

.agile {
    background: var(--orange)
}

.creative-branch {
    background: var(--ink);
    color: var(--cream)
}

.branch-title>span {
    font-size: 9px;
    letter-spacing: .14em
}

.branch-title h2 {
    font-size: clamp(30px, 3.2vw, 54px);
    line-height: 1.02;
    letter-spacing: -.04em;
    margin: 12px 0
}

.branch-title p {
    font-size: 11px;
    line-height: 1.65;
    max-width: 340px;
    margin: 8px 0 20px
}

.branch-star {
    position: absolute;
    right: 30px;
    top: -40px;
    font-size: 65px;
    animation: spin 20s linear infinite
}

.branch-nodes {
    display: grid;
    gap: 8px
}

.service-node {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 15px;
    border: 1px solid #30272466;
    border-radius: 3px;
    background: #efebe130;
    font-size: 15px;
    font-weight: 600;
    transition: transform .25s, background .25s;
    position: relative
}

.service-node small {
    display: block;
    font-weight: 400;
    font-size: 9px;
    margin-top: 4px;
    line-height: 1.4
}

.service-node b {
    font-size: 23px;
    font-weight: 400;
    transition: transform .3s
}

.service-node:hover {
    transform: translateX(5px);
    background: var(--cream);
    color: var(--ink)
}

.service-node:hover b {
    transform: rotate(45deg)
}

.creative-branch .service-node {
    border-color: #efebe14a;
    background: #efebe10c
}

.creative-branch .service-node:hover {
    background: var(--pink);
    color: var(--ink)
}

.node-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.node-trio .service-node {
    font-size: 12px;
    padding: 12px 10px;
    gap: 4px
}

.node-trio .service-node b {
    font-size: 16px
}

.branch-foot {
    font-size: 10px;
    letter-spacing: .15em;
    margin-top: 45px
}

.map-bottom {
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    margin: 20px 0 0
}

.map-bottom a {
    text-decoration: underline
}

.services-page footer .controls,
.services-page footer .progress {
    display: none
}

.service-dialog {
    border: 0;
    background: var(--cream);
    color: var(--ink);
    width: min(820px, 90vw);
    max-height: 85svh;
    padding: 55px 45px 35px;
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 30px 100px #0005
}

.service-dialog[open] {
    animation: dialogArrive .4s cubic-bezier(.2, .9, .3, 1) both
}

.service-dialog::backdrop {
    background: #302724c9;
    backdrop-filter: blur(8px)
}

.dialog-close {
    position: absolute;
    right: 22px;
    top: 17px;
    border: 0;
    background: none;
    font-size: 12px;
    padding: 8px
}

.service-dialog h2 {
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -.05em;
    line-height: 1.05;
    margin: 15px 0
}

.dialog-intro {
    font-size: 17px;
    line-height: 1.6
}

.dialog-copy {
    font-size: 14px;
    line-height: 1.8;
    margin: 25px 0
}

.modal-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px
}

.modal-plans article {
    border-top: 2px solid var(--orange)
}

.modal-plans h3 {
    font-size: 18px;
    line-height: 1.3
}

.modal-plans strong {
    font-size: 12px
}

.modal-note {
    font-size: 11px;
    padding: 15px 0;
    border-top: 1px solid #30272430
}

.dialog-copy ul {
    margin-bottom: 0
}

.service-dialog .pill {
    background: var(--orange);
    border-color: var(--orange)
}

body:has(dialog[open]) {
    overflow: hidden
}

.camera-performance {
    animation: cameraEntrance 7s ease-in-out infinite !important
}

.camera-performance .sprite {
    animation: cameraReveal 7s ease-in-out infinite
}

.camera-flash {
    position: absolute;
    top: 35%;
    left: 12%;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 35px 15px #fff9;
    animation: cameraFlash 7s infinite;
    opacity: 0
}

.camera-callout {
    position: absolute;
    right: 10px;
    top: 0;
    font-size: 14px;
    font-weight: 700;
    background: var(--cream);
    color: var(--ink);
    padding: 8px 14px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    rotate: 12deg;
    animation: cameraCaption 7s infinite
}

.mini-scene {
    position: absolute;
    right: 5%;
    bottom: 17%;
    width: 390px;
    max-width: 40vw;
    z-index: 3
}

.mini-car {
    position: relative;
    animation: miniAccelerate 5s ease-in-out infinite;
    transform-origin: 50% 80%
}

.mini-car img {
    width: 100%;
    height: auto;
    display: block
}

.mini-scene>span {
    display: block;
    text-align: center;
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 10px
}

.wheel {
    position: absolute;
    border: 5px solid #302724;
    border-radius: 50%;
    background: repeating-conic-gradient(#efebe1 0 12deg, #302724 12deg 60deg);
    animation: wheelSpin .6s linear infinite
}

.speed-lines {
    position: absolute;
    left: 0;
    top: 55%;
    width: 100%;
    height: 65px
}

.speed-lines i {
    display: block;
    height: 2px;
    background: var(--ink);
    width: 50px;
    margin: 12px 0;
    animation: speedLine 1s linear infinite
}

.speed-lines i:nth-child(2) {
    animation-delay: .2s;
    width: 80px
}

.speed-lines i:nth-child(3) {
    animation-delay: .5s
}

.end:has(.mini-scene) h2 {
    font-size: 5.5vw;
    max-width: 72%
}

@keyframes branchArrive {
    from {
        opacity: 0;
        transform: translateY(25px) rotate(1deg)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes dialogArrive {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.95)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes cameraEntrance {

    0%,
    100% {
        translate: 0 10px;
        rotate: -5deg
    }

    25%,
    60% {
        translate: 0 -8px;
        rotate: 0deg
    }

    75% {
        translate: 0 -8px;
        rotate: -2deg
    }
}

@keyframes cameraReveal {

    0%,
    8% {
        clip-path: inset(0 0 0 40%);
        transform: rotateY(-18deg)
    }

    25%,
    85% {
        clip-path: inset(0);
        transform: rotateY(0)
    }

    100% {
        clip-path: inset(0 0 0 40%);
        transform: rotateY(-18deg)
    }
}

@keyframes cameraFlash {

    0%,
    40%,
    44%,
    100% {
        opacity: 0;
        scale: .1
    }

    42% {
        opacity: 1;
        scale: 1.2
    }
}

@keyframes cameraCaption {

    0%,
    20%,
    80%,
    100% {
        opacity: 0;
        scale: .6
    }

    30%,
    70% {
        opacity: 1;
        scale: 1
    }
}

@keyframes miniAccelerate {

    0%,
    100% {
        translate: 0 0;
        rotate: 0deg
    }

    20% {
        translate: -14px 2px;
        rotate: 2deg
    }

    40% {
        translate: 25px -3px;
        rotate: -3deg
    }

    55%,
    75% {
        translate: 18px 0;
        rotate: 0deg
    }

    60%,
    70% {
        translate: 18px -3px
    }
}

@keyframes wheelSpin {
    to {
        rotate: 360deg
    }
}

@keyframes speedLine {
    from {
        opacity: 0;
        translate: 0 0
    }

    40% {
        opacity: .6
    }

    to {
        opacity: 0;
        translate: -70px 0
    }
}

@media(max-width:760px) {
    .services-page .service-map {
        padding: 115px 7vw 80px
    }

    .map-heading {
        display: block;
        padding-top: 28px
    }

    .map-heading h1 {
        font-size: 10vw;
        max-width: 100%
    }

    .map-heading>p:last-child {
        max-width: 100%
    }

    .branches {
        grid-template-columns: 1fr
    }

    .branch {
        padding: 25px 20px
    }

    .branch-title h2 {
        font-size: 10vw
    }

    .node-trio {
        grid-template-columns: 1fr
    }

    .node-trio .service-node {
        font-size: 14px
    }

    .branch-foot {
        margin-top: 25px
    }

    .map-bottom {
        display: block;
        line-height: 2
    }

    .map-bottom a {
        display: block
    }

    .service-dialog {
        padding: 55px 25px 25px;
        max-height: 85svh
    }

    .modal-plans {
        grid-template-columns: 1fr
    }

    .mini-scene {
        right: 9%;
        bottom: 95px;
        width: 300px;
        max-width: 80vw
    }

    .end:has(.mini-scene) h2 {
        font-size: 11vw;
        max-width: 100%
    }
}

@media(prefers-reduced-motion:reduce) {

    .camera-performance,
    .camera-performance .sprite,
    .camera-callout,
    .mini-car,
    .wheel,
    .speed-lines i {
        animation: none !important
    }

    .camera-flash {
        display: none
    }

    .camera-performance .sprite {
        clip-path: none;
        transform: none
    }
}

.wheel-back {
    width: 12%;
    aspect-ratio: 1;
    left: 12%;
    top: 65.2%
}

.wheel-front {
    width: 12%;
    aspect-ratio: 1;
    left: 74.5%;
    top: 65.2%
}

.mini-car img {
    border-radius: 12px
}

.mini-scene {
    width: 450px;
    max-width: 36vw
}

.end:has(.mini-scene) {
    padding-right: 40%
}

.end:has(.mini-scene) h2 {
    max-width: 100%;
    font-size: 5vw
}

@media(max-width:760px) {
    .mini-scene {
        max-width: 85vw;
        width: 350px;
        right: 7%;
        bottom: 95px
    }

    .end:has(.mini-scene) {
        padding-right: 7vw
    }

    .end:has(.mini-scene) h2 {
        font-size: 11vw
    }
    .icon-arrow {
        display: block;
        width: 26px;
        height: 26px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: square;
        stroke-linejoin: miter;
    }
}
/* Flechas vectoriales: estilo global, independiente del dispositivo. */
svg.icon-arrow {
  display: inline-block;
  position: static;
  width: 26px;
  height: 26px;
  min-width: 26px;
  flex: 0 0 26px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}
svg.icon-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.pill > span:has(.icon-arrow) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* Inicio: resumen de las dos ramas de servicios. */
.home-services{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr);column-gap:6vw;row-gap:24px;align-content:center;align-items:center}
.home-services>.eyebrow{grid-column:1/-1;margin:0}
.home-services>h2{grid-column:1;grid-row:2;margin:0}
.home-services>.home-service-branches{grid-column:2;grid-row:2;display:grid;gap:22px;min-width:0}
.home-services .home-service-branch{padding:20px 0 0;border-top:1px solid #efebe144;min-width:0}
.home-services .home-service-branch h3{font-size:clamp(17px,1.4vw,20px);font-weight:500;line-height:1.25;letter-spacing:-.035em;margin:0 0 9px;color:var(--cream)}
.home-services .home-service-branch h3::before{content:"";display:inline-block;width:6px;height:6px;margin:0 9px 2px 0;border-radius:50%;background:var(--orange)}
.home-services .home-service-branch:nth-child(2) h3::before{background:var(--pink)}
.home-services .home-service-branch p{font-size:13px;line-height:1.7;margin:0;color:#efebe1de}
.home-services>.service-links{grid-column:1/-1;grid-row:3;margin-top:0}
.home-services.active .home-service-branch{animation:homeBranchReveal 1.15s cubic-bezier(.2,.65,.25,1) .35s both}
.home-services.active .home-service-branch:nth-child(2){animation-delay:.5s}
@keyframes homeBranchReveal{from{opacity:0;filter:blur(7px);translate:60px 0}to{opacity:1;filter:none;translate:none}}
@media(min-width:761px) and (max-height:700px){.home-services{row-gap:18px;padding-top:110px;padding-bottom:90px}.home-services>h2{font-size:min(6.2vw,12svh)}.home-services>.home-service-branches{gap:20px}.home-services .home-service-branch{padding-top:14px}.home-services .home-service-branch h3{font-size:18px;margin-bottom:8px}.home-services .home-service-branch p{font-size:13px;line-height:1.6}}
@media(max-width:760px){.home-services{display:flex;align-items:stretch;justify-content:center;gap:0;padding-top:120px;padding-bottom:125px}.home-services>.eyebrow{margin-bottom:24px}.home-services>h2{margin-bottom:30px}.home-services>.home-service-branches{gap:24px;margin-bottom:30px}.home-services .home-service-branch{padding-top:18px}.home-services .home-service-branch h3{font-size:18px}.home-services .home-service-branch p{font-size:13px;line-height:1.65}.home-services>.service-links{width:100%}.home-services>.service-links a{font-size:15px}.home-services.active .home-service-branch{animation-name:homeBranchRevealMobile}}
@keyframes homeBranchRevealMobile{from{opacity:0;filter:blur(5px);translate:36px 0}to{opacity:1;filter:none;translate:none}}
@media(prefers-reduced-motion:reduce){.home-services.active .home-service-branch{animation:none!important;opacity:1;filter:none;translate:none}}

/* Inicio: acentos de marca sobre el vídeo, sin cambiar las otras secciones. */
.hero-video-page .hero-video .spark { color: var(--orange); }
.hero-video-page .hero-video::after { color: var(--orange); opacity: 1; font-weight: 600; }
.brand-color-filter { position: absolute; overflow: hidden; pointer-events: none; }
.hero-video-page.hero-at-header:not(.menu-open) header .brand img { filter: url("#hero-brand-duotone"); }

/* El resumen acompaña; la llamada a Servicios es el elemento de acción principal. */
.home-services > .service-links { width: 100%; }
.home-services .service-links > .home-services-cta {
 display: inline-flex; align-items: center; justify-content: space-between;
 width: min(100%, 440px); gap: 30px; padding: 18px 26px;
 border: 1px solid var(--cream); border-radius: 99px;
 background: var(--cream); color: var(--ink);
 font-size: 18px; font-weight: 600; line-height: 1.4;
 transition: background .25s, border-color .25s, transform .25s;
}
.home-services .home-services-cta > span { display: inline-flex; flex-shrink: 0; color: var(--orange); }
.home-services .service-links > .home-services-cta:hover { background: var(--orange); border-color: var(--orange); transform: translateX(4px); }
.home-services .home-services-cta:hover > span { color: var(--ink); }
@media (max-width:760px) {
 .home-services .service-links > .home-services-cta { font-size: 15px; padding: 17px 20px; gap: 16px; }
}
@media (prefers-reduced-motion:reduce) {
 .home-services .service-links > .home-services-cta { transition: none; }
 .home-services .service-links > .home-services-cta:hover { transform: none; }
}

/* Nuestro método: introducción breve junto a Macabea. */
.motion-page .method-hero > .method-hero-summary {
 max-width: min(44vw, 490px); margin: 24px 0 0; font-size: 14px;
 font-weight: 400; line-height: 1.75; color: var(--ink); text-wrap: pretty;
}
@media (max-width:760px) {
 .motion-page .method-hero > .method-hero-summary {
  max-width: 100%; margin: 18px 0 0; font-size: 13px; line-height: 1.7;
 }
}
@media (min-width:761px) and (max-height:700px) {
 .motion-page .method-hero > h1 { font-size: min(6.6vw, 12svh); }
 .motion-page .method-hero > .method-hero-summary { margin-top: 18px; font-size: 13px; line-height: 1.6; }
}
