/* ============================================================
   01. VARIABLES Y COLORES
   ============================================================ */
   
@charset "utf-8";
@import url("https://use.typekit.net/ewu6zgi.css");

:root {
    --font-general: "aptos", sans-serif;
    --ink: #000;
    --white: #FFF;
    --light: #f7f4ed;
    --color-1: #e5d8c3;
    --color-2: #cec0a5;
    --wa: #25D366;
    --vh: 1vh;
}

/* ============================================================
   02. ESTILOS GENERALES
   ============================================================ */


html {
    font-size: 10px;
    box-sizing: border-box;
    scroll-behavior: auto;
    font-optical-sizing: auto;
    font-style: normal;
}

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

body {
    margin: 0;
    font-family: var(--font-general);
    background: var(--paper);
    color: var(--ink);
    overscroll-behavior-y: none;
}


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

button {
    font: inherit;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: .2rem solid var(--color-1);
    outline-offset: .5rem;
}

.sr-only {
    position: absolute;
    width: .1rem;
    height: .1rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}


/* ============================================================
   03. ESTRUCTURA DE NAVEGACIÓN
   ============================================================ */

.track {
    position: relative;
    height: 100vh;
}

.stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: var(--light);
}

.stage-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translate3d(100vw, 0, 0);
    will-change: transform;
}


/* ============================================================
   04. INTRO / VIDEO
   ============================================================ */

.panel-intro {
    background: var(--ink);
    color: var(--white);
    transform: translate3d(0, 0, 0);
}

.intro-poster,
.intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.9) contrast(1.05) brightness(.67);
}

.intro-video {
    opacity: 0;
    transition: opacity .5s ease;
}

.panel-intro.video-ready .intro-video {
    opacity: 1;
}

/* Contraste detrás de los textos */

.intro-tint {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 8, .87) 0%,
            rgba(5, 9, 8, .74) 32%,
            rgba(5, 9, 8, .28) 72%,
            rgba(5, 9, 8, .09) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, .35),
            transparent 50%
        );
    pointer-events: none;
    opacity: .5;
}

/* Contenedor de los textos del video */

.intro-copy {
    position: absolute;
    top: 50%;
    left: clamp(3rem, 7.5vw, 14rem);
    width: min(85rem, 85%);
    height: min(66svh, 60rem);
    transform: translateY(-50%);
}

/* Titulares animados */

.intro-line {
    position: absolute;
    inset: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(9rem, 0, 0);
    filter: blur(1.2rem);
    pointer-events: none;
    will-change: opacity, transform, filter;
}

/* Primer titular visible desde el inicio */

.intro-line:first-child {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

.intro-line h1,
.intro-line p,
.intro-line .eyebrow {
    text-shadow: 0 .2rem 2.4rem rgba(0, 0, 0, .42);
}

.eyebrow {
    display: block;
    font-size: 1.2rem;
    letter-spacing: .4em;
    font-weight: 400;
    text-transform: uppercase;
}

.eyebrow.light {
    color: var(--white);
}

.intro-line h1 {
    margin: 2rem 0 2rem;
    font-size: clamp(4rem, 5vw, 8rem);
    letter-spacing: -.055em;
    font-weight: 450;
    line-height: 1.01;
    max-width: 96rem;
}

.intro-line p {
    margin: 0;
    color: rgba(255, 255, 255, .95);
    max-width: 54rem;
    line-height: 1.6;
    font-size: clamp(1.4rem, 1.18vw, 1.8rem);
}

/* Indicadores inferiores del video */

.intro-bottom {
    position: absolute;
    bottom: 5rem;
    left: clamp(3rem, 7.5vw, 14rem);
    right: clamp(3rem, 7.5vw, 14rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--white)
}

.intro-bottom .progress-line {
    display: block;
    background: color-mix(in srgb, var(--white) 25%, transparent);
    width: 15rem;
    height: .1rem;
    position: relative;
}

#video-progress {
    display: block;
    height: 100%;
    background: var(--white);
    width: 0%;
}

