/* ========================================
   VARIABLES
======================================== */

:root {
    --page: clamp(20px, 6.9vw, 80px);
    --max: 1200px;
    --gap: 18px;
    --r: 23px;

    --olive: #353d18;
    --cream: #f3e8d5;
    --ink: #111;
}


/* ========================================
   RESET / BASE
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--ink);

    font-family: "Manrope", Arial, sans-serif;
    font-weight: 500;
}

a {
    color: inherit;
}


/* ========================================
   CONTENEDORES GENERALES
======================================== */

.hero,
.section,
.cta,
.footer {
    width: min(calc(100% - 2 * var(--page)),
            var(--max));

    margin-left: auto;
    margin-right: auto;
}


/* ========================================
   HEADER
======================================== */

.site-header {
    width: min(calc(100% - 2 * var(--page)),
            var(--max));

    height: 82px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.69fr) var(--gap) minmax(0, 1fr);

    align-items: center;
}


/* ========================================
   HEADER - LOGO
======================================== */

.logo {
    grid-column: 1;

    display: flex;
    align-items: center;

    width: 140px;

    line-height: 0;

    text-decoration: none;
}

.logo img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* ========================================
   HEADER - NAVEGACIÓN
======================================== */

.main-nav {
    grid-column: 3;

    justify-self: center;

    display: flex;
    align-items: center;

    gap: 38px;

    font-size: 16px;
    font-weight: 400;

    white-space: nowrap;
}

.main-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 38px;

    color: #111;

    text-decoration: none;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        text-shadow 0.25s ease;
}

.main-nav a:hover {
    transform: translateY(-1px);

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15);
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 5px;

    width: 100%;
    height: 1px;

    background: #111;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.69fr) minmax(0, 1fr);

    gap: var(--gap);

    height: 540px;
}


/* ========================================
   HERO - CONTENEDORES
======================================== */

.hero-copy,
.hero-media {
    position: relative;

    overflow: hidden;

    border-radius: var(--r);
}

.hero-copy {
    background: var(--olive);
    color: var(--cream);
}


/* ========================================
   HERO - COPY
======================================== */

.copy {
    position: absolute;
    inset: 0;

    padding: 56px 48px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;
}

.copy.next {
    opacity: 0;
}

