﻿/* =====================================================================
   BYD · Home — Glassmorphism · Kinetic Type · Isometric · Gradient Mesh
   ===================================================================== */

/* ---------- 1. Paleta y tokens ---------- */
:root {
    --noche: #060A18;
    --abismo: #0B1430;
    --papel: #F6F8FC;
    --tinta: #0F172A;
    --niebla: #F1F5F9;
    --esmeralda: #10B981;
    --esmeralda-l: #34D399;
    --azul: #2563EB;
    --azul-l: #60A5FA;
    --cian: #22D3EE;
    --ambar: #F59E0B;
    --violeta: #7C3AED;
    --glass: rgba(255,255,255,.07);
    --glass-b: rgba(255,255,255,.16);
    --r: 22px;
    --r-s: 14px;
    --f-display: "Unbounded","Space Grotesk",system-ui,sans-serif;
    --f-head: "Space Grotesk",system-ui,sans-serif;
    --f-body: "Inter",system-ui,sans-serif;
    --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Reset (sin pelear con Bootstrap) ---------- */
.byd {
    font-family: var(--f-body);
    background: var(--noche);
    color: var(--niebla);
    line-height: 1.6;
    overflow-x: clip;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased
}

    .byd *, .byd *::before, .byd *::after {
        box-sizing: border-box
    }

:where(.byd) h1, :where(.byd) h2, :where(.byd) h3, :where(.byd) p, :where(.byd) ul, :where(.byd) ol {
    margin: 0
}

:where(.byd) h1, :where(.byd) h2, :where(.byd) h3 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
    text-wrap: balance;
    color: inherit
}

:where(.byd) a {
    color: inherit;
    text-decoration: none
}

:where(.byd) ul, :where(.byd) ol {
    list-style: none;
    padding: 0
}

:where(.byd) img {
    max-width: 100%;
    display: block
}

.byd :focus-visible {
    outline: 2px solid var(--ambar);
    outline-offset: 3px;
    border-radius: 6px
}

.byd section {
    position: relative;
    padding: clamp(76px,10vw,124px) 0;
    overflow: hidden;
    scroll-margin-top: 84px
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.wrap {
    width: min(1180px,92%);
    margin-inline: auto;
    position: relative;
    z-index: 1
}

/* ---------- 3. Tipografía ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 .74rem/1 var(--f-head);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--esmeralda-l);
    margin-bottom: 18px
}

    .eyebrow::before {
        content: "";
        width: 9px;
        height: 9px;
        background: currentColor;
        transform: rotate(45deg) skew(-12deg,-12deg)
    }

.byd h2 {
    font-size: clamp(2rem,4.4vw,3.2rem);
    margin-bottom: 16px
}

.intro {
    max-width: 62ch;
    font-size: 1.08rem;
    opacity: .82;
    margin-bottom: 48px;
    text-wrap: pretty
}

.grad {
    background: linear-gradient(100deg,var(--esmeralda-l),var(--cian) 45%,var(--azul-l));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.light {
    background: var(--papel);
    color: var(--tinta)
}

    .light .eyebrow {
        color: #047857
    }

    .light .grad {
        background-image: linear-gradient(100deg,#059669,#2563EB)
    }

.dark {
    background: var(--noche)
}

.deep {
    background: var(--abismo)
}

/* ---------- 4. GLASSMORPHISM ---------- */
.glass {
    position: relative;
    isolation: isolate;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--glass-b);
    border-radius: var(--r)
}

    .glass::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        padding: 1px;
        pointer-events: none;
        background: linear-gradient(140deg,rgba(255,255,255,.55),transparent 35%,transparent 65%,rgba(52,211,153,.6));
        -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude
    }

.light .glass {
    background: rgba(255,255,255,.65);
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 24px 50px -24px rgba(37,99,235,.3)
}

    .light .glass::after {
        background: linear-gradient(140deg,rgba(37,99,235,.35),transparent 40%,transparent 60%,rgba(16,185,129,.45))
    }

.spot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s;
    background: radial-gradient(380px circle at var(--mx,50%) var(--my,0%),rgba(52,211,153,.18),transparent 60%)
}

