:root {
    --blue: #0D4DA1;
    --blue2: #1F57B8;
    --navy: #1E2A7A;
    --red: #E1251B;
    --orange: #F26B21;
    --dark: #38363B;
    --soft: #FBF6F5;
    --text: #3A3A3A;
    --muted: #6B6B6B;
    --white: #fff;
    --grad: linear-gradient(90deg, #7B2FD0 0%, #5A55C8 45%, #3FA66A 100%);
    --head: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: inherit
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px))
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--text);
    background: #fff;
    font-size: 15px;
    line-height: 1.65
}

img,
svg {
    max-width: 100%;
    display: block
}

h1,
h2,
h3 {
    font-family: var(--head);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -.02em
}

p {
    margin: 0
}

.wrap {
    width: min(1100px, 100% - 2.5rem);
    margin-inline: auto
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px
}

.btn {
    display: inline-block;
    font-family: var(--body);
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    padding: .85rem 1.8rem;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: 0 8px 18px -8px rgba(90, 60, 200, .6);
    transition: filter .2s
}

.btn:hover {
    filter: brightness(1.1)
}

/* IMÁGENES */
.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0
}

.logo-img {
    height: 56px;
    width: auto
}

/* NAV */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 0 #eee
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1
}

.logo .m {
    font-family: var(--head);
    font-weight: 900;
    font-size: 38px;
    color: var(--blue);
    position: relative;
    letter-spacing: -2px
}

.logo .m::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    width: 6px;
    height: 6px;
    background: var(--red);
    box-shadow: 7px -5px 0 var(--red), 0 -9px 0 #F7A11A, 14px 3px 0 #2BB0E6
}

.logo .w {
    font-family: var(--head);
    font-weight: 800;
    font-size: 12px;
    color: var(--blue);
    letter-spacing: .04em;
    margin-top: 2px
}

.menu {
    display: flex;
    gap: 2.4rem;
    list-style: none;
    margin: 0;
    padding: 0
}

.menu a {
    text-decoration: none;
    font-family: var(--head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8A8A8A
}

.menu a:hover,
.menu a.active {
    color: var(--red)
}

.burger {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--blue);
    padding: .4rem
}

@media (max-width:920px) {
    .burger {
        display: block
    }

    .menu {
        position: fixed;
        inset: 80px 0 auto;
        margin-top: env(safe-area-inset-top, 0px);
        flex-direction: column;
        gap: 0;
        background: #fff;
        padding: .5rem 1.5rem 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
        transform: translateY(-130%);
        visibility: hidden;
        transition: transform .25s, visibility .25s
    }

    .menu.open {
        transform: none;
        visibility: visible
    }

    .menu a {
        display: block;
        padding: .9rem 0;
        border-bottom: 1px solid #eee
    }
}

/* HERO */
.hero {
    position: relative;
    min-height: 620px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    /* background: linear-gradient(rgba(25, 75, 160, .78), rgba(25, 75, 160, .78)),
        radial-gradient(circle at 20% 70%, #5f86c6 0 8%, transparent 9%), radial-gradient(circle at 75% 65%, #5f86c6 0 10%, transparent 11%),
        linear-gradient(180deg, #9fb6db 0%, #6e8fc6 55%, #3d5f9e 100%) */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(25, 75, 160, .72); */
    z-index: 1
}

.hero .in {
    position: relative;
    z-index: 2;
    padding: 4rem 1.25rem
}

.hero h1 {
    font-size: clamp(1.9rem, 4.4vw, 3.2rem);
    font-weight: 800;
    max-width: 15em;
    margin-inline: auto
}

.hero .btn {
    margin-top: 2rem;
    padding: .9rem 2.2rem;
    font-weight: 500;
    background: linear-gradient(90deg, #3E9E5E, #2E7FA3)
}

/* SOFT SECTIONS */
.soft {
    background: var(--soft);
    position: relative;
    overflow: hidden
}

.soft::before {
    content: "";
    position: absolute;
    left: -180px;
    top: 80px;
    width: 520px;
    height: 900px;
    border-radius: 50%;
    background: #F3ECEC;
    z-index: 0
}

.stripes {
    position: absolute;
    right: 60px;
    width: 120px;
    height: 160px;
    background: repeating-linear-gradient(-45deg, #E7E1E1 0 2px, transparent 2px 9px);
    border-radius: 50%;
    z-index: 0
}

.split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 5rem 0
}

.split h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: var(--dark)
}

.split p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 1.1rem
}