.copy .kicker {
    margin-bottom: 12px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

.copy h1 {
    margin: 0;

    font-size: clamp(42px, 5vw, 76px);

    line-height: 0.88;

    letter-spacing: -0.065em;
}

.copy .desc {
    max-width: 270px;

    margin: 22px 0;

    font-size: 12px;

    line-height: 1.4;
}


/* ========================================
   BOTÓN GENERAL
======================================== */

.button {
    display: inline-block;

    padding: 12px 17px;

    background: var(--cream);

    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}


/* ========================================
   HERO - IMAGEN
======================================== */

.hero-media {
    background: #ddd;
}

.media {
    position: absolute;
    inset: 0;
}

.media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.media.next {
    opacity: 0;
}


/* ========================================
   HERO - CONTADOR
======================================== */

.counter {
    position: absolute;

    top: 50%;
    right: -38px;

    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    font-size: 13px;
}


/* ========================================
   HERO - DOTS
======================================== */

.dots {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.dot {
    display: block;

    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #111;

    cursor: pointer;

    opacity: 0.35;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.dot:hover {
    transform: scale(1.4);
}

.dot.active {
    opacity: 1;

    transform: scale(1.35);
}


/* ========================================
   TEXTOS AUXILIARES
======================================== */

small {
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.13em;

    color: #777;
}


/* ========================================
   INTRO / SOMOS TERCA
======================================== */

.intro {
    display: grid;

    grid-template-columns:
        minmax(0, 0.69fr) var(--gap) minmax(0, 1fr);

    align-items: center;

    padding: 68px 0 72px;
}


/* ========================================
   INTRO - BLOQUE IZQUIERDO
======================================== */

.intro .rule {
    grid-column: 1;
    grid-row: 1;

    width: 1px;
    height: 72px;

    align-self: center;

    background: rgba(17, 17, 17, 0.35);
}

.intro>p {
    grid-column: 1;
    grid-row: 1;

    width: 300px;
    max-width: none;

    margin: 0 0 0 30px;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.55;

    color: rgba(17, 17, 17, 0.9);
}


/* ========================================
   INTRO - CONTENIDO DERECHO
======================================== */

.intro-content {
    grid-column: 3;
    grid-row: 1;

    position: relative;

    display: block;

    width: 100%;
}

.intro-title {
    width: 100%;

    align-self: center;
}

.intro small {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.16em;

    color: rgba(17, 17, 17, 0.55);
}

.intro h2 {
    margin: 0;

    font-size: clamp(48px, 5vw, 68px);

    line-height: 0.94;

    letter-spacing: -0.055em;

    font-weight: 700;

    color: var(--ink);
}


/* ========================================
   INTRO - TEXTO DESTACADO
======================================== */

.intro-content>strong {
    position: absolute;

    left: 70%;
    top: 50%;

    transform: translateY(-50%);

    width: 130px;
    max-width: 130px;

    margin: 0;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.45;

    letter-spacing: -0.01em;

    color: rgba(17, 17, 17, 0.9);
}


/* ========================================
   SERVICIOS
======================================== */

.services {
    width: min(calc(100% - 2 * var(--page)), var(--max));
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(170px, 0.95fr) minmax(220px, 1fr) minmax(320px, 1.75fr);

    column-gap: 18px;

    height: auto;
    min-height: 0;

    align-items: stretch;
    overflow: hidden;

    border-radius: var(--r);
    background: #f5f3ee;
}

.services-title {
    min-height: 0;
    padding: 20px 0 20px 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-title small {
    display: block;
    margin-bottom: 6px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.services-title h2 {
    margin: 0;

    font-size: 40px;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.services-list {
    width: 100%;
    height: auto;
    min-height: 0;

    padding: 50px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-item {
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(17, 17, 17, 0.45);
}

.service-item:first-child {
    border-top: 1px solid rgba(17, 17, 17, 0.45);
}

.service-trigger {
    width: 100%;
    height: 28px;
    min-height: 28px;
    padding: 0 2px;

    border: 0;
    background: transparent;
    color: var(--ink);

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.service-name {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ========================================
   NUESTROS SERVICIOS - ICONOS PNG
======================================== */

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    flex: 0 0 20px;
}

.service-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.service-symbol {
    padding-right: 3px;
    font-size: 16px;
    line-height: 1;
}

.service-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;

    transition:
        grid-template-rows 0.35s ease,
        opacity 0.25s ease;
}

.service-content p {
    min-height: 0;
    overflow: hidden;

    margin: 0;
    padding: 0;

    font-size: 9px;
    line-height: 1.35;
    color: rgba(17, 17, 17, 0.82);

    transition: padding 0.35s ease;
}

.service-item.active .service-content {
    grid-template-rows: 1fr;
    opacity: 1;
}

.service-item.active .service-content p {
    padding: 4px 14px 10px 24px;
}

/*
   La imagen no participa en el cálculo de altura.
   La lista define la altura de la tarjeta y la imagen
   simplemente rellena la tercera columna.
*/
.service-art {
    position: relative;

    min-width: 0;
    min-height: 0;

    padding: 0;
    overflow: hidden;
}

.service-art img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* ========================================
   PROYECTOS
======================================== */

.projects-title small {
    display: block;

    margin-bottom: 10px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: #707070;
}

.projects-title h2 {
    margin: 0;

    font-size: clamp(38px, 4vw, 56px);

    line-height: 0.98;

    letter-spacing: -2.5px;

    font-weight: 600;
}


/* ========================================
   PROYECTOS - CABECERA
======================================== */

.projects .heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 40px;

    margin-bottom: 34px;
}


/* ========================================
   PROYECTOS - BOTÓN
======================================== */

.projects .outline {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 230px;
    height: 48px;

    padding: 0 28px;

    margin-top: 28px;

    border: none;
    border-radius: 10px;

    background: var(--olive);

    color: var(--cream);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.projects .outline:hover {
    transform: translateY(-2px);

    background: #2e331b;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12);
}


/* ========================================
   PROYECTOS - GRID
======================================== */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    column-gap: 32px;
    row-gap: 30px;
}


/* ========================================
   PROYECTOS - CARD
======================================== */

.project-grid figure {
    min-width: 0;

    margin: 0;

    overflow: hidden;
}

.project-grid img {
    display: block;

    width: 100%;

    aspect-ratio: 1.72 / 1;

    object-fit: cover;

    border-radius: 18px;

    transform: scale(1);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.project-grid figure:hover img {
    transform: scale(1.025);
}

.project-grid figcaption {
    display: flex;
    align-items: baseline;

    gap: 4px;

    margin-top: 12px;

    font-size: 14px;

    line-height: 1.3;

    color: #222;
}

.project-grid figcaption b {
    font-weight: 700;
}

.project-grid figcaption span {
    font-weight: 400;
}


/* ========================================
   CÓMO TRABAJAMOS
======================================== */

.process {
    display: grid;

    grid-template-columns:
        1.35fr repeat(4, 1fr);

    gap: 38px;

    padding: 80px 0 60px;

    align-items: start;
}


/* ========================================
   PROCESO - TÍTULO
======================================== */

.process-title small {
    display: block;

    margin-bottom: 12px;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: #7b7b7b;
}

.process-title h2 {
    margin: 0;

    font-size: clamp(38px, 4vw, 53px);

    line-height: 0.94;

    letter-spacing: -2.5px;

    font-weight: 700;

    white-space: nowrap;
}


/* ========================================
   PROCESO - PASOS
======================================== */

.steps {
    grid-column: 2 / 6;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 34px;
}

.steps article {
    min-width: 0;
}

.steps article>b {
    display: block;

    margin-bottom: 12px;

    font-size: 60px;
    font-weight: 700;

    line-height: 0.9;

    letter-spacing: -2px;
}

.steps h3 {
    margin: 0 0 4px;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.1;
}

.steps p {
    max-width: none;

    margin: 0;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.28;
}


/* ========================================
   CTA
======================================== */

.cta {
    display: grid;

    grid-template-columns:
        1.22fr 0.92fr 1.48fr;

    min-height: 267px;

    margin-bottom: 30px;

    overflow: hidden;

    border-radius: 30px;

    background: var(--olive);

    color: var(--cream);
}

.cta>div {
    min-width: 0;
}


/* ========================================
   CTA - TÍTULO
======================================== */

.cta-title {
    padding: 38px 20px 38px 46px;

    display: flex;
    align-items: center;
}

.cta-title h2 {
    margin: 0;

    font-size: clamp(42px, 4vw, 54px);
    font-weight: 700;

    line-height: 0.88;

    letter-spacing: -2.5px;

    white-space: nowrap;
}


/* ========================================
   CTA - CONTENIDO
======================================== */

.cta-content {
    padding: 38px 25px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;
}

.cta-content p {
    max-width: 180px;

    margin: 0 0 22px;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.28;
}


/* ========================================
   CTA - BOTÓN
======================================== */

.cta .dark {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 25px;

    border-radius: 7px;

    background: #111;

    color: #fff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cta .dark:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.2);
}


/* ========================================
   CTA - IMAGEN
======================================== */

.cta-img {
    position: relative;

    height: 100%;

    padding: 0 !important;

    overflow: hidden;

    border-radius: 30px;
}

.cta-img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 30px;
}


/* ========================================
   FOOTER
======================================== */

/* ========================================
   FOOTER
======================================== */

.footer {
    width: min(calc(100% - 2 * var(--page)),
            var(--max));

    margin: 0 auto;

    padding: 42px 0 28px;

    display: grid;

    /*
       Referencia:
       TERCA ocupa aprox. 43%
       contenido derecho aprox. 50%
    */
    grid-template-columns:
        minmax(0, 0.88fr) minmax(0, 1.12fr);

    column-gap: 55px;

    align-items: end;
}


/* ========================================
   FOOTER - LOGO
======================================== */

.footer-logo {
    display: flex;

    align-items: flex-end;

    min-width: 0;
}

.footer-logo img {
    display: block;

    /*
       Evitamos que TERCA se haga tan grande
       como en la captura actual.
    */
    width: 100%;
    max-width: 410px;

    height: auto;
}


/* ========================================
   FOOTER - CONTENIDO DERECHO
======================================== */

.footer-right {
    min-width: 0;

    display: grid;

    grid-template-rows:
        auto auto;

    /*
       Acercamos iconos a navegación.
    */
    row-gap: 22px;

    align-self: end;

    padding-bottom: 4px;
}


/* ========================================
   FOOTER - NAVEGACIÓN
======================================== */

.footer-nav {
    display: grid;
    grid-template-columns:
        1fr 1fr 1fr 1.35fr;
    column-gap: 25px;
    align-items: start;
    transform: translateY(-15px);
}

.footer-nav a {
    color: #000;

    text-decoration: none;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.2;

    white-space: nowrap;
}


/* ========================================
   FOOTER - PARTE INFERIOR
======================================== */

.footer-bottom {
    display: grid;

    grid-template-columns:
        1fr 1fr 1fr 1.35fr;

    column-gap: 25px;

    align-items: center;

    transform: translateY(-12px);
}


/* ========================================
   FOOTER - REDES
======================================== */

.socials {
    /*
       Ocupan exactamente el ancho
       correspondiente a las primeras
       tres columnas de navegación.
    */
    grid-column: 1 / 4;

    width: 100%;

    padding-right: 0;

    display: flex;

    align-items: center;

    /*
       Los 5 iconos se reparten debajo de:
       Sobre Nosotros / Servicios / Proyectos
    */
    justify-content: space-between;
}

.socials a {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.socials a:hover {
    transform: translateY(-2px);

    opacity: 0.8;
}

.socials img {
    display: block;

    width: 27px;
    height: 27px;

    object-fit: contain;
}


/* ========================================
   FOOTER - COPYRIGHT
======================================== */

.footer-copy {
    grid-column: 4;

    min-height: 38px;

    padding-left: 13px;

    border-left:
        1px solid rgba(17, 17, 17, 0.55);

    display: flex;

    align-items: center;
}

.footer-copy small {
    display: block;

    margin: 0;

    color: #111;

    font-size: 10px;
    font-weight: 500;

    line-height: 1.45;

    letter-spacing: 0;

    white-space: nowrap;
}

/* ========================================
   RESPONSIVE
   Lo construiremos desde esta base limpia.
======================================== */

/* ========================================
   TABLET
   HEADER + HERO
======================================== */

/* ========================================
   RESPONSIVE
======================================== */


/* ========================================
   TABLET
   <= 1024px
======================================== */

@media (max-width: 1024px) {

    /* ====================================
       VARIABLES
    ==================================== */

    :root {
        --page: 40px;
        --gap: 14px;
        --r: 20px;
    }


    /* ====================================
       HEADER
    ==================================== */

    .site-header {
        height: 76px;

        grid-template-columns:
            minmax(0, 0.72fr) var(--gap) minmax(0, 1fr);
    }

    .logo {
        width: 120px;
    }

    .main-nav {
        gap: 22px;

        font-size: 14px;

        justify-self: end;
    }


    /* ====================================
       HERO
    ==================================== */

    .hero-grid {
        grid-template-columns:
            minmax(0, 0.78fr) minmax(0, 1fr);

        gap: var(--gap);

        height: 480px;
    }

    .copy {
        padding: 44px 34px;
    }

    .copy .kicker {
        margin-bottom: 10px;

        font-size: 9px;
    }

    .copy h1 {
        font-size: clamp(42px,
                6vw,
                62px);

        line-height: 0.9;
    }

    .copy .desc {
        max-width: 240px;

        margin: 18px 0;

        font-size: 11px;

        line-height: 1.45;
    }

    .hero .button {
        padding: 11px 15px;

        font-size: 10px;
    }


    /* CONTADOR */

    .counter {
        right: -30px;

        gap: 10px;

        font-size: 12px;
    }

    .dots {
        gap: 9px;
    }


    /* ====================================
       INTRO
    ==================================== */

    .intro {
        grid-template-columns:
            minmax(0, 0.78fr) var(--gap) minmax(0, 1fr);

        padding: 58px 0 62px;
    }

    .intro .rule {
        height: 64px;
    }

    .intro>p {
        width: auto;
        max-width: 280px;

        margin-left: 24px;

        font-size: 14px;

        line-height: 1.5;
    }

    .intro-content {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr) 120px;

        gap: 24px;

        align-items: center;
    }

    .intro small {
        margin-bottom: 7px;

        font-size: 11px;
    }

    .intro h2 {
        font-size: clamp(42px,
                5.8vw,
                58px);

        line-height: 0.94;
    }

    .intro-content>strong {
        position: static;

        transform: none;

        width: auto;
        max-width: 120px;

        font-size: 13px;

        line-height: 1.4;
    }


    /* ====================================
       SERVICIOS
    ==================================== */

    .services {
        grid-template-columns:
            minmax(150px, 0.9fr) minmax(180px, 0.95fr) minmax(280px, 1.75fr);

        column-gap: 18px;

        height: auto;
        min-height: 0;

        align-items: stretch;
    }

    .services-title {
        min-height: 0;
        padding: 12px 0 12px 24px;
    }

    .services-title small {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .services-title h2 {
        font-size: clamp(30px, 3.8vw, 40px);
        line-height: 0.92;
    }

    .services-list {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 8px 0;
    }

    .service-trigger {
        height: 28px;
        min-height: 28px;
        font-size: 11px;
    }

    .service-name {
        gap: 8px;
    }

    .service-icon {
        width: 16px;
        font-size: 12px;
    }

    .service-symbol {
        padding-right: 3px;
        font-size: 16px;
    }

    .service-content p {
        font-size: 9px;
        line-height: 1.35;
    }

    .service-item.active .service-content p {
        padding: 4px 14px 10px 24px;
    }

    .service-art {
        position: relative;
        grid-column: auto;

        min-width: 0;
        min-height: 0;
        height: auto;

        padding: 0;
        overflow: hidden;
    }

    .service-art img {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    /* ====================================
       PROYECTOS
    ==================================== */

    .projects {
        padding-top: 64px;
    }

    .projects .heading {
        gap: 30px;

        margin-bottom: 30px;
    }

    .projects-title small {
        font-size: 12px;
    }

    .projects-title h2 {
        font-size: clamp(40px,
                5vw,
                52px);
    }

    .projects .outline {
        min-width: 200px;

        height: 46px;

        padding: 0 22px;

        margin-top: 24px;

        font-size: 12px;
    }


    /* GRID 2 COLUMNAS */

    .project-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 24px;
        row-gap: 28px;
    }

    .project-grid figcaption {
        margin-top: 10px;

        font-size: 13px;
    }


    /* ====================================
       CÓMO TRABAJAMOS
    ==================================== */

    .process {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 70px 0 60px;
    }

    .process-title h2 {
        font-size: 50px;

        white-space: normal;
    }

    .process-title small {
        font-size: 13px;
    }


    /* PASOS 2 x 2 */

    .steps {
        grid-column: auto;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            44px 40px;
    }

    .steps article>b {
        margin-bottom: 10px;

        font-size: 52px;
    }

    .steps h3 {
        font-size: 17px;
    }

    .steps p {
        max-width: 260px;

        font-size: 15px;

        line-height: 1.35;
    }


    /* ====================================
       CTA
    ==================================== */

    .cta {
        grid-template-columns:
            1fr 1fr;

        min-height: 0;

        border-radius: 26px;
    }

    .cta-title {
        min-height: 240px;

        padding: 38px 20px 38px 38px;
    }

    .cta-title h2 {
        font-size: clamp(42px,
                5vw,
                52px);
    }

    .cta-content {
        min-height: 240px;

        padding: 38px 35px;
    }

    .cta-content p {
        max-width: 230px;

        font-size: 13px;
    }

    .cta-img {
        grid-column: 1 / -1;

        height: 300px;

        border-radius: 0 0 26px 26px;
    }

    .cta-img img {
        border-radius: 0 0 26px 26px;
    }


    /* ====================================
       FOOTER
    ==================================== */

    /* ======================================== 
    TABLET <= 1024px 
    ======================================== */

    /* FOOTER */
    @media (max-width: 1024px) {
        .footer {
            width: min(calc(100% - 2 * var(--page)), var(--max));
            max-width: none;
            grid-template-columns: 1fr;
            gap: 40px;
            padding: 55px 0 30px;
        }

        /* LOGO */
        .footer-logo {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        .footer-logo img {
            width: 300px;
            max-width: 85%;
            height: auto;
        }

        /* CONTENIDO */
        .footer-right {
            width: 100%;
            min-width: 0;
            gap: 35px;
        }

        /* NAVEGACIÓN */
        .footer-nav {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            justify-items: center;
            text-align: center;
            width: 100%;
            gap: 18px 24px;
        }

        /* EFECTO EMBUDO */
        .footer-nav a:nth-child(1) {
            transform: translateX(12%);
        }

        .footer-nav a:nth-child(2) {
            transform: translateX(-12%);
        }

        .footer-nav a:nth-child(3) {
            transform: translateX(-8%);
        }

        .footer-nav a:nth-child(4) {
            transform: translateX(8%);
        }

        /* FILA INFERIOR */
        .footer-bottom {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            gap: 25px;
        }

        /* REDES */
        .socials {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            max-width: 320px;
            padding-right: 0;
            gap: 24px;
        }

        /* COPYRIGHT */
        .footer-copy {
            display: flex;
            justify-content: center;
            align-items: center;
            width: min(100%, 320px);
            min-height: 0;
            padding: 16px 0 0;
            border-left: 0;
            border-top: 1px solid rgba(17, 17, 17, 0.4);
            text-align: center;
        }

        .footer-copy small {
            font-size: 10px;
            line-height: 1.6;
            white-space: normal;
            text-align: center;
        }
    }
}

/* ========================================
   MOBILE
   <= 700px
======================================== */

@media (max-width: 700px) {

    /* ====================================
       VARIABLES
    ==================================== */

    :root {
        --page: 20px;
        --gap: 12px;
        --r: 18px;
    }


    /* ====================================
       HEADER
    ==================================== */

    .site-header {
        height: 70px;

        display: flex;

        align-items: center;
        justify-content: space-between;
    }

    .logo {
        width: 100px;
    }

    .main-nav {
        display: none;
    }


    /* ====================================
       HERO
    ==================================== */

    .hero-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: var(--gap);

        height: auto;
    }


    /* COPY */

    .hero-copy {
        min-height: 400px;
    }

    .copy {
        padding: 40px 30px;
    }

    .copy .kicker {
        margin-bottom: 12px;

        font-size: 9px;
    }

    .copy h1 {
        font-size: clamp(48px,
                14vw,
                66px);

        line-height: 0.88;
    }

    .copy .desc {
        max-width: 280px;

        margin: 20px 0;

        font-size: 12px;

        line-height: 1.45;
    }

    .hero .button {
        padding: 12px 16px;

        font-size: 11px;
    }


    /* IMAGEN */

    .hero-media {
        height: 320px;
    }


    /* ====================================
       HERO - CONTADOR
    ==================================== */

    .counter {
        top: auto;
        right: 18px;
        bottom: 18px;

        transform: none;

        flex-direction: row;

        gap: 14px;

        padding: 8px 10px;

        border-radius: 20px;

        background:
            rgba(255, 255, 255, 0.85);

        backdrop-filter: blur(8px);

        font-size: 11px;
    }

    .dots {
        flex-direction: row;

        gap: 10px;
    }

    /*
       El punto sigue siendo pequeño visualmente,
       pero el botón tiene mayor área táctil.
    */

    .dot {
        position: relative;

        width: 8px;
        height: 8px;
    }

    .dot::before {
        content: "";

        position: absolute;

        inset: -8px;
    }


    /* ====================================
       INTRO
    ==================================== */

    .intro {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        padding: 55px 0;
    }


    /* Primero título */

    .intro-content {
        order: 1;

        display: flex;

        flex-direction: column;

        gap: 24px;
    }

    .intro-title {
        width: 100%;
    }

    .intro small {
        margin-bottom: 8px;

        font-size: 11px;
    }

    .intro h2 {
        font-size: clamp(46px,
                13vw,
                62px);

        line-height: 0.9;
    }


    /* TEXTO DESTACADO */

    .intro-content>strong {
        position: static;

        width: auto;
        max-width: 240px;

        transform: none;

        font-size: 14px;

        line-height: 1.4;
    }


    /* DESCRIPCIÓN */

    .intro>p {
        order: 2;

        position: relative;

        width: 100%;
        max-width: 420px;

        margin: 34px 0 0;

        padding-left: 22px;

        font-size: 14px;

        line-height: 1.55;
    }


    /*
       La regla original deja de participar
       del layout y la recreamos junto al texto.
    */

    .intro .rule {
        display: none;
    }

    .intro>p::before {
        content: "";

        position: absolute;

        left: 0;
        top: 4px;

        width: 1px;
        height: calc(100% - 8px);

        background:
            rgba(17, 17, 17, 0.35);
    }


    /* ====================================
       SERVICIOS
    ==================================== */

    .services {
        display: flex;

        flex-direction: column;

        border-radius: var(--r);
    }


    /* TÍTULO */

    .services-title {
        padding: 32px 26px 22px;
    }

    .services-title small {
        font-size: 10px;
    }

    .services-title h2 {
        font-size: 42px;
    }


    /* LISTA */

    .services-list {
        width: auto;

        padding: 0 26px 26px;
    }

    .service-trigger {
        min-height: 52px;

        font-size: 14px;
    }

    .service-name {
        gap: 10px;
    }

    .service-content p {
        font-size: 12px;

        line-height: 1.5;
    }

    .service-item.active .service-content p {
        padding:
            4px 24px 16px 30px;
    }


    /* IMAGEN */

    .service-art {
        width: 100%;
        height: auto;

        padding: 0 18px 18px;
    }

    .service-art img {
        position: static;
        inset: auto;

        width: 100%;
        height: auto;

        aspect-ratio: auto;

        object-fit: contain;
    }


    /* ====================================
       PROYECTOS
    ==================================== */

    .projects {
        padding-top: 55px;
    }

    .projects .heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 24px;

        margin-bottom: 30px;
    }

    .projects-title small {
        margin-bottom: 8px;

        font-size: 11px;
    }

    .projects-title h2 {
        font-size: clamp(40px,
                11vw,
                52px);

        letter-spacing: -2px;
    }

    .projects .outline {
        min-width: 0;

        width: 100%;

        height: 48px;

        margin-top: 0;

        font-size: 13px;
    }


    /* DOS COLUMNAS */

    .project-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            26px 12px;
    }

    .project-grid img {
        border-radius: 14px;
    }

    .project-grid figcaption {
        display: block;

        margin-top: 8px;

        font-size: 12px;

        line-height: 1.35;
    }

    .project-grid figcaption b,
    .project-grid figcaption span {
        display: inline;
    }


    /* ====================================
       PROCESO
    ==================================== */

    .process {
        display: block;

        padding: 60px 0;
    }

    .process-title {
        margin-bottom: 38px;
    }

    .process-title small {
        margin-bottom: 10px;

        font-size: 11px;
    }

    .process-title h2 {
        font-size: clamp(42px,
                12vw,
                54px);

        white-space: normal;
    }


    /* PASOS 2 x 2 */

    .steps {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            38px 22px;
    }

    .steps article>b {
        margin-bottom: 10px;

        font-size: 42px;
    }

    .steps h3 {
        margin-bottom: 6px;

        font-size: 15px;
    }

    .steps p {
        max-width: none;

        font-size: 13px;

        line-height: 1.4;
    }


    /* ====================================
       CTA
    ==================================== */

    .cta {
        display: flex;

        flex-direction: column;

        min-height: 0;

        margin-bottom: 20px;

        border-radius: 22px;
    }

    .cta-title {
        min-height: 0;

        padding:
            38px 28px 18px;
    }

    .cta-title h2 {
        font-size: clamp(44px,
                12vw,
                56px);

        line-height: 0.9;

        white-space: normal;
    }

    .cta-content {
        min-height: 0;

        padding:
            12px 28px 38px;
    }

    .cta-content p {
        max-width: 290px;

        margin-bottom: 22px;

        font-size: 13px;

        line-height: 1.4;
    }

    .cta .dark {
        min-height: 48px;

        padding: 0 20px;
    }


    /* IMAGEN CTA */

    .cta-img {
        width: 100%;
        height: 260px;

        border-radius:
            0 0 22px 22px;
    }

    .cta-img img {
        border-radius:
            0 0 22px 22px;
    }


    /* ====================================
       FOOTER
    ==================================== */


    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: min(calc(100% - 2 * var(--page)), var(--max));
        gap: 35px;
        padding: 45px 0 28px;
    }

    /* LOGO */
    .footer-logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-logo img {
        width: 260px;
        max-width: 85%;
        height: auto;
    }

    /* CONTENIDO */
    .footer-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 32px;
    }

    /* NAVEGACIÓN */
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 16px 8px;
    }

    /* EFECTO EMBUDO */
    .footer-nav a:nth-child(1) {
        transform: translateX(8%);
    }

    .footer-nav a:nth-child(2) {
        transform: translateX(-8%);
    }

    .footer-nav a:nth-child(3) {
        transform: translateX(-5%);
    }

    .footer-nav a:nth-child(4) {
        transform: translateX(5%);
    }

    /* FILA INFERIOR */
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 24px;
    }

    /* REDES */
    .socials {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 280px;
        padding: 0;
        gap: clamp(16px, 5vw, 24px);
    }

    /* COPYRIGHT */
    .footer-copy {
        display: flex;
        justify-content: center;
        align-items: center;
        width: min(100%, 280px);
        min-height: 0;
        padding: 14px 0 0;
        border: 0;
        border-top: 1px solid rgba(17, 17, 17, 0.4);
        text-align: center;
    }

    .footer-copy small {
        font-size: 10px;
        line-height: 1.6;
        white-space: normal;
        text-align: center;
    }
}


/* ========================================
   MOBILE PEQUEÑO
   <= 480px
======================================== */

@media (max-width: 480px) {

    /* ====================================
       VARIABLES
    ==================================== */

    :root {
        --page: 16px;
    }


    /* ====================================
       HEADER
    ==================================== */

    .site-header {
        height: 66px;
    }

    .logo {
        width: 92px;
    }


    /* ====================================
       HERO
    ==================================== */

    .hero-copy {
        min-height: 380px;
    }

    .copy {
        padding:
            36px 24px;
    }

    .copy h1 {
        font-size: clamp(44px,
                14vw,
                58px);
    }

    .copy .desc {
        max-width: 260px;
    }

    .hero-media {
        height: 280px;
    }

    .counter {
        right: 12px;
        bottom: 12px;
    }


    /* ====================================
       INTRO
    ==================================== */

    .intro {
        padding:
            48px 0;
    }

    .intro h2 {
        font-size: clamp(44px,
                14vw,
                56px);
    }


    /* ====================================
       SERVICIOS
    ==================================== */

    .services-title {
        padding:
            28px 22px 20px;
    }

    .services-title h2 {
        font-size: 38px;
    }

    .services-list {
        padding:
            0 22px 22px;
    }


    /* ====================================
       PROYECTOS
    ==================================== */

    /*
       En teléfonos muy angostos pasamos
       finalmente a una sola columna.
    */

    .project-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .project-grid img {
        aspect-ratio: 1.72 / 1;
    }

    .project-grid figcaption {
        font-size: 13px;
    }


    /* ====================================
       PROCESO
    ==================================== */

    .steps {
        gap:
            34px 16px;
    }

    .steps article>b {
        font-size: 38px;
    }

    .steps h3 {
        font-size: 14px;
    }

    .steps p {
        font-size: 12px;
    }


    /* ====================================
       CTA
    ==================================== */

    .cta-title {
        padding:
            34px 24px 16px;
    }

    .cta-title h2 {
        font-size: clamp(42px,
                13vw,
                52px);
    }

    .cta-content {
        padding:
            10px 24px 34px;
    }

    .cta-img {
        height: 230px;
    }


    /* ====================================
       FOOTER
    ==================================== */
    @media (max-width: 480px) {
        .footer {
            gap: 30px;
            padding: 38px 0 24px;
        }

        .footer-logo img {
            width: 230px;
        }

        .footer-right {
            gap: 28px;
        }

        .footer-nav {
            gap: 14px 8px;
        }

        .footer-nav a {
            font-size: 12px;
        }

        /* EMBUDO MÁS SUAVE */
        .footer-nav a:nth-child(1) {
            transform: translateX(6%);
        }

        .footer-nav a:nth-child(2) {
            transform: translateX(-6%);
        }

        .footer-nav a:nth-child(3) {
            transform: translateX(-4%);
        }

        .footer-nav a:nth-child(4) {
            transform: translateX(4%);
        }

        .socials {
            max-width: 250px;
            gap: clamp(12px, 4vw, 18px);
        }

        .footer-copy {
            width: min(100%, 250px);
            padding-top: 12px;
        }

        .footer-copy small {
            font-size: 9px;
        }
    }
}

/* TERCA: sistema tipográfico global */
body,
button,
input,
textarea,
select {
    font-family: 'Inter', Arial, sans-serif
}

h1,
h2,
h3,
h4,
h5,
h6,
.steps article>b {
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 800
}

.whatsapp-contact {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none
}

.whatsapp-icon {
    display: inline-block !important;
    width: 21px !important;
    height: 21px !important;
    object-fit: contain !important;
    flex: none
}

.mobile-section-index {
    display: none
}

.mobile-menu,
.mobile-menu-toggle {
    display: none
}

@media(max-width:700px) {
    .site-header {
        position: relative;
        z-index: 110
    }

    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 121;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        align-items: center;
        cursor: pointer
    }

    .mobile-menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: #111;
        transition: transform .25s, opacity .25s, background .25s
    }

    .mobile-menu-open .mobile-menu-toggle {
        position: fixed;
        right: var(--page);
        top: 13px
    }

    .mobile-menu-open .mobile-menu-toggle span {
        background: #f3e8d5
    }

    .mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg)
    }

    .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0
    }

    .mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg)
    }

    .mobile-menu {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 120;
        flex-direction: column;
        justify-content: space-between;
        overflow-y: auto;
        padding: clamp(100px, 18vh, 155px) var(--page) 38px;
        background: #303b16;
        color: #f3e8d5;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity .25s, transform .25s, visibility .25s
    }

    .mobile-menu.is-open {
        visibility: visible;
        opacity: 1;
        transform: none
    }

    .mobile-menu-links>a,
    .mobile-menu-about {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 19px 0;
        border: 0;
        border-bottom: 1px solid #ffffff60;
        background: none;
        color: inherit;
        text-decoration: none;
        text-align: left;
        font: 400 clamp(30px, 8vw, 43px)/1.1 'Inter', sans-serif
    }

    .mobile-menu-links small {
        font: 400 12px 'Inter', sans-serif;
        color: #c5c5b5
    }

    .mobile-menu-links>a:focus-visible,
    .mobile-menu-about:focus-visible {
        outline: 2px solid #c8f53a
    }

    .mobile-menu-submenu {
        padding: 14px 0 18px 18px
    }

    .mobile-menu-submenu[hidden] {
        display: none
    }

    .mobile-menu-submenu a {
        display: block;
        padding: 11px 0;
        color: #c8f53a;
        text-decoration: none;
        font-size: 19px
    }

    .mobile-menu>p {
        font-size: 11px;
        line-height: 1.6;
        letter-spacing: .07em;
        color: #d4d5c8
    }

    .mobile-menu-open {
        overflow: hidden
    }

    .mobile-section-index {
        display: inline
    }

    /* ------------------------------------------------------- */

    