.intro-note {
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

.scroll-arrow {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    border: .1rem solid var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 300;
}


/* ============================================================
   05. NOSOTROS / ABOUT
   ============================================================ */

/* Estructura general */

.panel-about {
    background: var(--ink);
}

.vertical-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    will-change: transform;
}

.section-padding {
    padding-left: clamp(3rem, 7.5vw, 14rem);
    padding-right: clamp(3rem, 7.5vw, 14rem);
}

.top-space {
    padding-top: clamp(12rem, 15vh, 16rem);
}

.big-headline {
    font-size: clamp(4rem, 5vw, 8rem);
    line-height: 1.02;
    font-weight: 450;
    letter-spacing: -.055em;
    margin: 1.8rem 0 2.6rem;
    color: var(--light);
}

.section-headline {
    font-size: clamp(4rem, 4.7vw, 8rem);
    line-height: 1.05;
    font-weight: 450;
    letter-spacing: -.045em;
    margin: 1.8rem 0 2.5rem;
    color: var(--light);
}

.body-copy {
    max-width: 60rem;
    font-size: clamp(1.4rem, 1vw, 1.8rem);
    line-height: 1.68;
    color: var(--light);
}


/* 05.01 Quiénes somos */

.about-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    padding-bottom: 8rem;

    background-color: #000;
    background-image:url("assets/bg-about.jpg?v=1.2");
    background-position: right center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.about-hero-content {
    grid-column: 1;
    max-width: 78rem;
    z-index: 1;
}

.about-hero .eyebrow,
.about-hero .big-headline,
.about-hero .body-copy {
    color: var(--light);
}

/* ESTADÍSTICAS */

.stats-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 4rem;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 2.4rem;
    color: var(--light);
}