.spot:hover::before {
    opacity: 1
}

.grid {
    display: grid;
    gap: 24px
}

.g2 {
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr))
}

.g3 {
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr))
}

.g4 {
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr))
}

.tarjeta {
    padding: 30px;
    transition: transform .45s var(--ease),border-color .3s
}

    .tarjeta:hover {
        transform: translateY(-8px);
        border-color: rgba(52,211,153,.5)
    }

    .tarjeta h3 {
        font-size: 1.28rem;
        margin: 4px 0 10px
    }

    .tarjeta p {
        opacity: .84;
        font-size: .98rem
    }

/* ---------- 5. Espacios de imagen (muestran el nombre si falta) ---------- */
.slot {
    position: relative
}

    .slot img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .6s var(--ease)
    }

.slot--empty {
    border: 1.5px dashed rgba(148,163,184,.6);
    border-radius: var(--r-s);
    display: grid;
    place-items: center;
    min-height: 110px;
    background: repeating-linear-gradient(135deg,rgba(148,163,184,.07) 0 12px,transparent 12px 24px)
}

    .slot--empty img {
        display: none
    }

    .slot--empty::after {
        content: attr(data-file);
        font: 500 .76rem/1.4 var(--f-head);
        letter-spacing: .03em;
        color: #94a3b8;
        text-align: center;
        padding: 10px
    }

.slot--icon {
    width: 118px;
    height: 118px;
    margin-bottom: 18px
}

.tarjeta:hover .slot--icon img {
    transform: translateY(-8px) scale(1.05)
}

/* ---------- 6. Botones ---------- */
.boton {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 14px;
    border: 1px solid transparent;
    font: 600 1rem/1.2 var(--f-body);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease),box-shadow .25s
}

    .boton:hover {
        transform: translateY(-2px)
    }

    .boton svg {
        width: 18px;
        height: 18px
    }

.boton--verde {
    background: var(--esmeralda);
    color: #022c22;
    box-shadow: 0 12px 30px -10px rgba(16,185,129,.8)
}

    .boton--verde::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg,transparent 30%,rgba(255,255,255,.5) 50%,transparent 70%);
        transform: translateX(-120%);
        transition: transform .8s
    }

    .boton--verde:hover::after {
        transform: translateX(120%)
    }

.boton--glass {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.3);
    color: var(--niebla);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.boton--ambar {
    background: var(--ambar);
    color: #2b1a00;
    box-shadow: 0 12px 30px -10px rgba(245,158,11,.7)
}

/* ---------- 7. Navbar ---------- */
.barra {
    position: fixed;
    inset: 14px 0 auto;
    z-index: 60
}

.barra__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 18px;
    border-radius: 18px;
    background: rgba(6,10,24,.35);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-b);
    transition: background .3s
}

.barra.is-scrolled .barra__in {
    background: rgba(6,10,24,.82)
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 1.15rem var(--f-display);
    letter-spacing: .02em
}

.slot--logo {
    width: 38px;
    height: 38px;
    flex: none
}

    .slot--logo.slot--empty {
        min-height: 0;
        border-radius: 10px
    }

        .slot--logo.slot--empty::after {
            font-size: .5rem;
            padding: 0
        }

.links {
    display: flex;
    align-items: center;
    gap: 4px
}

    .links a {
        display: block;
        padding: 8px 12px;
        border-radius: 10px;
        font-size: .92rem;
        opacity: .78;
        transition: opacity .2s,background .2s,color .2s
    }

        .links a:hover {
            opacity: 1;
            background: rgba(255,255,255,.08)
        }

        .links a.is-active {
            opacity: 1;
            color: var(--esmeralda-l);
            background: rgba(52,211,153,.1)
        }

    .links .boton {
        margin-left: 8px;
        opacity: 1;
        padding: 10px 18px;
        color: #022c22
    }

        .links .boton:hover {
            background: var(--esmeralda)
        }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    place-content: center;
    gap: 5px
}

    .burger span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--niebla);
        border-radius: 2px;
        transition: transform .3s,opacity .3s
    }

    .burger.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

    .burger.is-open span:nth-child(2) {
        opacity: 0
    }

    .burger.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