/* ======================================
   SOMOS TERCA — MOBILE A + D
====================================== */

.intro {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding-top: 54px !important;
    padding-bottom: 62px !important;
}

.intro-content {
    display: contents !important;
}

.intro-title {
    order: 0 !important;
    width: 100% !important;
}

/* Identificador de sección */
.intro-title small {
    display: flex !important;
    align-items: center;
    gap: 12px;
    letter-spacing: .16em;
}

.intro-title small::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d1d1d1;
}

/* Título principal */
.intro h2 {
    font-size: clamp(43px, 11.3vw, 66px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em;
    margin: 36px 0 46px !important;
}

/* Mantener círculo original */
.intro .click-highlight {
    position: relative;
    white-space: nowrap;
}

/* Subtítulo desplazado */
.intro-content > strong {
    order: 1 !important;
    display: block !important;

    width: 78% !important;
    max-width: none !important;

    margin: 0 0 0 auto !important;
    padding: 0 0 32px !important;

    border: 0 !important;

    position: static !important;
    transform: none !important;

    font: 500 clamp(14px, 3.7vw, 17px)/1.45
          'Inter', sans-serif !important;

    letter-spacing: .01em;
}

/* Texto continuo */
.intro-content > strong br {
    display: none;
}

/* Descripción */
.intro > p {
    order: 2 !important;

    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 24px 0 0 !important;

    border-left: 0 !important;
    border-top: 1px solid #d6d6d6 !important;

    font: 400 clamp(14px, 3.7vw, 16px)/1.65
          'Inter', sans-serif !important;
}

/* Quitar decoración anterior */
.intro > .rule,
.intro > p::before {
    display: none !important;
}

.intro > p br {
    display: none;
}

/* Entrada sutil */
@keyframes introFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-title,
.intro-content > strong,
.intro > p {
    animation: introFadeUp .7s ease-out both;
}

.intro-content > strong {
    animation-delay: .12s;
}

.intro > p {
    animation-delay: .22s;
}

@media (prefers-reduced-motion: reduce) {
    .intro-title,
    .intro-content > strong,
    .intro > p {
        animation: none !important;
    }
}

/* ------------------------------------------------------------------- */

    .process-title small {
        display: flex;
        align-items: center;
        gap: 12px;
        letter-spacing: .13em
    }

    .process-title small:after {
        content: '';
        height: 1px;
        flex: 1;
        background: #999
    }

    .process .steps {
        display: block !important
    }

    .process .steps article {
        display: grid !important;
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr) !important;
        column-gap: 4% !important;
        align-items: center !important;
        position: relative !important;
        padding: 26px 0 32px !important;
        margin: 0 !important;
        border-bottom: 1px solid #999 !important;
        opacity: 1
    }

    .process .steps article>b {
        grid-row: 1 / span 2 !important;
        grid-column: 1 !important;
        font-size: clamp(76px, 22vw, 145px) !important;
        line-height: .95 !important;
        letter-spacing: -.09em;
        color: #353d18 !important;
        margin: 0 !important;
        align-self: center
    }

    .process .steps article h3 {
        grid-column: 2 !important;
        grid-row: 1 !important;
        font-size: clamp(16px, 4.5vw, 22px) !important;
        line-height: 1.15 !important;
        margin: 0 0 10px !important
    }

    .process .steps article p {
        grid-column: 2 !important;
        grid-row: 2 !important;
        font-size: clamp(12px, 3.5vw, 16px) !important;
        line-height: 1.45 !important;
        margin: 0 !important
    }

    .process .steps article p br {
        display: none
    }

    .process .steps article:after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        height: 3px;
        width: 0;
        background: #c8f53a;
        transition: width .75s ease
    }

    .process .steps article.step-visible:after {
        width: 26%
    }

    .process .steps article:last-child .click-highlight:after {
        border-width: 2px
    }
}