.stat-block strong {
    font-size: clamp(2rem, 2.5vw, 4rem);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.stat-block span {
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.6;
}



/* 05.02 Nuestro enfoque */

.about-focus {
    background-color: var(--color-2);
    background-image: url("assets/bg-enfoque.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 95svh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding-top: 10rem;
    padding-bottom: 10rem;
}

/* Contenido alineado en la segunda columna */

.about-focus-content {
    grid-column: 2;
}

.about-focus .section-headline {
    color: var(--ink);
}

.about-focus .body-copy {
    color: var(--ink);
}


/* 05.03 Propuesta de valor */

.about-values {
    background: var(--ink);
    color: var(--light);
    min-height: 86svh;
    padding-top: clamp(12rem, 14vh, 16rem);
    padding-bottom: clamp(10rem, 12vh, 16rem);
}

.about-values .section-headline {
    max-width: 90rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 8rem;
}

.value {
    border-top: .1rem solid rgba(255, 255, 255, .35);
    padding-top: 2rem;
}

.value-index {
    color: var(--color-2);
    font-size: 1rem;
    letter-spacing: .2em;
}

.value h3 {
    font-size: clamp(2rem, 2.5vw, 4rem);
    font-weight: 470;
    letter-spacing: -.03em;
    margin: 2rem 0 1.6rem;
}

.value p {
    font-size: 1.6rem;
    line-height: 1.68;
    color: var(--light);
    max-width: 35rem;
}

/* 05.04 Nuestro equipo */

.about-team {
    min-height: 100svh;
    padding-top: clamp(12rem, 14vh, 16rem);
    padding-bottom: clamp(10rem, 12vh, 16rem);
    background-color: var(--color-1);
    background-image: url("assets/texture-team.png?v=1.3");
    background-position: left bottom;
    background-size: auto 100%;
    background-repeat: no-repeat;
}
.about-team .section-headline {
color: var(--ink);
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 9rem);
    margin-top: 6rem;
}

.team-card {
    display: grid;
    grid-template-columns: 16rem 1fr;
    gap: 4rem;
    padding-top: 4rem;
}

.team-placeholder {
    width: 16rem;
    height: 20rem;
    overflow: hidden;
    background: var(--color-2);
}
.team-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.team-card h3 {
    font-size: clamp(2.4rem, 2.5vw, 3.6rem);
    margin: 0 0 .8rem;
    letter-spacing: -.03em;
    font-weight: 400;
    color: var(--ink);
}

.team-card small {
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
}

.team-card p {
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1.72;
    margin-top: 2rem;
}


.transition-hint {
    margin-top: 6rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    color: var(--ink);
    font-size: 1.2rem;
    letter-spacing: .08em;
    opacity: .5;
}

.transition-hint strong {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4rem;
    height: 4rem;
    border: .1rem solid var(--ink);
    color: var(--ink);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}


/* Indicador de scroll vertical - Inicio About */

.transition-hint-down {
    justify-content: flex-start;
    margin-top: 4rem;
    color: var(--white);
    opacity: .5;
}
.transition-hint-down strong {
    border: .1rem solid var(--white);
    color: var(--white);
}


/* ============================================================
   06. SERVICIOS
   ============================================================ */

.panel-services {
    background-color: var(--ink);
    background-image: url("assets/texture-services.png?v=1.3");
    background-position: right bottom;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.services-layout {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    align-items: center;
    gap: clamp(3.6rem, 6vw, 9.5rem);
    padding-top: clamp(11rem, 13vh, 16rem);
    padding-bottom: 8.5rem;
}

.services-intro {
    align-self: center;
    color: var(--light);
}

.services-intro .body-copy {
    max-width: 40rem;
     color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    gap: 1.2rem;
    height: min(65vh, 61rem);
    min-height: 43rem;
    color: var(--ink);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 2vw, 3.4rem);
    overflow: hidden;
    background: var(--light);
}

.service-card:nth-child(2) {
    background: var(--color-1);
}

.service-card:nth-child(3) {
    background: var(--color-2);
}

.service-card:nth-child(4) {
    background: var(--white);
}

.service-card .service-num {
    font-size: 11px;
    letter-spacing: .2em;
}

.service-card:nth-child(4) .service-num {
    
}

.service-card h3 {
    font-size: clamp(2rem, 2vw, 3rem);
    letter-spacing: -.035em;
    font-weight: 450;
    margin: 0 0 1.4rem;
    
}

.service-card p {
    font-size: 1.3rem;
    line-height: 1.62;
    margin: 0;
    max-width: 30rem;
    
}

.service-card:nth-child(4) p {
    
}


/* ============================================================
   07. PROYECTOS Y CLIENTES
   ============================================================ */

.panel-projects {
    background: var(--light);
}

/* 07.01 Clientes */

.projects-intro {
    min-height: 75svh;
    padding-top: clamp(14rem, 17vh, 18rem);
    display: grid;
    grid-template-columns: .87fr 1.13fr;
    gap: 10vw;
    align-items: center;
}
.projects-intro .section-headline {
color: var(--ink);
}
.projects-intro .body-copy {
color: var(--ink);
}
.clients-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.client-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10rem;
/*    border: .1rem solid #d8d4cb;*/
    padding: 2rem;
/*    background-color: #FFF;*/
}

.client-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* 07.02 Galería de proyectos */

.project-gallery {
    padding-bottom: 10rem;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: end;
    margin-bottom: 5rem;
}

.gallery-heading .section-headline {
    margin-bottom: 0;
}

.gallery-heading p {
    color: var(--light);
    font-size: 1.3rem;
    line-height: 1.65;
    max-width: 24rem;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 2rem;
}

.project-tile {
    margin: 0;
}

.project-tile .photo {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-tile figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.2rem;
    padding: 2rem 0 0;
}

.project-tile strong {
    font-size: clamp(1.6rem, 1.5vw, 2rem);
    font-weight: 500;
    letter-spacing: -.025em;
}



/* 07.03 Simulación de CMS */

.dynamic-row {
    display: flex;
    justify-content: center;
    margin-top: 6rem;
}

.demo-add {
    border: .1rem solid #666057;
    padding: 1.5rem 2.5rem;
    border-radius: 0;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .12em;
    color: var(--ink);
    text-transform: uppercase;
    transition: background .2s, color .2s;
}

.demo-add:hover {
    background: var(--ink);
    color: var(--white);
}



/* ============================================================
   08. CTA FINAL / CONTACTO
   ============================================================ */