.photo {
    aspect-ratio: 7/6;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(13, 77, 161, .35), rgba(13, 77, 161, .55)), linear-gradient(135deg, #d7dfea, #8aa1c4)
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.5px);
    background-size: 6px 6px
}

.center {
    text-align: center;
    margin-top: 1.8rem
}

.list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0
}

.list li {
    display: flex;
    gap: .6rem;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: .9rem
}

.list li::before {
    content: "✖";
    color: #C0262D;
    font-weight: 700;
    flex: none
}

.vline {
    width: 2px;
    height: 32px;
    background: var(--blue);
    margin: 0 auto
}

@media (max-width:820px) {
    .split {
        grid-template-columns: 1fr;
        padding: 3.5rem 0
    }

    .split.rev .photo {
        order: 2
    }
}

.band {
    position: relative;
    z-index: 1;
    background: var(--dark);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
    margin-bottom: 4rem
}

.band h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800
}

.band a {
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    font-family: var(--head);
    font-weight: 700;
    font-size: 14px;
    padding: .9rem 2.4rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3)
}

/* SERVICES CAROUSEL */
.services {
    background: var(--blue);
    color: #fff;
    padding: 4.5rem 0 4rem;
    text-align: center;
    position: relative
}

.services h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 800;
    padding: 0 1rem
}

.track-wrap {
    position: relative;
    margin-top: 2.5rem
}

.track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 calc(50% - 160px)
}

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

.slide {
    flex: 0 0 320px;
    scroll-snap-align: center;
    height: 380px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(40, 80, 160, .55), rgba(10, 30, 80, .85)), linear-gradient(135deg, #7f9bc9, #2a3f6e)
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(40, 80, 160, .55), rgba(10, 30, 80, .85));
    z-index: 1
}

.slide h3 {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 800;
    padding: 1.3rem 1.4rem 0
}

.slide p {
    z-index: 2;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(20, 20, 25, .88);
    font-size: 13px;
    line-height: 1.6;
    padding: 1rem;
    color: #eee
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 2;
    padding: .5rem
}

.arrow.l {
    left: .3rem
}

.arrow.r {
    right: .3rem
}

@media (min-width:900px) {
    .track {
        padding: 0 calc(50% - 480px)
    }
}

/* TEAM */
.team {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(180deg, #f2f2f2, #fff 40%)
}

.team h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--dark)
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem
}

.card {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    min-height: 170px;
    overflow: hidden
}

.card div:first-child {
    padding: 1.5rem 0 1rem 1.3rem
}

.card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark)
}

.card p {
    color: var(--muted);
    font-size: 12px;
    margin-top: .6rem
}

.face {
    background: linear-gradient(180deg, #fff 30%, #e9edf3);
    display: flex;
    align-items: flex-end;
    justify-content: center
}

.face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top
}

@media (max-width:900px) {
    .team-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:580px) {
    .team-grid {
        grid-template-columns: 1fr
    }
}

/* PROCESS */
.process::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(35, 45, 150, .82); */
    z-index: 1
}

.process>*:not(.bg) {
    position: relative;
    z-index: 2
}

.process {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
    /* background: linear-gradient(rgba(35, 45, 150, .85), rgba(35, 45, 150, .85)), linear-gradient(180deg, #5c6ac9, #1d2768) */
}

.process h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 800
}

.process .sub {
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-top: 1.4rem
}

.process .sub b {
    color: #F2C14E
}

.process .ghost {
    position: absolute;
    z-index: 2
}

.ghost {
    position: absolute;
    left: 24%;
    top: 22%;
    font-family: var(--head);
    font-weight: 900;
    font-size: 110px;
    color: rgba(30, 40, 120, .55);
    line-height: .8;
    pointer-events: none
}

.ghost small {
    display: block;
    font-size: 34px;
    letter-spacing: .02em
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    list-style: none;
    padding: 0
}

.steps .n {
    font-family: var(--head);
    font-weight: 800;
    font-size: 18px
}

.steps h3 {
    font-size: 18px;
    font-weight: 800;
    margin-top: .4rem
}

.steps p {
    font-size: 13px;
    color: #dfe3ff;
    margin-top: .6rem
}

@media (max-width:860px) {
    .steps {
        grid-template-columns: 1fr 1fr
    }

    .ghost {
        display: none
    }
}

@media (max-width:480px) {
    .steps {
        grid-template-columns: 1fr
    }
}

/* FOOTER */
footer {
    position: relative;
    padding: 3.5rem 0 3rem;
    text-align: center;
    overflow: hidden;
    min-height: 260px
}