@media(max-width:380px) {
    .process .steps article {
        grid-template-columns: 38% 58% !important;
        gap: 4% !important
    }

    .process .steps article>b {
        font-size: 75px !important
    }
}

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

    .process .steps article:after,
    .mobile-menu,
    .mobile-menu-toggle span {
        transition: none !important
    }
}

/* CTA WhatsApp: estilo unificado en teléfonos */
@media(max-width:700px) {

    .hero .whatsapp-contact,
    .cta .whatsapp-contact.dark {
        display: inline-flex !important;
        width: auto !important;
        min-width: 155px !important;
        min-height: 46px !important;
        padding: 11px 17px !important;
        gap: 9px !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--cream) !important;
        color: var(--olive) !important;
        border: 0 !important;
        border-radius: 7px !important;
        font: 700 13px/1.2 'Inter', Arial, sans-serif !important;
        letter-spacing: 0 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        opacity: 1 !important;
        visibility: visible !important
    }

    .hero .whatsapp-contact .whatsapp-label,
    .cta .whatsapp-contact .whatsapp-label {
        display: inline !important;
        color: var(--olive) !important;
        font: inherit !important;
        opacity: 1 !important;
        visibility: visible !important
    }

    .hero .whatsapp-contact .whatsapp-icon,
    .cta .whatsapp-contact .whatsapp-icon {
        width: 20px !important;
        height: 20px !important;
        display: block !important;
        flex-shrink: 0 !important
    }
}