@media(max-width:960px) {
    .burger {
        display: grid
    }

    .links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(6,10,24,.95);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border: 1px solid var(--glass-b)
    }

        .links.open {
            display: flex
        }

        .links .boton {
            margin: 8px 0 0
        }
}

/* ---------- 8. GRADIENT MESH ---------- */
.mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--noche);
    pointer-events: none
}

    .mesh i {
        position: absolute;
        border-radius: 50%;
        filter: blur(90px);
        opacity: .7;
        animation: drift 20s ease-in-out infinite alternate;
        will-change: transform
    }

        .mesh i:nth-child(1) {
            width: 52vw;
            height: 52vw;
            background: var(--azul);
            top: -18%;
            left: -12%
        }

        .mesh i:nth-child(2) {
            width: 42vw;
            height: 42vw;
            background: var(--esmeralda);
            bottom: -24%;
            right: -10%;
            animation-delay: -7s
        }

        .mesh i:nth-child(3) {
            width: 32vw;
            height: 32vw;
            background: var(--violeta);
            top: 28%;
            left: 42%;
            opacity: .42;
            animation-delay: -12s
        }

        .mesh i:nth-child(4) {
            width: 22vw;
            height: 22vw;
            background: var(--cian);
            top: 6%;
            right: 16%;
            opacity: .32;
            animation-delay: -3s
        }

    .mesh::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);
        background-size: 22px 22px;
        -webkit-mask-image: radial-gradient(ellipse at center,#000 25%,transparent 75%);
        mask-image: radial-gradient(ellipse at center,#000 25%,transparent 75%)
    }

.mesh--soft {
    background: transparent
}

    .mesh--soft i {
        opacity: .22
    }

@keyframes drift {
    0% {
        transform: translate(0,0) scale(1)
    }

    50% {
        transform: translate(6vw,-4vh) scale(1.12)
    }

    100% {
        transform: translate(-4vw,6vh) scale(.95)
    }
}

/* ---------- 9. HERO + KINETIC TYPE + ISOMETRIC ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px !important;
    perspective: 900px
}

.iso-floor {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 160vmax;
    height: 160vmax;
    z-index: 0;
    pointer-events: none;
    transform: translateX(-50%) rotateX(62deg) rotateZ(45deg);
    background-image: linear-gradient(rgba(52,211,153,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(96,165,250,.16) 1px,transparent 1px);
    background-size: 64px 64px;
    animation: floor 12s linear infinite;
    -webkit-mask-image: radial-gradient(circle at center,#000 8%,transparent 40%);
    mask-image: radial-gradient(circle at center,#000 8%,transparent 40%)
}

@keyframes floor {
    to {
        background-position: 64px 64px
    }
}

.hero__in {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center
}

.kinetic {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .26em;
    font-family: var(--f-display) !important;
    font-weight: 800 !important;
    font-size: clamp(2.2rem,5.4vw,4.3rem);
    line-height: 1.06 !important;
    letter-spacing: -.035em !important;
    margin-bottom: 24px !important
}

.kw {
    display: inline-block;
    opacity: 0;
    filter: blur(12px);
    transform: translateY(.5em) rotateX(-50deg);
    transform-origin: bottom;
    animation: kin .9s var(--ease) forwards;
    animation-delay: calc(.2s + var(--i) * .085s)
}

@keyframes kin {
    to {
        opacity: 1;
        filter: blur(0);
        transform: none
    }
}

.kw--hi {
    background: linear-gradient(100deg,var(--esmeralda-l),var(--cian),var(--azul-l),var(--esmeralda-l));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: kin .9s var(--ease) forwards,shimmer 8s linear infinite;
    animation-delay: calc(.2s + var(--i) * .085s),0s
}

@keyframes shimmer {
    to {
        background-position: 300% 0
    }
}

.rot {
    display: inline-grid;
    overflow: hidden;
    padding-bottom: .12em;
    margin-bottom: -.12em
}

    .rot > span {
        grid-area: 1/1;
        opacity: 0;
        animation: rot 7.5s var(--ease) infinite;
        background: linear-gradient(100deg,var(--ambar),#FCD34D 55%,var(--esmeralda-l));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent
    }

        .rot > span:nth-child(2) {
            animation-delay: 2.5s
        }

        .rot > span:nth-child(3) {
            animation-delay: 5s
        }

@keyframes rot {
    0% {
        opacity: 0;
        transform: translateY(70%)
    }

    6%,30% {
        opacity: 1;
        transform: none
    }

    36%,100% {
        opacity: 0;
        transform: translateY(-70%)
    }
}

.hero__sub {
    max-width: 52ch;
    font-size: 1.14rem;
    opacity: .86;
    margin-bottom: 32px !important
}

.cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px !important
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .84rem;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--glass-b)
}

    .pill i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--esmeralda-l);
        box-shadow: 0 0 10px var(--esmeralda-l)
    }

.stage {
    position: relative;
    aspect-ratio: 4/3.4;
    transition: transform .5s var(--ease);
    transform: perspective(1100px) rotateY(var(--ry,0deg)) rotateX(var(--rx,0deg))
}

.slot--hero {
    position: absolute;
    inset: 0
}

    .slot--hero img {
        filter: drop-shadow(0 40px 50px rgba(0,0,0,.55));
        animation: float 7s ease-in-out infinite
    }

.chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .86rem;
    animation: float 6s ease-in-out infinite
}

    .chip b {
        display: block;
        font-family: var(--f-head)
    }

    .chip small {
        display: flex;
        align-items: center;
        gap: 6px;
        opacity: .75
    }

.chip__ic {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex: none;
    background: linear-gradient(135deg,var(--azul),var(--esmeralda))
}

.chip__ic--a {
    background: linear-gradient(135deg,var(--ambar),#ea580c)
}

.chip__ic svg {
    width: 19px;
    height: 19px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.chip--a {
    top: 4%;
    left: -6%
}

.chip--b {
    bottom: 6%;
    right: -4%;
    animation-delay: -3s
}

.live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--esmeralda-l);
    animation: ping 1.6s infinite
}

@keyframes ping {
    0% {
        box-shadow: 0 0 0 0 rgba(52,211,153,.7)
    }

    100% {
        box-shadow: 0 0 0 10px rgba(52,211,153,0)
    }
}

.cube {
    position: absolute;
    width: 58px;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 14px 14px rgba(0,0,0,.4))
}

.cube--1 {
    top: -6%;
    right: 14%
}

.cube--2 {
    bottom: -4%;
    left: 12%;
    width: 42px;
    animation-delay: -2s
}

@keyframes float {
    50% {
        transform: translateY(-14px)
    }
}

@media(max-width:960px) {
    .hero__in {
        grid-template-columns: 1fr
    }

    .stage {
        width: 100%;
        max-width: 540px;
        margin-inline: auto
    }

    .chip--a {
        left: 0
    }

    .chip--b {
        right: 0
    }
}

/* ---------- 10. Carretera BYD ---------- */
.byd .road {
    padding: 0;
    background: var(--abismo);
    border-block: 1px solid rgba(255,255,255,.08)
}

.marquee {
    overflow: hidden;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
    mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)
}