.pix {
    position: absolute;
    width: 150px;
    height: 200px;
    background-image:
        linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 1) 50%),
        repeating-linear-gradient(0deg, #3A6FC4 0 14px, #8CB0E6 14px 18px, #2A57A6 18px 30px, #fff 30px 34px);
    background-size: 18px 18px, 100% 100%;
    opacity: .8;
    mask-image: linear-gradient(180deg, transparent, #000 40%)
}

.pix.l {
    left: 0;
    top: 0;
    mask-image: linear-gradient(90deg, #000, transparent)
}

.pix.r {
    right: 0;
    top: 20px;
    mask-image: linear-gradient(270deg, #000, transparent)
}

footer ul {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem 2.4rem;
    list-style: none;
    margin: 0;
    padding: 0
}

footer a {
    text-decoration: none;
    font-family: var(--head);
    font-weight: 700;
    color: #888;
    font-size: 14px
}

footer a.active {
    color: var(--orange)
}

.lang {
    display: flex;
    flex-direction: column;
    line-height: 1.4
}

footer small {
    position: relative;
    display: block;
    color: #bbb;
    font-size: 12px;
    margin-top: 4rem
}

.top {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(242, 107, 33, .45);
    z-index: 40
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}

/* ===== PROCESO ===== */
.process {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 5rem 0 5rem;
    overflow: hidden;
    background: #24309A
}

.process::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(36, 48, 154, .88), rgba(28, 36, 120, .95)); */
    z-index: 1
}

.process>*:not(.bg) {
    position: relative;
    z-index: 2
}

.vline--light {
    background: #fff;
    margin: -5rem auto 3rem
}

.process-ghost {
    position: absolute;
    left: 12%;
    top: -10px;
    width: 220px;
    opacity: .12;
    pointer-events: none
}

.process h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 800
}

.process-sub {
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-top: 1.2rem;
    letter-spacing: .02em
}

.process-sub b {
    color: #F7C04A
}

.steps {
    list-style: none;
    padding: 0;
    margin: 3.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative
}

.steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 8px, transparent 8px 16px)
}

.step {
    position: relative;
    padding: 0 .5rem
}

.step-n {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--head);
    font-weight: 800;
    font-size: 1.3rem;
    color: #24309A;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .15);
    transition: background .25s, color .25s, transform .25s
}

.step:hover .step-n {
    background: #F7C04A;
    transform: scale(1.08)
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 800
}

.step p {
    font-size: 13.5px;
    color: #D9DEFF;
    margin-top: .6rem;
    max-width: 24ch;
    margin-inline: auto
}

.process-cta {
    margin-top: 3rem
}

@media (max-width:860px) {
    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1.5rem
    }

    .steps::before {
        display: none
    }

    .process-ghost {
        display: none
    }
}

@media (max-width:520px) {
    .steps {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 0
    }

    .step {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 1rem;
        padding: 0 0 2rem
    }

    .step-n {
        grid-row: span 2;
        margin: 0
    }

    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 27px;
        top: 62px;
        bottom: 6px;
        width: 2px;
        background: rgba(255, 255, 255, .3)
    }

    .step p {
        margin-inline: 0;
        max-width: none
    }
}

/* ===== CONTACTO ===== */
.contact {
    background: var(--soft);
    padding: 5rem 0
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 3rem;
    align-items: start
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark)
}

.contact-info p {
    color: var(--muted);
    margin-top: 1rem
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1rem
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--text)
}

.contact-info li span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    flex: none
}

.contact-info a {
    color: inherit;
    text-decoration: none
}

.contact-info a:hover {
    color: var(--blue)
}

.contact-form {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    border-top: 4px solid var(--blue)
}

.contact-form label {
    display: grid;
    gap: .35rem;
    font-family: var(--head);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 1rem
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font: 400 15px var(--body);
    color: var(--text);
    padding: .8rem .9rem;
    border: 1px solid #DDD;
    border-radius: 6px;
    background: #fff;
    width: 100%
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(13, 77, 161, .15)
}

.contact-form .invalid {
    border-color: #C0262D
}

.contact-form textarea {
    resize: vertical
}

.contact-form .btn {
    border: 0;
    cursor: pointer;
    width: 100%
}