/* ========================================
   HERO - CTA ESTABLE MOBILE
======================================== */

/* ========================================
   HERO - INDICADORES MOBILE
======================================== */

@media (max-width: 700px) {

    /* Ocultar numeración */
    .hero .counter>b {
        display: none;
    }

    /* Contenedor de los puntos */
    .hero .counter {
        gap: 0;
        padding: 10px 14px;
    }

    /* Mantener los puntos en horizontal */
    .hero .dots {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

}

/* Oculto por defecto en desktop */
.hero-mobile-cta {
    display: none !important;
}

@media (max-width: 700px) {

    /* Ocultamos los CTA que genera el carrusel */
    .hero .copy .whatsapp-contact {
        display: none !important;
    }

    /* Dejamos espacio para el botón */
    .hero .copy {
        padding-bottom: 100px;
    }

    /* CTA independiente y estable */
    .hero .hero-mobile-cta {
        display: inline-flex !important;

        position: absolute;
        left: 24px;
        bottom: 30px;
        z-index: 10;

        opacity: 1 !important;
        visibility: visible !important;

        transform: none !important;
    }
}

/* ========================================
   COMO TRABAJAMOS - REDISEÑO MOBILE
======================================== */

@media (max-width: 700px) {

    /* Distribución general de los pasos */
    .process .steps {
        display: block !important;
    }

    .process .steps article {
        display: grid !important;
        grid-template-columns: 65px minmax(0, 1fr) !important;
        column-gap: 20px !important;
        align-items: start !important;

        position: relative !important;

        padding: 28px 0 32px !important;
        margin: 0 !important;

        border-bottom: 1px solid #999 !important;

        /* Estado inicial de la animación */
        opacity: 0 !important;
        transform: translateY(16px);

        transition:
            opacity 0.65s ease,
            transform 0.65s ease !important;
    }

    /* Animación de entrada */
    .process .steps article.step-visible {
        opacity: 1 !important;
        transform: translateY(0);
    }

    /* Números */
    .process .steps article>b {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;

        font-size: 48px !important;
        line-height: 1 !important;
        letter-spacing: -0.06em !important;

        color: #353d18 !important;

        margin: 0 !important;
        align-self: start !important;
    }

    /* Títulos */
    .process .steps article h3 {
        grid-column: 2 !important;
        grid-row: 1 !important;

        font-size: clamp(19px, 5vw, 23px) !important;
        line-height: 1.2 !important;

        margin: 0 0 12px !important;
    }

    /* Descripciones */
    .process .steps article p {
        grid-column: 2 !important;
        grid-row: 2 !important;

        font-size: 15px !important;
        line-height: 1.55 !important;

        margin: 0 !important;
    }

    .process .steps article p br {
        display: none !important;
    }

    /* Eliminar línea verde animada */
    .process .steps article::after {
        content: none !important;
        display: none !important;
    }

    /* Último paso sin separador inferior */
    .process .steps article:last-child {
        border-bottom: none !important;
    }

}

/* Adaptación a teléfonos pequeños */
@media (max-width: 380px) {

    .process .steps article {
        grid-template-columns: 55px minmax(0, 1fr) !important;
        column-gap: 16px !important;
    }

    .process .steps article>b {
        font-size: 42px !important;
    }

    .process .steps article p {
        font-size: 14px !important;
    }

}

/* Accesibilidad: reducir movimiento */
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {

    .process .steps article {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}

/* ========================================
   FOOTER - REDISEÑO MOBILE
======================================== */

@media (max-width: 700px) {

    /* Acercar los elementos del footer */
    .footer {
        gap: 24px !important;
        padding-top: 32px !important;
        padding-bottom: 24px !important;
    }

    /* Contenedor de navegación y redes */
    .footer-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 18px !important;
        width: 100% !important;
    }

    /* Navegación horizontal centrada */
    .footer-nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;

        flex-wrap: nowrap !important;
        width: 100% !important;

        gap: 0 !important;
        transform: none !important;
    }

    /* Enlaces */
    .footer-nav a {
        display: inline-flex;
        align-items: center;

        font-size: 12px !important;
        line-height: 1.3 !important;
        font-weight: 500;

        text-transform: uppercase;
        white-space: nowrap;

        transform: none !important;
    }

    /* Separadores verticales */
    .footer-nav a:not(:last-child)::after {
        content: "|";
        display: inline-block;
        margin: 0 9px;
        opacity: 0.55;
        font-weight: 400;
    }

    /* Redes y copyright */
    .footer-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        width: 100% !important;
        gap: 20px !important;

        transform: none !important;
    }

    /* Iconos sociales */
    .footer .socials {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        width: 100% !important;
        margin: 0 !important;
    }

    /* Copyright */
    .footer-copy {
        margin-top: 0 !important;
    }
}