.project-ending {
    background-color: var(--ink);
    background-image: url("assets/texture-contact.png?v=1.3");
    background-position: left bottom;
    background-size: auto 100%;
    background-repeat: no-repeat;
    min-height: 100svh;
    padding-top: clamp(14rem, 16vh, 20rem);
    padding-bottom: clamp(10rem, 12vh, 15rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

/* Distribución en tres columnas */

.project-ending-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 3vw, 5rem);
    row-gap: clamp(6rem, 10vh, 12rem);
    width: 100%;
}


/* Primera columna / Texto */

.cta-intro {
    min-width: 0;
    grid-row: 1 / span 2;
    align-self: center;
}
.cta-intro h2 {
    margin: 1.4rem 0 2rem;
    font-size: clamp(3.4rem, 5vw, 7.8rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 400;
}

/* Segunda y tercera columna / Contactos */

.cta-person {
    min-width: 0;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cta-person h3 {
    font-size: clamp(2rem, 2vw, 3rem);
    font-weight: 450;
    letter-spacing: -.035em;
    line-height: 1.2;
    margin: 0;
}

.cta-person .position {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.5;
    margin: 0 0 3rem;
}

.cta-person a {
    color: #f3f0e9;
    font-size: clamp(1.3rem, 1.1vw, 1.6rem);
    overflow-wrap: anywhere;
    border-bottom: .1rem solid rgba(255, 255, 255, .28);
    padding-bottom: .3rem;
}

.cta-person a:hover {
    color: var(--white);
    border-color: var(--white);
}

.cta-person a.wa-cta {
    color: var(--wa);
}

.cta-person a.wa-cta:hover {
    border-color: var(--wa);
}


/* Email corporativo */

.cta-email {
    grid-column: 2 / 4;
    align-self: start;
}

.cta-email a {
    display: inline-block;
    color: var(--white);
    font-size: clamp(2rem, 2vw, 3rem);
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: opacity .2s ease;
}

.cta-email a:hover {
    opacity: .65;
}


/* ============================================================
   09. HEADER Y MENÚ PRINCIPAL
   ============================================================ */

/* Menú con degradado negro a transparente */

.site-header {
    z-index: 120;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.8rem;
    padding: 21px clamp(3rem, 7.5vw, 14rem);
    color: var(--white);
    background: transparent;
    border: 0;
    box-shadow: none;
    isolation: isolate;
}

.site-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: clamp(15rem, 16vh, 20rem);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, .96) 0%,
        transparent 100%
    );
    pointer-events: none;
    opacity: .75;
}

/* Logotipo */

.brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: max-content;
}
.brand-logo {
    display: block;
    width: 25rem;
    height: auto;
}
.brand-mark {
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 650;
    letter-spacing: -.085em;
    color: var(--white);
}

.brand-mark em {
    font-style: normal;
    font-weight: 300;
    color: var(--white);
    padding-left: .3rem;
}

.brand-detail {
    padding-left: 2rem;
    border-left: .1rem solid rgba(255, 255, 255, .42);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 620;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: .74;
}

/* Navegación */

.nav {
    display: flex;
    gap: clamp(1.6rem, 2.2vw, 4rem);
    align-items: center;
    margin-left: auto;
}

.nav a {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 650;
    opacity: .7;
    position: relative;
    transition: opacity .2s ease;
}

.nav a:hover,
.nav a.active {
    opacity: 1;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: .1rem;
    background: currentColor;
}


/* ============================================================
   10. WHATSAPP DESPLEGABLE
   ============================================================ */

.wa-area {
    position: relative;
    flex: none;
}

.wa-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.3rem;
    height: 4.3rem;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    border: .1rem solid rgba(255, 255, 255, .46);
    transition: background .2s ease, border-color .2s ease;
}

.wa-toggle:hover,
.wa-toggle[aria-expanded="true"] {
    background: #25D366;
    border-color: var(--white);
}

.wa-toggle svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Ventana desplegable */