.contact-form .btn:disabled {
    opacity: .6;
    cursor: wait
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

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

.form-status {
    margin-top: 1rem;
    font-weight: 500;
    min-height: 1.4em
}

.form-status.ok {
    color: #1E7A3E
}

.form-status.err {
    color: #C0262D
}

@media (max-width:820px) {
    .contact-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:520px) {
    .row2 {
        grid-template-columns: 1fr;
        gap: 0
    }

    .contact-form {
        padding: 1.4rem
    }
}



/* animaciones */

/* ===== ANIMACIONES GENERALES ===== */
@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes netDrift {
    from {
        transform: scale(1.05)
    }

    to {
        transform: scale(1.15) translateX(-2%)
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(242, 107, 33, .5)
    }

    50% {
        box-shadow: 0 0 0 12px rgba(242, 107, 33, 0)
    }
}

@keyframes lineGrow {
    from {
        transform: scaleY(0)
    }

    to {
        transform: scaleY(1)
    }
}

@keyframes dash {
    to {
        background-position: 32px 0
    }
}

.hero .bg {
    animation: netDrift 20s ease-in-out infinite alternate
}

.hero-anim {
    opacity: 0;
    animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) .2s forwards
}

.hero-anim--2 {
    animation-delay: .5s
}

/* Aparición al hacer scroll */
[data-reveal] {
    opacity: 0;
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s)
}

[data-reveal="up"] {
    transform: translateY(40px)
}

[data-reveal="left"] {
    transform: translateX(-50px)
}

[data-reveal="right"] {
    transform: translateX(50px)
}

[data-reveal="zoom"] {
    transform: scale(.92)
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none
}

/* Líneas verticales que "caen" */
.vline {
    transform-origin: top;
    transform: scaleY(0)
}

.vline.is-visible {
    animation: lineGrow .8s ease forwards
}

/* Botones */
.btn {
    transition: transform .25s, filter .25s, box-shadow .25s
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px -10px rgba(90, 60, 200, .7)
}

.band a {
    transition: transform .25s
}

.band a:hover {
    transform: translateY(-3px) scale(1.03)
}

.top {
    animation: pulse 2.5s infinite;
    transition: transform .25s
}

.top:hover {
    transform: translateY(-4px)
}

/* Fotos */
.photo img {
    transition: transform 1.2s cubic-bezier(.2, .7, .2, 1)
}

.photo:hover img {
    transform: scale(1.06)
}

/* ===== EQUIPO ===== */
.team {
    padding: 5rem 0 5.5rem;
    background: linear-gradient(180deg, #F3F4F7 0%, #fff 55%);
    text-align: center
}

.team .vline {
    margin: -5rem auto 3rem
}

.team-head h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--dark)
}

.team-head p {
    color: var(--muted);
    max-width: 44ch;
    margin: .8rem auto 0;
    font-size: 16px
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: left
}

.member {
    --tint: #E9F0FA;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 30px -12px rgba(13, 77, 161, .18);
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
    transform-style: preserve-3d;
    will-change: transform;
}

.member:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 28px 50px -18px rgba(13, 77, 161, .35)
}

/* Foto: el fondo claro de la imagen se funde con el tono de la tarjeta */
.member-photo {
    position: relative;
    aspect-ratio: 4/4.3;
    background: var(--tint);
    overflow: hidden;
    isolation: isolate
}

.member-photo::before {
    /* círculo de marca detrás de la persona */
    content: "";
    position: absolute;
    left: 50%;
    bottom: -22%;
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateX(-50%) scale(.9);
    background: radial-gradient(circle, #CFE0F7 0%, #DDE8F8 60%, transparent 61%);
    z-index: -1;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.member-photo::after {
    /* barra de acento inferior */
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: var(--grad);
    transition: width .5s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    mix-blend-mode: multiply;
    /* elimina el fondo blanco/gris de la foto */
    transform: translateY(6px);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.member:hover .member-photo img {
    transform: translateY(0) scale(1.04)
}

.member:hover .member-photo::before {
    transform: translateX(-50%) scale(1)
}

.member:hover .member-photo::after {
    width: 100%
}

/* Información */
.member-info {
    padding: 1.4rem 1.5rem 1.6rem
}

.member-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark)
}

.member-role {
    display: inline-block;
    margin-top: .5rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    background: #EAF1FB;
    padding: .3rem .75rem;
    border-radius: 999px
}

.member-info p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: .9rem
}

.member-links {
    display: flex;
    gap: .6rem;
    margin-top: 1.2rem
}

.member-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--blue);
    border: 1px solid #D6E2F3;
    transition: background .25s, color .25s, border-color .25s, transform .25s
}

.member-links a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-2px)
}

.member-links svg {
    width: 17px;
    height: 17px
}

.team-dots {
    display: none
}