/* Teléfonos pequeños */
@media (max-width: 380px) {

    .footer-nav a {
        font-size: 14px !important;
    }

    .footer-nav a:not(:last-child)::after {
        margin: 0 6px;
    }

}

/* ========================================
   TERCA - CTA WHATSAPP DESKTOP
======================================== */

@media (min-width: 701px) {

    /* Estilo compartido de ambos CTA */
    .hero .whatsapp-contact,
    .cta .whatsapp-contact.dark {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        min-width: 165px !important;
        min-height: 48px !important;

        padding: 12px 20px !important;
        gap: 11px !important;

        background: var(--cream) !important;
        color: var(--ink) !important;

        border: 0 !important;
        border-radius: 7px !important;

        font-family: "Inter", Arial, sans-serif !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;

        text-decoration: none !important;
        white-space: nowrap !important;

        box-sizing: border-box;
    }

    /* Mostrar texto CONTACTAR */
    .hero .whatsapp-contact .whatsapp-label,
    .cta .whatsapp-contact .whatsapp-label {
        display: inline !important;

        color: var(--ink) !important;

        font: inherit !important;
        text-transform: uppercase;
        letter-spacing: 0.02em;

        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Icono WhatsApp negro */
    .hero .whatsapp-contact .whatsapp-icon,
    .cta .whatsapp-contact .whatsapp-icon {
        display: block !important;

        width: 21px !important;
        height: 21px !important;

        flex-shrink: 0 !important;
        object-fit: contain !important;

        filter: brightness(0) !important;
    }

    /* Interacción del CTA final */
    .cta .whatsapp-contact.dark:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
    }

    /* Accesibilidad */
    @media (prefers-reduced-motion: reduce) {
        .cta .whatsapp-contact.dark {
            transition: none !important;
        }
    }

}