.marquee__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marq 34s linear infinite
}

    .marquee__track span {
        display: flex;
        align-items: center;
        gap: 48px;
        white-space: nowrap;
        font: 800 clamp(1.4rem,3vw,2.3rem)/1 var(--f-display);
        letter-spacing: -.02em;
        color: transparent;
        -webkit-text-stroke: 1px rgba(241,245,249,.4)
    }

        .marquee__track span:nth-child(3n+1) {
            color: var(--esmeralda-l);
            -webkit-text-stroke: 0
        }

        .marquee__track span::after {
            content: "";
            width: 12px;
            height: 12px;
            background: var(--ambar);
            transform: rotate(45deg)
        }

@keyframes marq {
    to {
        transform: translateX(-50%)
    }
}

.lane {
    position: relative;
    height: 160px;
    background: linear-gradient(#0d1838,#091127)
}

    .lane::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 64%;
        height: 4px;
        background: repeating-linear-gradient(90deg,rgba(245,158,11,.75) 0 40px,transparent 40px 80px)
    }

.veh {
    position: absolute;
    left: 0;
    bottom: 22px;
    width: 180px;
    height: 115px;
    animation: drive 14s linear infinite
}

    .veh img {
        animation: bump .45s ease-in-out infinite alternate
    }

.veh--2 {
    width: 115px;
    height: 85px;
    bottom: 62px;
    animation-duration: 10s;
    animation-delay: -5s
}