/* Tablet */
@media (max-width:960px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .team-grid .member:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 1rem);
        justify-self: center
    }
}

/* Móvil: carrusel deslizable */
@media (max-width:620px) {
    .team {
        padding: 4rem 0
    }

    .team-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-inline: -1.25rem;
        padding: .5rem 1.25rem 1.5rem;
    }

    .team-grid::-webkit-scrollbar {
        display: none
    }

    .team-grid .member,
    .team-grid .member:last-child {
        flex: 0 0 80%;
        max-width: none;
        scroll-snap-align: center
    }

    .team-dots {
        display: flex;
        justify-content: center;
        gap: .5rem
    }

    .team-dots span {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #C9D5E8;
        transition: width .3s, background .3s
    }

    .team-dots span.is-active {
        width: 24px;
        background: var(--blue)
    }
}

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

    .member,
    .member-photo img,
    .member-photo::before,
    .member-photo::after {
        transition: none
    }
}

/* Línea punteada de pasos en movimiento */
.steps::before {
    animation: dash 1.2s linear infinite
}

/* Menú: subrayado animado */
.menu a {
    position: relative
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 100%;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .3s
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1)
}

/* ===== SLIDER DE SERVICIOS ===== */
.track {
    padding-block: 30px;
    align-items: center
}

.slide {
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s, box-shadow .6s;
    transform: scale(.88);
    filter: saturate(.6) brightness(.8);
    cursor: pointer
}

.slide .bg {
    transition: transform 1.4s cubic-bezier(.2, .7, .2, 1)
}

.slide::before {
    transition: background .6s
}

/* Tarjeta activa (centrada) o con el mouse encima */
.slide.is-active,
.slide:hover {
    transform: scale(1);
    filter: none;
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, .55);
    z-index: 2
}

.slide.is-active .bg,
.slide:hover .bg {
    transform: scale(1.12)
}

.slide.is-active::before,
.slide:hover::before {
    background: linear-gradient(180deg, rgba(13, 77, 161, .35), rgba(5, 20, 60, .9))
}

/* Título sube un poco */
.slide h3 {
    transition: transform .5s
}

.slide.is-active h3,
.slide:hover h3 {
    transform: translateY(4px)
}

/* Caja de texto: crece desde abajo y revela todo el texto */
.slide p {
    max-height: 4.8em;
    overflow: hidden;
    opacity: .85;
    transition: max-height .7s cubic-bezier(.2, .7, .2, 1), padding .5s, background .5s, opacity .5s, left .5s, right .5s, bottom .5s;
    border-top: 3px solid transparent
}

.slide.is-active p,
.slide:hover p {
    max-height: 16em;
    opacity: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.3rem 1.2rem;
    background: rgba(15, 18, 30, .94);
    border-top-color: #F7C04A
}

/* Barra de progreso del autoplay */
.slide-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #F7C04A;
    z-index: 3
}

.slide.is-active .slide-progress {
    animation: progress var(--autoplay, 5s) linear forwards
}

.track:hover .slide-progress {
    animation-play-state: paused
}

@keyframes progress {
    to {
        width: 100%
    }
}

/* Indicadores */
.dots-nav {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.5rem
}

.dots-nav button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: width .35s, background .35s;
    padding: 0
}

.dots-nav button.is-active {
    width: 30px;
    background: #fff
}

.arrow {
    transition: transform .25s, opacity .25s;
    opacity: .7
}

.arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2)
}

/* En pantallas táctiles el texto se expande solo en la tarjeta activa */
@media (hover:none) {
    .slide:hover:not(.is-active) {
        transform: scale(.88);
        filter: saturate(.6) brightness(.8)
    }

    .slide:hover:not(.is-active) p {
        max-height: 4.8em
    }
}

/* Accesibilidad: sin animaciones si el usuario lo pide */
@media (prefers-reduced-motion:reduce) {

    [data-reveal],
    .hero-anim,
    .vline {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }
}

/*  */
/* Servicios */
/*  */

/* ===== SERVICIOS ===== */
.services {
    --card: clamp(290px, 32vw, 420px);
    --card-h: clamp(460px, 48vw, 560px);
    --gold: #F7C04A;
    background: radial-gradient(900px 400px at 50% 0%, #1A62C4 0%, transparent 70%), var(--blue);
    color: #fff;
    padding: 5rem 0 4rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.services-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    font-weight: 800
}

.services-head p {
    color: #C7D7F2;
    margin: .9rem auto 0;
    max-width: 46ch;
    font-size: 16px
}

.track-wrap {
    position: relative;
    margin-top: 2.8rem;
    outline: none
}

.track-wrap:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px
}