/* ========================================
   CORRECCION CTA DUPLICADO - DESKTOP
======================================== */

@media (min-width: 701px) {

    /* El CTA independiente es exclusivo de mobile */
    .hero .hero-mobile-cta {
        display: none !important;
    }

}

/* ========================================
   WHATSAPP - ICONO MONOCROMATICO DESKTOP
======================================== */

@media (min-width: 701px) {

    .hero .whatsapp-contact .whatsapp-icon,
    .cta .whatsapp-contact .whatsapp-icon {

        filter: grayscale(1) !important;

        width: 21px !important;
        height: 21px !important;

        object-fit: contain !important;
    }

}

/* ========================================
   TERCA - TARJETAS PROYECTOS DESKTOP
======================================== */

@media (min-width: 1025px) {

    /* Grilla de proyectos */
    .project-grid {
        column-gap: 34px;
        row-gap: 44px;
    }

    /* Contenedor de cada proyecto */
    .project-grid figure {
        min-width: 0;
        margin: 0;
        overflow: visible;
    }

    /* Imágenes */
    .project-grid img {
        display: block;
        width: 100%;

        aspect-ratio: 1.72 / 1;
        object-fit: cover;

        border-radius: 16px;

        transition:
            transform 0.45s ease,
            filter 0.45s ease;
    }

    /* Hover suave */
    .project-grid figure:hover img {
        transform: scale(1.015);
        filter: brightness(0.97);
    }

    /* Información del proyecto */
    .project-grid figcaption {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;

        column-gap: 8px;
        row-gap: 4px;

        margin-top: 17px;

        line-height: 1.4;
    }

    /* Nombre */
    .project-grid figcaption b {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.02em;

        color: #202020;
    }

    /* Categoría */
    .project-grid figcaption span {
        font-size: 13px;
        font-weight: 400;

        color: #777;
    }

}

/* Accesibilidad */
@media (min-width: 1025px) and (prefers-reduced-motion: reduce) {

    .project-grid img {
        transition: none;
    }

}

/* ========================================
   ALINEACION FOOTER CON CTA SUPERIOR
======================================== */

.footer {
    grid-template-columns:
        minmax(0, 1.15fr) minmax(0, 0.85fr) !important;

    column-gap: 24px !important;
}

.footer-right {
    min-width: 0 !important;
    width: 100% !important;
}

/* ========================================
   TERCA - FOOTER NAV MOBILE
   PREGUNTAS FRECUENTES
======================================== */

@media (max-width: 700px) {

    .footer-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;

        column-gap: 0 !important;
        row-gap: 14px !important;
    }

    /* Cuarto enlace en una segunda fila */
    .footer-nav a:nth-child(4) {
        flex: 0 0 100%;
        justify-content: center;
        text-align: center;
    }

    /* Quitar el separador después de Servicios */
    .footer-nav a:nth-child(3)::after {
        display: none !important;
    }

    /* El último enlace no lleva separador */
    .footer-nav a:nth-child(4)::after {
        display: none !important;
    }
}



/* =========================================
   SOMOS TERCA - MOBILE REFINADO
========================================= */