.veh--3 {
    width: 220px;
    height: 135px;
    bottom: 12px;
    animation-duration: 19s;
    animation-delay: -11s
}

.veh.slot--empty {
    min-height: 0
}

@keyframes drive {
    from {
        transform: translateX(-260px)
    }

    to {
        transform: translateX(calc(100vw + 40px))
    }
}

@keyframes bump {
    to {
        transform: translateY(-2px)
    }
}

/* ---------- 11. Biverso ---------- */
.world {
    overflow: hidden
}

.slot--world {
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: var(--r) var(--r) 0 0
}

    .slot--world img {
        object-fit: cover
    }

.world:hover .slot--world img {
    transform: scale(1.06)
}

.world__body {
    padding: 26px 30px 30px
}

    .world__body h3 {
        font-size: 1.5rem;
        margin: 12px 0 6px
    }

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font: 600 .72rem var(--f-head);
    letter-spacing: .14em;
    text-transform: uppercase
}

.tag--g {
    background: rgba(16,185,129,.14);
    color: #047857
}

.tag--b {
    background: rgba(37,99,235,.12);
    color: #1D4ED8
}

.link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    color: #1D4ED8;
    transition: transform .2s
}

    .link:hover {
        transform: translateX(4px)
    }

/* ---------- 12. Rastrónica ---------- */
.own__in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center
}

.own .intro {
    margin-bottom: 24px
}

.checks {
    display: grid;
    gap: 12px;
    margin-bottom: 30px !important
}

    .checks li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500
    }

    .checks svg {
        width: 26px;
        height: 26px;
        padding: 4px;
        border-radius: 8px;
        background: rgba(52,211,153,.18);
        stroke: var(--esmeralda-l);
        fill: none;
        stroke-width: 2.6;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.own__visual {
    position: relative
}

.halo {
    position: absolute;
    inset: 12% 16%;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    background: conic-gradient(from 0deg,var(--esmeralda),var(--azul),var(--violeta),var(--cian),var(--esmeralda));
    animation: spin 16s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}

.slot--app {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 9/11;
    margin-inline: auto
}

    .slot--app img {
        animation: float 8s ease-in-out infinite;
        filter: drop-shadow(0 40px 50px rgba(0,0,0,.5))
    }

@media(max-width:960px) {
    .own__in {
        grid-template-columns: 1fr
    }
}

/* ---------- 13. Proceso ---------- */
.process::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/fondos/ciudad-iso.jpg) center/cover no-repeat;
    opacity: .16
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px
}

    .steps::before {
        content: "";
        position: absolute;
        top: 44px;
        left: 6%;
        right: 6%;
        height: 2px;
        opacity: .6;
        background: repeating-linear-gradient(90deg,var(--esmeralda-l) 0 8px,transparent 8px 16px)
    }

.step__cube {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
    transition: transform .4s var(--ease)
}

.step:hover .step__cube {
    transform: translateY(-8px)
}

.step__cube svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 16px 16px rgba(0,0,0,.4))
}

.step__cube b {
    position: absolute;
    left: 0;
    right: 0;
    top: 12%;
    height: 36%;
    display: grid;
    place-items: center;
    font: 800 1.3rem var(--f-display);
    color: #0B1430
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 8px
}

.step p {
    opacity: .8;
    font-size: .96rem;
    max-width: 30ch
}

@media(max-width:860px) {
    .steps {
        grid-template-columns: 1fr 1fr
    }

        .steps::before {
            display: none
        }
}

@media(max-width:520px) {
    .steps {
        grid-template-columns: 1fr
    }
}