.track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 30px calc(50% - var(--card) / 2);
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

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

/* Tarjeta */
.slide {
    flex: 0 0 var(--card);
    height: var(--card-h);
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    text-align: left;
    background: #0A2A63;
    transform: scale(.9);
    filter: brightness(.72) saturate(.75);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s, box-shadow .6s;
}

.slide .bg {
    transition: transform 1.6s cubic-bezier(.2, .7, .2, 1)
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 40, 100, .15) 0%, rgba(6, 20, 55, .55) 45%, rgba(4, 12, 35, .95) 100%)
}

/* Hover en tarjetas laterales (solo desktop): se aclaran sin expandirse */
@media (hover:hover) {
    .slide:not(.is-active):hover {
        transform: scale(.92);
        filter: brightness(.9) saturate(.9)
    }
}

/* Tarjeta activa */
.slide.is-active {
    transform: scale(1);
    filter: none;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08)
}

.slide.is-active .bg {
    transform: scale(1.1)
}

/* Contenido */
.slide-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.6rem 1.6rem 1.8rem
}

.slide-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    backdrop-filter: blur(6px);
    margin-bottom: .9rem
}

.slide h3 {
    font-size: clamp(1.25rem, 1.9vw, 1.55rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0
}

.slide p {
    font-size: 15px;
    line-height: 1.6;
    color: #D6E0F2;
    margin-top: .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .4s;
}

/* Botón de la tarjeta: oculto hasta que esté activa */
.slide-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.2rem;
    font-family: var(--head);
    font-weight: 700;
    font-size: 14px;
    color: #0A2A63;
    text-decoration: none;
    background: var(--gold);
    padding: .75rem 1.3rem;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .45s .15s, transform .45s .15s, background .25s;
}

.slide-link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s
}

.slide-link:hover {
    background: #fff
}

.slide-link:hover::after {
    transform: translateX(3px) rotate(45deg)
}

/* Panel del texto crece en la activa */
.slide.is-active .slide-body {
    background: linear-gradient(180deg, rgba(8, 18, 45, 0), rgba(8, 18, 45, .6) 18%);
}

.slide.is-active p {
    -webkit-line-clamp: 7;
    color: #fff
}

.slide.is-active .slide-link {
    opacity: 1;
    transform: none;
    pointer-events: auto
}

.slide.is-active .slide-body::before {
    content: "";
    position: absolute;
    left: 1.6rem;
    top: 0;
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    animation: barIn .6s .1s both;
}

@keyframes barIn {
    from {
        width: 0
    }

    to {
        width: 48px
    }
}

/* Barra de progreso del autoplay */
.slide-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: var(--gold);
    z-index: 3
}

.slide.is-active .slide-progress {
    animation: progress var(--autoplay, 6s) linear forwards
}

.services.is-paused .slide-progress {
    animation-play-state: paused
}

@keyframes progress {
    to {
        width: 100%
    }
}

/* Controles */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.8rem;
    padding: 0 1rem
}

.slider-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    transition: background .25s, color .25s, transform .25s;
}

.slider-btn:hover {
    background: #fff;
    color: var(--blue);
    transform: scale(1.06)
}

.slider-btn:active {
    transform: scale(.95)
}

.dots-nav {
    display: flex;
    gap: .55rem
}

.dots-nav button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, .35);
    transition: width .35s, background .35s
}

.dots-nav button:hover {
    background: rgba(255, 255, 255, .7)
}

.dots-nav button.is-active {
    width: 32px;
    background: var(--gold)
}

.slider-count {
    font-family: var(--head);
    font-weight: 700;
    font-size: 14px;
    color: #C7D7F2;
    min-width: 4.5ch;
    font-variant-numeric: tabular-nums
}

/* Responsive */
@media (max-width:640px) {
    .services {
        --card: 82vw;
        --card-h: min(520px, 120vw);
        padding: 4rem 0 3rem
    }

    .track {
        gap: 14px;
        -webkit-mask-image: none;
        mask-image: none
    }

    .slide {
        transform: scale(.94)
    }

    .slide-body {
        padding: 1.3rem 1.3rem 1.5rem
    }

    .slider-btn {
        width: 44px;
        height: 44px
    }

    .slider-count {
        display: none
    }
}

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

    .slide,
    .slide .bg,
    .slide-link {
        transition: none
    }

    .slide-progress {
        display: none
    }
}