@media (max-width: 700px) {

    .intro {
        padding-top: 44px !important;
        padding-bottom: 42px !important;
        gap: 0 !important;
    }

    .intro-content {
        display: contents !important;
    }

    .intro-title {
        order: 0 !important;
        width: 100% !important;
    }

    /* Identificador */
    .intro-title small {
        margin: 0 !important;
    }

    /* Título */
    .intro h2 {
        font-size: clamp(38px, 10.5vw, 48px) !important;
        line-height: 1.07 !important;
        letter-spacing: -.055em !important;
        margin: 26px 0 25px !important;
    }

    /* Recuperar círculo verde */
    .intro .click-highlight::after {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        inset: -8% -5% !important;
        border: 3px solid #c8f53a !important;
        border-radius: 50% !important;
        transform: rotate(-8deg) !important;
        pointer-events: none;
    }

    /* Subtítulo */
    .intro-content > strong {
        order: 1 !important;
        width: 88% !important;
        max-width: none !important;

        margin: 0 0 0 12% !important;
        padding: 0 !important;
        border: none !important;

        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        letter-spacing: .025em !important;

        text-align: left !important;
    }

    /* Descripción */
    .intro > p {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;

        margin: 23px 0 0 !important;
        padding: 0 !important;

        border: none !important;

        font-size: 14px !important;
        line-height: 1.7 !important;
        letter-spacing: 0 !important;
    }

    /* Eliminar separadores */
    .intro > .rule,
    .intro > p::before {
        display: none !important;
    }

    /* Evitar animaciones anteriores */
    .intro-title,
    .intro-content > strong,
    .intro > p {
        animation: none !important;
    }
}


/* =========================================
   SOMOS TERCA - AJUSTE DE TEXTOS MOBILE
========================================= */

@media (max-width: 700px) {

    /* Subtítulo: aprovechar todo el ancho */
    .intro-content > strong {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        font-size: 12px !important;
        line-height: 1.5 !important;
        letter-spacing: 0 !important;
        text-align: left !important;
    }

    /* Descripción: evitar palabra huérfana */
    .intro > p {
        width: 100% !important;
        max-width: 100% !important;

        font-size: 13.5px !important;
        line-height: 1.65 !important;
        letter-spacing: -.01em !important;

        margin-top: 24px !important;
    }
}


/* =========================================
   SOMOS TERCA — MOBILE CENTRADO
========================================= */

@media (max-width: 700px) {

    .intro {
        padding-top: 44px !important;
        padding-bottom: 45px !important;
        align-items: center !important;
    }

    /* Mantener encabezado de sección */
    .intro-title {
        width: 100% !important;
        text-align: center !important;
    }

    .intro-title small {
        text-align: left !important;
    }

    /* Título centrado */
    .intro h2 {
        width: 100% !important;
        text-align: center !important;

        font-size: clamp(38px, 10.5vw, 48px) !important;
        line-height: 1.08 !important;

        margin: 28px 0 30px !important;
    }

    /* Subtítulo centrado */
    .intro-content > strong {
        width: 100% !important;
        max-width: 340px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        text-align: center !important;

        font-size: 12px !important;
        line-height: 1.55 !important;
        letter-spacing: .015em !important;
    }

    /* Descripción centrada */
    .intro > p {
        width: 100% !important;
        max-width: 350px !important;

        margin: 26px auto 0 !important;
        padding: 0 !important;

        text-align: center !important;

        font-size: 14px !important;
        line-height: 1.65 !important;
        letter-spacing: 0 !important;

        border: none !important;
    }

    /* Eliminar separadores anteriores */
    .intro > .rule,
    .intro > p::before {
        display: none !important;
    }
}


/* Salto de línea exclusivo para mobile */

.intro-mobile-break {
    display: none;
}

@media (max-width: 700px) {
    .intro > p br.intro-mobile-break {
        display: block !important;
    }
}




/* ========================================
   HERO DESKTOP - IDENTIDAD & BRANDING
======================================== 

@media (min-width: 701px) {

    .copy h1.hero-title-branding {
        font-size: clamp(36px, 4.2vw, 64px);
        line-height: 0.92;
        letter-spacing: -0.065em;
    }

    .copy h1.hero-title-branding .line {
        white-space: nowrap;
    }

} */


/* ========================================
   HERO DESKTOP - IDENTIDAD & BRANDING
======================================== */

@media (min-width: 701px) {

    .copy h1.hero-title-branding {
        font-size: clamp(42px, 5vw, 76px);
        line-height: 0.88;
        letter-spacing: -0.065em;
    }

    .copy h1.hero-title-branding .line {
        white-space: nowrap;
    }

}



/* ========================================
   SERVICIOS - ICONOS A LA DERECHA
======================================== */


/* ========================================
   NUESTROS SERVICIOS - ICONOS Y TEXTOS
   DISTRIBUCION SEGUN MOCKUP
======================================== */

.service-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 40px;
    height: auto;

    padding: 5px 2px;

    border: 0;
    background: transparent;
    color: var(--ink);

    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.service-name {
    display: inline-flex;
    align-items: center;

    flex: 1;
    min-width: 0;

    gap: 12px;
    white-space: nowrap;
}

.service-icon {
    display: block;

    width: 22px;
    height: 22px;
    flex: 0 0 22px;

    object-fit: contain;
}

.service-symbol {
    flex: 0 0 auto;

    margin-left: 12px;
    padding-right: 3px;

    font-size: 16px;
    line-height: 1;
}


/* ========================================
   NUESTROS SERVICIOS - AJUSTE TIPOGRAFICO
   DESKTOP
======================================== */

@media (min-width: 1025px) {

    /* Nombres de los servicios */
    .services .service-trigger {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
    }

    /* Descripciones desplegables */
    .services .service-content p {
        font-size: 11px;
        line-height: 1.5;
    }

    /* Un poco más de espacio para los textos */
    .services .service-item.active .service-content p {
        padding: 8px 14px 14px 34px;
    }

}


/* ========================================
   TERCA - NUESTROS SERVICIOS MOBILE
   ICONOS IGUALES A DESKTOP
======================================== */

@media (max-width: 700px) {

    /* Fila completa */
    .services .service-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        height: auto;
        min-height: 48px;

        padding: 8px 2px;
        gap: 12px;
    }

    /* Icono + nombre */
    .services .service-name {
        display: inline-flex;
        align-items: center;

        flex: 1;
        min-width: 0;

        gap: 12px;

        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
    }

    /* Iconos PNG */
    .services .service-icon {
        display: block;

        width: 22px;
        height: 22px;
        flex: 0 0 22px;

        object-fit: contain;
    }

    /* Compatibilidad si conservaste el span */
    .services .service-icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Signo + a la derecha */
    .services .service-symbol {
        flex: 0 0 auto;

        margin-left: auto;
        padding-right: 3px;

        font-size: 18px;
        line-height: 1;
    }

    /* Descripciones desplegables */
    .services .service-content p {
        font-size: 11px;
        line-height: 1.5;
    }

    .services .service-item.active .service-content p {
        padding: 8px 14px 14px 34px;
    }
}


/* ========================================
   HOME - SEPARACION ENTRE SECCIONES
   SOLO DESKTOP
======================================== */

@media (min-width: 1025px) {

    /* Espacio debajo de Nuestros Servicios */
    .services {
        margin-bottom: 80px;
    }

}