/* ---------- 14. Misión / Visión / Por qué ---------- */
.mv__n {
    font: 800 2.6rem/1 var(--f-display);
    background: linear-gradient(135deg,#059669,#2563EB);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.mv h3 {
    color: #047857;
    font-size: 1.6rem;
    margin: 14px 0 10px
}

.mv p {
    font-size: 1.05rem
}

.why .grid {
    margin-top: 34px
}

.ic {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex: none;
    background: linear-gradient(135deg,var(--azul),var(--esmeralda));
    margin-bottom: 16px
}

    .ic svg {
        width: 27px;
        height: 27px;
        stroke: #fff;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

/* ---------- 15. Contacto ---------- */
.ct__in {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 28px;
    align-items: start
}

.form {
    padding: 34px;
    display: grid;
    gap: 16px
}

    .form h2 {
        font-size: clamp(1.6rem,3vw,2.2rem) !important;
        margin-bottom: 6px !important
    }

    .form label {
        display: grid;
        gap: 6px;
        margin: 0;
        font-size: .88rem;
        font-weight: 500
    }

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field {
    width: 100%;
    padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-b);
    background: rgba(255,255,255,.06);
    color: var(--niebla);
    font: 1rem var(--f-body);
    transition: border-color .2s,background .2s,box-shadow .2s
}

    .field:focus {
        outline: none;
        border-color: var(--esmeralda-l);
        background: rgba(255,255,255,.1);
        box-shadow: 0 0 0 4px rgba(52,211,153,.15)
    }

    .field::placeholder {
        color: rgba(241,245,249,.45)
    }

    .field option {
        color: var(--tinta)
    }

.byd .field.invalid {
    outline: none;
    border-color: #f87171
}

.byd .field.valid.modified {
    outline: none
}

.byd .validation-message {
    color: #fca5a5;
    font-size: .8rem
}

.form .boton {
    justify-self: start
}

.form__ok {
    color: #6ee7b7;
    font-size: .9rem;
    min-height: 1.2em
}

.info {
    padding: 34px;
    display: grid;
    gap: 22px
}

.info__row {
    display: flex;
    align-items: center;
    gap: 16px
}

    .info__row .ic {
        margin: 0
    }

.info b {
    display: block;
    font-family: var(--f-head)
}

.info a:hover {
    color: var(--esmeralda-l)
}

@media(max-width:860px) {
    .ct__in {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .form__row {
        grid-template-columns: 1fr
    }

    .form {
        padding: 24px
    }
}

/* ---------- 16. Footer ---------- */
.pie {
    padding: 36px 0;
    background: var(--noche)
}

.pie__in {
    padding: 24px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: center
}

.pie__name {
    font: 600 .95rem var(--f-head)
}

.soc {
    display: flex;
    gap: 16px
}

    .soc a {
        opacity: .75;
        transition: opacity .2s,color .2s
    }

        .soc a:hover {
            opacity: 1;
            color: var(--esmeralda-l)
        }

.pie small {
    opacity: .65
}

/* ---------- 17. Aparición al hacer scroll ---------- */
.rv {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s var(--ease),transform .8s var(--ease)
}

    .rv.in {
        opacity: 1;
        transform: none
    }

/* ---------- 18. Pantalla de carga Blazor ---------- */
.byd-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    background: var(--noche);
    color: var(--niebla);
    font-family: var(--f-head)
}

    .byd-loader img {
        width: 72px;
        height: 72px;
        animation: float 2.4s ease-in-out infinite
    }

.byd-loader__bar {
    width: 200px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.12);
    overflow: hidden
}

    .byd-loader__bar::after {
        content: "";
        display: block;
        height: 100%;
        width: var(--blazor-load-percentage,0%);
        background: linear-gradient(90deg,var(--esmeralda),var(--cian));
        transition: width .2s
    }

.byd-loader .loading-progress-text {
    position: static;
    inset: auto;
    font-size: .85rem;
    opacity: .7
}

/* ---------- 19. Accesibilidad: menos movimiento ---------- */
@media(prefers-reduced-motion:reduce) {
    .byd *, .byd *::before, .byd *::after {
        animation: none !important;
        transition: none !important
    }

    .rv, .kw {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important
    }

    .rot > span:first-child {
        opacity: 1
    }

    .rot > span:not(:first-child) {
        display: none
    }

    .veh {
        display: none
    }
}