.wa-popover {
    position: absolute;
    z-index: 130;
    right: 0;
    top: calc(100% + 1.6rem);
    width: min(35rem, calc(100vw - 3rem));
    padding: 2.4rem;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 2rem 65rem rgba(0, 0, 0, .24);
    border: .1rem solid var(--white);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wa-popover[hidden] {
    display: none;
}

.wa-popover::before {
    content: '';
    position: absolute;
    right: 1.4rem;
    top: -.8rem;
    width: 1.4rem;
    height: 1.4rem;
    transform: rotate(45deg);
    background: var(--light);
    border-left: .1rem solid var(--white);
    border-top: .1rem solid var(--white);
}

.wa-popover h2 {
    margin: 0 0 .8rem;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -.045em;
}

.wa-popover p {
    margin: 0 0 1.6rem;
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1.5;
}

/* Opciones de contacto */

.wa-option {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1.6rem .8rem;
    transition: background .2s;
    background-color: var(--ink);
    color: var(--white);
    padding-left: 2rem;
}

.wa-option:hover {
    background-color: var(--wa);
}

.wa-option strong {
    font-size: 1.4rem;
    font-weight: 650;
}

.wa-option small {
    font-size: 1rem;
}

.wa-option span {
    font-size: 1.8rem;
    font-weight: 500;
}



/* ============================================================
   REDES SOCIALES
   ============================================================ */

.social-links {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex: none;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.3rem;
    height: 4.3rem;
    flex: 0 0 4.3rem;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    border: .1rem solid rgba(255, 255, 255, .46);
    transition: background .2s ease, border-color .2s ease;
}

.social-link svg {
    display: block;
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

/* Hover LinkedIn */

.social-link.linkedin:hover {
    background: #0A66C2;
    border-color: var(--white);
}

/* Hover Facebook */

.social-link.facebook:hover {
    background: #1877F2;
    border-color: var(--white);
}


/* ============================================================
   11. INDICADOR LATERAL DE NAVEGACIÓN
   ============================================================ */

.side-progress {
    position: fixed;
    z-index: 94;
    right: clamp(2rem, 3.8vw, 8rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .8rem;
    pointer-events: none;
}

/* Fondos claros */

.side-progress i {
    width: .3rem;
    height: 2rem;
    background: color-mix(in srgb, var(--ink) 25%, transparent);
    transition: background .2s;
}

.side-progress i.current {
    background: var(--ink);
}

/* Fondos oscuros */

.side-progress.on-dark i {
    background: color-mix(in srgb, var(--white) 25%, transparent);
}

.side-progress.on-dark i.current {
    background: var(--white);
}



/* ============================================================
   14. ACCESIBILIDAD - MOVIMIENTO REDUCIDO
   ============================================================ */

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

    .wa-toggle,
    .wa-option,
    .nav a,
    .intro-video,
    .side-progress i {
        transition: none;
    }

    .intro-line {
        filter: none !important;
    }

}




/* ============================================================
   15. LIGHTBOX DE PROYECTOS
   ============================================================ */

/* Contenedor principal */

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(1.2rem);
    -webkit-backdrop-filter: blur(1.2rem);
    color: var(--white);
}

/* Ocultar cuando el lightbox está cerrado */

.project-lightbox[hidden] {
    display: none;
}

/* Contenido */

.lightbox-content {
    width: 100%;
    max-width: 140rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Nombre del proyecto */

.lightbox-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-align: center;
}

/* Galería */

.lightbox-gallery {
    width: 100%;
    height: min(72svh, 85rem);
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) 5rem;
    align-items: center;
    gap: 2rem;
}

/* Imagen principal */

.lightbox-image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

/* Flechas */

.lightbox-prev,
.lightbox-next {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: .1rem solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 2.3rem;
    font-weight: 300;
    transition: background .3s ease, border-color .3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, .15);
    border-color: var(--white);
}

/* Botón cerrar */

.lightbox-close {
    position: absolute;
    top: 4rem;
    right: 4rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 3.6rem;
    font-weight: 300;
    line-height: 1;
    transition: opacity .3s ease;
}

.lightbox-close:hover {
    opacity: .5;
}

/* Contador */

.lightbox-counter {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .65);
}

.project-tile {
    cursor: pointer;
}

.project-tile:focus-visible {
    outline: .1rem solid var(--color-2);
    outline-offset: .5rem;
}
