/**
 * Landing UI — estilos por sección y componentes reutilizables.
 *
 * Depende de variables.css. Mobile-first, accesible, minimalista.
 * Componentes: .btn-primary, .btn-secondary, .card (beneficios/testimonios).
 */

/* ========== Componentes reutilizables ========== */

/* Navbar alert superior — mismo fondo que el header (branding --background-color) */
.top-alert {
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.8125rem;
    line-height: 1.4;
    padding: 0.4rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: none;
    box-shadow: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.top-alert__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.top-alert__text {
    opacity: 0.95;
}

.top-alert__link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.top-alert__link:hover {
    color: var(--color-primary);
    text-decoration-thickness: 2px;
}

/* Primary Button — CTA; ~18px desktop, compact */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 1.25rem;
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
    background-color: var(--color-primary);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--shadow-base);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Secondary Button — mismo tamaño/tipo que primary; fondo = gris de cards (--surface) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 1.25rem;
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    color: var(--text-primary);
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--shadow-base);
}

.btn-secondary:hover {
    background-color: var(--surface-color);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Card — beneficios y testimonios */
.card {
    background: var(--background);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-base);
    padding: var(--spacing-md);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========== Layout base landing ========== */

/* Navbar: siempre visible en top; fondo transparente en top, sólido al scrollear */
body.landing-page .site-header {
    position: fixed;
    top: var(--top-alert-height, 0px);
    /* Cierra el “hairline” entre alert y navbar (subpíxel / rendondeo); la alerta queda encima (z-index) */
    margin-top: -1px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    border: none;
    box-shadow: none;
    transition: background-color 0.3s ease;
}
body.landing-page.navbar-visible .site-header {
    background-color: var(--background-color);
}

/* Top alert: transparente con scroll en top; al scrollear mismo fondo que el header */
body.landing-page:not(.navbar-visible):not(.nav-overlay-open) .top-alert {
    background-color: transparent;
}

body.landing-page:not(.navbar-visible):not(.nav-overlay-open) .top-alert__text {
    color: var(--text-primary);
    opacity: 0.95;
}

body.landing-page:not(.navbar-visible):not(.nav-overlay-open) .top-alert__link {
    color: var(--text-primary);
}

body.landing-page:not(.navbar-visible):not(.nav-overlay-open) .top-alert__link:hover {
    color: var(--color-primary);
}

body.landing-page.navbar-visible:not(.nav-overlay-open) .top-alert {
    background-color: var(--background-color);
}

body.landing-page.navbar-visible:not(.nav-overlay-open) .top-alert__text {
    color: var(--text-primary);
    opacity: 0.95;
}

body.landing-page.navbar-visible:not(.nav-overlay-open) .top-alert__link {
    color: var(--text-primary);
}

body.landing-page.navbar-visible:not(.nav-overlay-open) .top-alert__link:hover {
    color: var(--color-primary);
}

/* Menú overlay abierto: mismo tono que el panel (#131313), también al scrollear (evita franja blanca) */
body.landing-page.nav-overlay-open .top-alert {
    background-color: #131313;
}

body.landing-page.nav-overlay-open .top-alert__text,
body.landing-page.nav-overlay-open .top-alert__link {
    color: #fff;
}

body.landing-page.nav-overlay-open .top-alert__link:hover {
    color: #fff;
}

body.landing-page.nav-overlay-open .site-header {
    background-color: #131313;
}

/* Altura exacta = offset del header (evita rendijas de 1px entre alert y navbar) */
body.landing-page .top-alert {
    height: var(--top-alert-height, 32px);
    min-height: var(--top-alert-height, 32px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
}

body.landing-page .top-alert__inner {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.landing-page {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--background);
    --top-alert-height: 32px;
}

.landing-page .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.landing-section {
    padding: var(--spacing-2xl) 0;
}

.landing-section--alt {
    background-color: var(--surface);
    padding: var(--spacing-2xl) 0;
}

/* Services section — sin capa decorativa (el gradiente vive en .landing-hero-stack) */
.landing-section--services {
    position: relative;
}

/* Section titles — ref: 41px / 39px line-height / 700 */
.section-heading {
    font-family: var(--font-heading);
    font-size: 41px;
    line-height: 39px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    text-transform: uppercase;
}

.section-heading--narrow {
    max-width: 26ch;
    margin-left: auto;
    margin-right: auto;
}

.section-heading__highlight {
    display: inline-block;
    padding: 0.2em 0.4em;
    margin-left: 0.2em;
    border-radius: 1px;
    margin-top:0.1em;
    background: var(--surface-secondary);
    color: var(--color-primary);
    font-size: 1em;
    letter-spacing: 0.08em;
    line-height: 1;
    vertical-align: middle;
}

@media (max-width: 767px) {
    /* Títulos de sección: desktop 41px; en móvil más legibles y proporcionados */
    .section-heading {
        font-size: clamp(1.5rem, 4vw + 0.65rem, 1.875rem);
        line-height: 1.12;
        letter-spacing: -0.02em;
        margin-bottom: var(--spacing-lg);
    }

    .section-heading--narrow {
        max-width: min(26ch, 100%);
    }

    .section-heading__highlight {
        font-size: 1em;
        letter-spacing: 0.06em;
    }
}

/* ========== 1) Hero / Above-the-Fold ========== */

/* Home: hero + franja de logos comparten el mismo gradiente (una sola capa) */
.landing-hero-stack {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.landing-hero-stack::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 0 0, rgba(255, 76, 62, 0.14) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(148, 163, 184, 0.2) 0, transparent 55%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0, rgba(248, 250, 252, 0.95) 40%, rgba(248, 250, 252, 1) 100%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.0) 0,
            rgba(255, 255, 255, 0.0) 10px,
            rgba(255, 76, 62, 0.04) 10px,
            rgba(255, 76, 62, 0.04) 12px
        );
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 0;
}

.landing-hero-stack > .landing-hero,
.landing-hero-stack > .social-proof {
    position: relative;
    z-index: 1;
}

.landing-hero {
    --fixed-top-offset: calc(var(--header-height) + var(--top-alert-height, 0px));
    min-height: calc(100vh - var(--fixed-top-offset));
    padding-top: var(--fixed-top-offset);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    text-align: center;
    background: transparent;
}

.landing-hero > .container {
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: grid;
    gap: var(--spacing-md);
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Hero principal: siempre por encima de .section-heading (41px) y .about-heading */
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 6.25vw, 4.35rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.08;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-content .hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.375rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .hero-cta {
    margin-top: var(--spacing-md);
}

.hero-cta__micro {
    flex-basis: 100%;
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text-secondary);
}

/* About: dos acciones alineadas al hero home (mismo bloque tipográfico) */
.hero-cta--about {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Subtítulo del hero Nosotros: mismo cuerpo que home; un poco más de ancho por copy largo */
.about-page .hero-content .hero-subtitle {
    max-width: min(52ch, 100%);
}

/* Mobile (< tablet): hero legible, CTA táctil — desktop/tablet sin cambios.
   Padding lateral: .container en base.css (--layout-gutter-mobile). */
@media (max-width: 767px) {
    .landing-hero {
        /* Altura estable con barra de navegación móvil (iOS/Android) */
        min-height: calc(100svh - var(--fixed-top-offset));
        min-height: calc(100dvh - var(--fixed-top-offset));
        padding-bottom: var(--spacing-lg);
    }

    .hero-inner {
        gap: var(--spacing-sm);
    }

    .hero-content h1 {
        font-size: clamp(2.45rem, 6.5vw + 0.45rem, 3.15rem);
        line-height: 1.06;
        letter-spacing: -0.025em;
    }

    .hero-content .hero-subtitle {
        font-size: 1.0625rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .hero-cta:not(.hero-cta--about) {
        display: flex;
        justify-content: center;
    }

    .hero-cta:not(.hero-cta--about) .btn-primary {
        width: auto;
        max-width: none;
    }

    .hero-cta--about {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .hero-cta--about .btn-primary,
    .hero-cta--about .btn-secondary {
        width: 100%;
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Hero ya no incluye media/imagen derecha */

/* ========== 1b) Social proof bar (logos clientes) ========== */

.social-proof {
    padding: 0;
    background: transparent;
}

/* Solo en home: aire entre logos y la siguiente sección (beneficios) */
.landing-hero-stack .social-proof {
    padding-bottom: var(--spacing-xl);
}

.social-proof .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-block: 0;
    padding-inline: var(--spacing-md);
}

@media (max-width: 767px) {
    .social-proof .container {
        padding-inline: var(--layout-gutter-mobile);
    }
}

.social-proof__inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.social-proof__label {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    opacity: 0.9;
    text-align: center;
}

.social-proof__label span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.social-proof__rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.social-proof__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.social-proof__track {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    padding: 0.05rem 0;
    width: max-content;
}

.social-proof__track--forward {
    animation: social-proof-scroll 55s linear infinite;
}

.social-proof__track--reverse {
    animation: social-proof-scroll 55s linear infinite reverse;
}

@media (prefers-reduced-motion: reduce) {
    .social-proof__track--forward,
    .social-proof__track--reverse {
        animation: none;
        transform: none;
    }
}

.social-proof__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-proof__logo img {
    height: 56px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.05);
    opacity: 0.9;
}

@media (min-width: 768px) {
    .social-proof__logo img {
        height: 72px;
        max-width: 216px;
    }
}

.social-proof__logo:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.social-proof__logo:hover img {
    filter: grayscale(0);
}

@keyframes social-proof-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========== 2) Beneficios / Value Blocks ========== */

.benefits-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    text-align: left;
}

.card.benefit-card {
    padding: var(--spacing-md) var(--spacing-sm);
}

.benefit-card .card-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 var(--spacing-sm);
    background: var(--color-primary);
    color: #fafaf9;
    border-radius: var(--border-radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.benefit-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ========== 3) Prueba social / Testimonios ========== */

.testimonials-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card .card-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-base);
}

.testimonial-card .card-avatar-placeholder__icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.testimonial-card .card-name {
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm);
}

.testimonial-card .card-quote {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.testimonial-card__industry {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-sm);
}

.testimonial-card__role {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

/* ========== 4) FAQ Acordeón (reutilizable) ========== */
/* Referencia: accordion-header 24px/32px, padding 24px 16px; content 20px/28px; hover gris suave */

.faq-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-accordion {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.faq-accordion__item {
    margin-bottom: var(--spacing-sm);
}

.faq-accordion__item:last-child {
    margin-bottom: 0;
}

.faq-accordion__question {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 24px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 32px;
    letter-spacing: 0;
    text-align: center;
    color: #111827;
    background: transparent;
    border: none;
    border-bottom: 4px solid #000000;
    border-radius: 0;
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-accordion__question::-webkit-details-marker {
    display: none;
}

.faq-accordion__question:hover {
    background: transparent;
}

.faq-accordion__question:hover .faq-accordion__icon {
    color: #000000;
}

.faq-accordion__question-text {
    flex: 1;
    padding: 0 var(--spacing-md);
}

.faq-accordion__icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    color: #000000;
    font-size: 1.6rem;
    font-weight: 700;
    transition: color 0.2s;
}

.faq-accordion__item[open] .faq-accordion__question .faq-accordion__icon--plus {
    display: none;
}

.faq-accordion__item .faq-accordion__question .faq-accordion__icon--minus {
    display: none;
}

.faq-accordion__item[open] .faq-accordion__question .faq-accordion__icon--minus {
    display: block;
}

.faq-accordion__answer {
    padding: 24px 16px 32px;
    font-family: var(--font-primary);
}

.faq-accordion__answer p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm);
    text-align: center;
}

.faq-accordion__answer strong {
    color: #000000;
    font-weight: 700;
}

.faq-accordion__answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .faq-accordion__question {
        padding: 16px 40px 16px 12px;
        line-height: 1.35;
    }

    .faq-accordion__question-text {
        font-size: clamp(0.82rem, 2.6vw + 0.4rem, 0.98rem);
        line-height: 1.38;
        padding: 0 var(--spacing-sm);
    }

    .faq-accordion__icon {
        right: 12px;
        font-size: 1.35rem;
    }

    .faq-accordion__answer p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* ========== 5) Formulario de captura ========== */
/* Tamaño y contenedor según referencia: max 540px, min 256px, card blanca, borde sutil */

.capture-section {
    padding: var(--spacing-2xl) 0;
}

.capture-section__head {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto var(--spacing-xl);
}

.capture-section__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fafaf9;
}

.capture-section__sub {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.capture-card {
    min-width: 256px;
    max-width: 480px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.capture-form-intro {
    margin-bottom: 1rem;
}

.capture-form-intro__title {
    margin: 0 0 0.375rem;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.capture-form-intro__subtitle {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.capture-form .form-group,
.lead-form .form-group {
    margin-bottom: 0.5rem;
}

.capture-form .form-row,
.lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .capture-form .form-row,
    .lead-form .form-row {
        grid-template-columns: 1fr;
    }
}

.capture-form label {
    display: none;
}

/* Misma altura y padding simétrico para todos los campos (email, full name, phone, message) */
.capture-form .form-input,
.capture-form .form-textarea {
    width: 100%;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: 1.4;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

/* Sin cambio de fondo al autocompletar: solo borde; forzamos fondo blanco */
.capture-form .form-input:-webkit-autofill,
.capture-form .form-input:-webkit-autofill:hover,
.capture-form .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #fff inset;
    box-shadow: 0 0 0 100px #fff inset;
}

.capture-form .form-input::placeholder,
.capture-form .form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.9;
}

.capture-form .form-input:hover,
.capture-form .form-textarea:hover {
    border-color: #d4d4d4;
}

/* Focus: solo borde de color, sin cambio de fondo */
.capture-form .form-input:focus,
.capture-form .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

.capture-form .form-actions,
.lead-form .form-actions {
    margin-top: 0.75rem;
}

.capture-form .form-actions .btn-primary {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.capture-form .form-trust {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

/* Error: solo borde de color, fondo blanco */
.capture-form .form-group--error .form-input,
.capture-form .form-group--error .form-textarea {
    border-color: var(--error-color);
    background: #fff;
}

.capture-form .form-group--error .form-input:focus,
.capture-form .form-group--error .form-textarea:focus {
    border-color: var(--error-color);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.capture-form .form-error {
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: 0.25rem;
}

.capture-form .form-help {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.capture-form .form-textarea {
    min-height: 5rem;
    height: auto;
    resize: vertical;
    padding: 0.5rem 0.75rem;
}

/* Phone row: custom flag selector + number input with visible prefix (+54) */
.form-group--phone .phone-input-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

.phone-select-native-wrap {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.phone-select-native-wrap select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
}

.phone-input-group__selector {
    position: relative;
    flex: 0 0 auto;
    width: 3.25rem;
    min-width: 3.25rem;
}

.phone-selector-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.phone-selector-trigger:hover,
.phone-selector-trigger:focus {
    outline: none;
    border-color: var(--color-primary);
}

.phone-selector-trigger-flag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.phone-selector-trigger-arrow {
    width: 0.4rem;
    height: 0.4rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

.phone-selector-dropdown {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    margin-top: 2px;
    min-width: 12rem;
    max-height: 14rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.phone-selector-dropdown[hidden] {
    display: none;
}

.phone-selector-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s;
}

.phone-selector-option:hover,
.phone-selector-option:focus {
    background-color: var(--surface);
    outline: none;
}

.phone-selector-option[aria-selected="true"] {
    background-color: #e7e5e4;
}

.phone-input-group__number {
    flex: 1 1 0%;
    min-width: 0;
}

.phone-number-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    height: 2.25rem;
    min-height: 2.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 0 6px 6px 0;
    background: #fff;
    box-sizing: border-box;
}

.phone-input-group__number .form-input:-webkit-autofill,
.phone-input-group__number .form-input:-webkit-autofill:hover,
.phone-input-group__number .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #fff inset;
    box-shadow: 0 0 0 100px #fff inset;
}

.phone-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.5rem 0 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-primary);
    flex-shrink: 0;
}

.phone-input-group__number .form-input {
    flex: 1 1 0%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    border: none;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

.phone-input-group__number .form-input:focus {
    outline: none;
    box-shadow: none;
}

.phone-number-inner:hover {
    border-color: #d4d4d4;
}

.phone-number-inner:focus-within {
    border-color: var(--color-primary);
    background: #fff;
}

.capture-form .form-success {
    text-align: center;
    padding: var(--spacing-md);
}

.capture-form .success-icon {
    width: 48px;
    height: 48px;
    background: var(--success-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-sm);
}

/* ========== Success modal (minimal popup) ========== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.modal--visible {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--background);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-md);
    max-width: 360px;
    width: 100%;
    padding: var(--spacing-lg);
}

.modal-body {
    text-align: center;
}

.modal-body .success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-sm);
    background: var(--success-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.modal-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.modal-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--surface);
}

/* ========== 6) Landing footer ========== */

.landing-footer {
    background-color: var(--background-color);
    color: #fff;
}

.landing-footer__inner {
    padding: var(--spacing-xl) 0 var(--spacing-xl);
}

.landing-footer__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.landing-footer__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.landing-footer__logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
    /* Logo blanco sobre fondo oscuro */
    filter: brightness(0) invert(1);
}

.landing-footer__name {
    color: #fff;
}

/* Reserved center area — currently empty, but keeps a three-column layout */
.landing-footer__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.landing-footer__nav-link {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    margin: 0 0.75rem;
    position: relative;
    transition: color 0.2s ease;
}

.landing-footer__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.2s ease;
}

.landing-footer__nav-link:hover {
    color: #ffffff;
}

.landing-footer__nav-link:hover::after {
    width: 100%;
}

.landing-footer__social {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Mismo criterio que .nav-overlay__social-link (base.css): gris secundario + icono en --text-secondary */
.landing-footer__social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: var(--text-secondary);
    background: var(--surface-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.landing-footer__social-link:hover {
    background: #2e2e2e;
    color: #e7e5e4;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.landing-footer__social-link:active {
    transform: translateY(0);
}

.landing-footer__bar {
    border-top: none;
    padding: 0.4rem 0 0.5rem;
    background-color: var(--background-color);
}

.landing-footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.landing-footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-footer__legal a:hover {
    color: #ffffff;
}

.landing-footer__legal-separator {
    opacity: 0.55;
    user-select: none;
}

.landing-footer__lang {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0.15rem;
}

.landing-footer__lang-code {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
    user-select: none;
}

.landing-footer__lang[data-active-lang="en"] .landing-footer__lang-code[data-lang-code="en"],
.landing-footer__lang[data-active-lang="es"] .landing-footer__lang-code[data-lang-code="es"] {
    color: #ffffff;
}

.landing-footer__lang-toggle {
    width: 34px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.landing-footer__lang-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.landing-footer__lang-toggle[aria-checked="true"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.landing-footer__lang-toggle[aria-checked="true"]::after {
    transform: translate(16px, -50%);
    background: #ffffff;
}

.landing-footer__lang-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.landing-footer__credit {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-secondary);
    color: color-mix(in srgb, var(--text-secondary) 88%, #292524 12%);
    font-family: var(--font-primary);
    text-align: right;
}

.landing-footer__credit-link {
    color: var(--text-secondary);
    color: color-mix(in srgb, var(--text-secondary) 88%, #292524 12%);
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-footer__credit-link:hover,
.landing-footer__credit-link:hover strong {
    color: #d6d3d1;
    color: color-mix(in srgb, #d6d3d1 88%, #57534e 12%);
}

.landing-footer__credit-link strong {
    font-weight: 700;
    color: inherit;
}

@media (max-width: 767px) {
    .landing-footer__inner {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .landing-footer__main {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .landing-footer__nav {
        width: 100%;
        flex: 0 1 auto;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.65rem;
    }

    .landing-footer__nav-link {
        margin: 0;
    }

    .landing-footer__social {
        margin-left: 0;
        align-self: flex-start;
        justify-content: flex-start;
    }

    .landing-footer__social-link {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }

    .landing-footer__logo {
        height: var(--logo-mobile-height, 32px);
        max-width: var(--logo-mobile-max-width, min(160px, calc(100vw - 4rem)));
    }

    .landing-footer__bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .landing-footer__legal {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .landing-footer__credit {
        text-align: left;
        align-self: flex-start;
    }
}

/* Visually hidden text helper for icon-only links */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section CTA — same button at end of each section */
.section-cta {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.section-cta .btn-primary {
    white-space: nowrap;
}

/* ========== Reusable CTA section (bottom) ========== */

.cta-section {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
    background: var(--color-primary);
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
    opacity: 0;
    z-index: 0;
}

.cta-section__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
}

.cta-section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
    text-transform: uppercase;
    color: #0a0a0a;
    margin: 0 0 var(--spacing-sm);
    letter-spacing: -0.03em;
}

/* Mismo criterio que .section-heading__highlight (pill gris + acento naranja) */
.cta-section__title-highlight {
    display: inline-block;
    padding: 0.2em 0.45em;
    margin-left: 0.15em;
    border-radius: 1px;
    margin-top: 0.08em;
    background: var(--surface-secondary);
    color: var(--color-primary);
    font-size: inherit;
    letter-spacing: 0.08em;
    line-height: inherit;
    vertical-align: middle;
}

.cta-section__description {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    line-height: 1.55;
    color: rgba(10, 10, 10, 0.88);
    margin: 0 auto;
    max-width: 62ch;
}

.cta-section__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Social proof — una línea, estilo producto / SV */
.cta-section__micro {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
}

.cta-section__social-proof {
    margin: 0;
    max-width: 36ch;
    font-family: var(--font-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(10, 10, 10, 0.48);
    font-variant-numeric: tabular-nums;
}

.cta-section__button.btn-primary {
    padding: 12px 1.75rem;
    font-size: 17px;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--color-primary);
    border: none;
    box-shadow: var(--shadow-base);
}

.cta-section__button.btn-primary:hover {
    background-color: #fef2f2;
    color: var(--color-primary);
}

/* CTA final: mismo gradiente que hero home; todas las landings oscuras */
body.landing-page .cta-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(4rem, 10vw, 7.5rem);
    background: var(--background-color);
}

body.landing-page.landing-page--home .cta-section {
    min-height: min(52vh, 640px);
}

body.landing-page .cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    mix-blend-mode: normal;
    background-image:
        radial-gradient(circle at 0 0, rgba(255, 76, 62, 0.18) 0, transparent 55%),
        linear-gradient(160deg, rgba(30, 30, 30, 0.97) 0%, rgba(19, 19, 19, 1) 48%, #131313 100%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0) 10px,
            rgba(255, 76, 62, 0.05) 10px,
            rgba(255, 76, 62, 0.05) 12px
        );
}

body.landing-page .cta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        rgba(19, 19, 19, 0) 0%,
        rgba(19, 19, 19, 0) 28%,
        rgba(19, 19, 19, 0.42) 64%,
        var(--background-color) 100%
    );
}

body.landing-page .cta-section__title {
    color: #fafaf9;
}

body.landing-page .cta-section__description {
    color: rgba(255, 255, 255, 0.86);
}

body.landing-page .cta-section__button.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

body.landing-page .cta-section__button.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
}

body.landing-page .cta-section__inner {
    gap: calc(var(--spacing-md) + 0.5rem);
}

body.landing-page .cta-section__social-proof {
    color: var(--text-secondary);
    opacity: 0.92;
    max-width: min(42ch, 100%);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.02em;
    text-transform: none;
}

.section-cta__micro {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text-secondary);
}

.form-microcopy {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text-secondary);
}

/* ========== Portfolio page (hero + projects grid) + Featured on home ========== */

.portfolio-hero {
    max-height: 600px;
    min-height: 260px;
    padding: calc(var(--spacing-xl) * 2) 0 var(--spacing-xl);
    background: var(--surface);
    display: flex;
    align-items: center;
}

.portfolio-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.65rem, 6vw, 3.65rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

/* Contact page hero (misma caja que portfolio; gradiente en body.landing-page) */
.contact-hero {
    max-height: 600px;
    min-height: 260px;
    padding: calc(var(--spacing-xl) * 2) 0 var(--spacing-xl);
    background: var(--surface);
    display: flex;
    align-items: center;
}

.contact-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.contact-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.65rem, 6vw, 3.65rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

/* Contact hero: keep title readable (avoid single long line) */
.contact-hero .hero-content h1 {
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
    text-align: center;
    padding-inline: 0.5rem;
}

/* Project detail hero (same visual language as portfolio hero) */

.project-hero {
    max-height: 600px;
    min-height: 260px;
    padding: calc(var(--spacing-xl) * 2) 0 var(--spacing-xl);
    background: var(--surface);
    display: flex;
    align-items: center;
}

.project-hero__inner {
    text-align: center;
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1;
    color: var(--color-primary);
    padding: 0;
    border: 0;
    background: transparent;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
    margin: 0 auto 0.65rem;
    text-decoration-line: underline;
    text-decoration-color: rgba(255, 76, 62, 0.0);
    text-underline-offset: 4px;
}

.project-back:hover {
    text-decoration-color: rgba(255, 76, 62, 0.85);
}

.project-back:focus-visible {
    outline: 2px solid rgba(255, 76, 62, 0.55);
    outline-offset: 2px;
}

.project-back i {
    font-size: 0.95em;
}

.project-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.65rem, 5.25vw, 3.4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .portfolio-hero-title,
    .contact-hero__title,
    .project-hero__title {
        font-size: clamp(2.42rem, 5.5vw + 0.75rem, 3.15rem);
        line-height: 1.05;
    }
}

.project-hero__subtitle {
    margin: var(--spacing-md) auto 0;
    max-width: 64ch;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Project gallery carousel */

.project-gallery {
    background: #ffffff;
}

.project-gallery__inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.project-gallery__main {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 1760 / 900;
    position: relative;
    margin-top: -2rem;
}

.project-gallery__main-surface {
    width: 100%;
    height: 100%;
    background: var(--placeholder-bg, #0f172a);
}

.project-gallery__main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-gallery__main-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
}

.project-gallery__main-placeholder-inner {
    width: min(220px, 42%);
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.project-gallery__main-placeholder-inner i {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    opacity: 0.95;
}

.project-gallery__nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    pointer-events: none;
}

.project-gallery__nav-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.project-gallery__nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.28);
}

.project-gallery__nav-btn:active {
    transform: translateY(0px);
}

.project-gallery__nav-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.project-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #e5e7eb;
    font-size: 3rem;
}

.project-gallery__thumbnails {
    display: none;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.project-gallery__thumb {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 96px;
    height: 72px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Project detail — Summary (short description under gallery) */

/* Project detail — Features (What we did) */

.project-section--features {
    background: #ffffff;
    padding: clamp(3.25rem, 6vw, 4.5rem) 0;
}

.project-section__header {
    max-width: 980px;
    margin: 0 auto clamp(1.6rem, 3vw, 2.25rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.project-section__kicker {
    display: inline-flex;
    align-self: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 76, 62, 0.10);
    border: 1px solid rgba(255, 76, 62, 0.22);
    color: rgba(2, 6, 23, 0.82);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.project-section__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.6vw, 2.45rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.project-section__subheading {
    color: var(--text-secondary);
    font-size: 1.06rem;
    line-height: 1.75;
    max-width: 74ch;
    margin: 0 auto;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.project-feature {
    grid-column: span 6;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.10);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.08);
    padding: 1.25rem 1.25rem 1.1rem;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    position: relative;
    overflow: hidden;
}

.project-feature::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(800px 200px at 20% 0%, rgba(255, 76, 62, 0.14), transparent 55%),
                radial-gradient(700px 240px at 90% 10%, rgba(2, 6, 23, 0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
}

.project-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 6, 23, 0.14);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.11);
}

.project-feature:hover::before {
    opacity: 1;
}

.project-feature__top {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0.9rem;
    align-items: start;
}

.project-feature__step {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 76, 62, 0.12);
    border: 1px solid rgba(255, 76, 62, 0.22);
    color: rgba(2, 6, 23, 0.86);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.project-feature__title {
    margin: 0.15rem 0 0;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: rgba(2, 6, 23, 0.92);
    font-weight: 850;
}

.project-feature__description {
    margin: 0.75rem 0 0;
    color: rgba(2, 6, 23, 0.72);
    font-size: 1.02rem;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .project-feature {
        grid-column: span 12;
    }
}

/* Project detail — Prev/Next navigation */

.project-pagination {
    padding: 0.85rem 0 1.35rem;
    background: #fff;
}

.project-pagination__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

.project-pagination__link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: color 0.15s ease, text-decoration-color 0.15s ease, transform 0.15s ease;
    min-height: unset;
    text-decoration-line: underline;
    text-decoration-color: rgba(255, 76, 62, 0);
    text-underline-offset: 4px;
}

.project-pagination__link:hover {
    text-decoration-color: rgba(255, 76, 62, 0.85);
    transform: translateY(-1px);
}

.project-pagination__link:focus-visible {
    outline: 2px solid rgba(255, 76, 62, 0.55);
    outline-offset: 2px;
}

.project-pagination__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: rgba(2, 6, 23, 0.55);
}

.project-pagination__title {
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    line-height: 1.2;
    font-size: 0.98rem;
}

.project-pagination__link--next {
    text-align: right;
    align-items: flex-end;
}

.project-pagination__spacer {
    display: none;
}

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

    .project-pagination__link--next {
        text-align: left;
        align-items: flex-start;
    }
}

/* ========== About page (Nosotros) ========== */

.about-page {
    --about-accent: var(--color-primary);
    --about-ink: var(--text-primary);
    --about-muted: var(--text-secondary);
    --about-panel: rgba(255, 255, 255, 0.92);
    --about-border: rgba(2, 6, 23, 0.10);
    --about-shadow: 0 18px 50px rgba(2, 6, 23, 0.12);
}

.about-page .about-section {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    background: #ffffff;
}

.about-page .about-section--alt {
    background: var(--surface);
}

.about-page .about-split {
    display: grid;
    grid-template-columns: minmax(240px, 0.92fr) minmax(320px, 1.08fr);
    gap: 3.25rem;
    align-items: start;
}

.about-page .about-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.2vw, 2.35rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: var(--about-ink);
    text-transform: uppercase;
}

@media (max-width: 767px) {
    /* Por debajo del h1 del hero (.hero-content h1); evita empate con el título principal */
    .about-page .about-heading {
        font-size: clamp(1.5rem, 3.1vw + 0.4rem, 1.9rem);
        line-height: 1.1;
    }

    .about-page .about-heading--vision {
        line-height: 1.24;
    }
}

.about-page .about-heading--center {
    text-align: center;
    max-width: 28ch;
    margin: 0 auto;
}

/* Título visión: más aire entre líneas (el .about-heading base usa 1.02, muy justo con highlight) */
.about-page .about-heading--vision {
    line-height: 1.3;
}

/* Misma lectura que .section-heading__highlight en project detail (fondo oscuro + acento) */
.about-page .about-heading__highlight {
    display: inline-block;
    margin: 0 0.06em;
    padding: 0.1em 0.42em 0.14em;
    line-height: 1;
    background: var(--surface-secondary);
    color: var(--color-primary);
    border-radius: 1px;
    vertical-align: 0.05em;
}

/* Visión: sección --surface; el chip debe leerse — mismo negro que navbar (--background-color) */
.about-page .about-heading--vision .about-heading__highlight {
    background: var(--background-color);
}

.about-page .about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.about-page .about-paragraphs p {
    color: var(--about-muted);
    font-size: 1.05rem;
    line-height: 1.78;
}

.about-page .about-paragraphs p strong {
    color: var(--about-ink);
    font-weight: 800;
}

.about-page .about-callout {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.1rem;
    border-radius: 20px;
    background: var(--about-panel);
    border: 1px solid var(--about-border);
    box-shadow: var(--about-shadow);
}

.about-page .about-callout__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 76, 62, 0.12);
    border: 1px solid rgba(255, 76, 62, 0.20);
    color: rgba(2, 6, 23, 0.86);
    font-size: 1.25rem;
}

.about-page .about-callout__lead {
    color: rgba(2, 6, 23, 0.72);
    font-weight: 700;
}

.about-page .about-callout__headline {
    margin-top: 0.2rem;
}

.about-page .about-mini-points {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-page .about-mini-point {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(2, 6, 23, 0.76);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.about-page .about-cards {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.about-page .about-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.10);
    border-radius: 22px;
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 16px 45px rgba(2, 6, 23, 0.10);
    position: relative;
    overflow: hidden;
}

.about-page .about-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(500px 180px at 18% 12%, rgba(255, 76, 62, 0.16), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.about-page .about-card__icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 76, 62, 0.12);
    border: 1px solid rgba(255, 76, 62, 0.22);
    color: rgba(2, 6, 23, 0.86);
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.about-page .about-card__title,
.about-page .about-card__text {
    position: relative;
    z-index: 1;
}

.about-page .about-card__title {
    font-family: var(--font-heading);
    color: var(--about-ink);
    font-size: 1.3rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.about-page .about-card__text {
    color: rgba(2, 6, 23, 0.70);
    line-height: 1.75;
    font-size: 1.02rem;
}

.about-page .about-muted {
    margin-top: 0.9rem;
    color: var(--about-muted);
    max-width: 52ch;
    line-height: 1.7;
}

.about-page .about-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-page .about-service {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.10);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
    color: rgba(2, 6, 23, 0.82);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.about-page .about-service i {
    margin-top: 0.15rem;
    color: rgba(255, 76, 62, 0.95);
}

.about-page .about-header {
    text-align: center;
    max-width: 72ch;
    margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
}

.about-page .about-center-muted {
    color: var(--about-muted);
    text-align: center;
    margin: 0.75rem auto 0;
    max-width: 72ch;
}

.about-page .about-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.about-page .about-person {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.1rem;
    align-items: center;
    padding: 1.1rem 1.1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.10);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
}

.about-page .about-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    color: rgba(2, 6, 23, 0.92);
    border: 2px solid rgba(255, 76, 62, 0.22);
    background:
        radial-gradient(32px 32px at 30% 28%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.0)),
        radial-gradient(120px 90px at 70% 70%, rgba(255, 76, 62, 0.22), rgba(255, 76, 62, 0.05)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.12);
}

.about-page .about-avatar--jp {
    border-color: rgba(255, 76, 62, 0.26);
}

.about-page .about-avatar--ss {
    border-color: rgba(2, 6, 23, 0.14);
}

.about-page .about-person__name {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: var(--about-ink);
    font-size: 1.35rem;
    line-height: 1.05;
}

.about-page .about-person__role {
    margin-top: 0.25rem;
    color: rgba(2, 6, 23, 0.66);
    font-weight: 700;
}

.about-page .about-person__meta {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-page .about-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 76, 62, 0.10);
    border: 1px solid rgba(255, 76, 62, 0.20);
    color: rgba(2, 6, 23, 0.78);
    font-weight: 800;
    letter-spacing: -0.01em;
}

@media (max-width: 980px) {
    .about-page .about-split {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .about-page .about-services {
        grid-template-columns: 1fr;
    }
    .about-page .about-cards {
        grid-template-columns: 1fr;
    }
    .about-page .about-team {
        grid-template-columns: 1fr;
    }
}

.project-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-gallery__thumb.is-active,
.project-gallery__thumb:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

@media (min-width: 900px) {
    .project-gallery__inner {
        flex-direction: column;
    }
}

.portfolio-page {
    padding: var(--spacing-2xl) 0 var(--spacing-2xl);
    background-color: #ffffff;
}

.portfolio-filters {
    --filter-bar-bg: rgba(15, 23, 42, 0.06);
    --filter-bar-border: rgba(15, 23, 42, 0.12);
    --filter-active-bg: #ffffff;
    --filter-active-border: rgba(15, 23, 42, 0.12);
    --filter-text: rgba(15, 23, 42, 0.72);
    --filter-text-active: rgba(15, 23, 42, 0.92);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0 auto var(--spacing-xl);

    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--filter-bar-border);
    background: var(--filter-bar-bg);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);

    width: 100%;
    max-width: min(var(--container-max-width), 100%);
    overflow: hidden;
}

.portfolio-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--filter-text);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-filter-pill:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--filter-text-active);
}

.portfolio-filter-pill.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(255, 76, 62, 0.28);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.portfolio-card {
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.portfolio-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-card-link:hover .portfolio-card {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Full-bleed media: same aspect as project assets (1760×900); category + title overlay */
.portfolio-card-inner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1760 / 900;
    background: #111827;
}

/* Scrim sobre la foto: más oscuro abajo para contraste del texto */
.portfolio-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.42) 32%,
        rgba(0, 0, 0, 0.12) 58%,
        transparent 78%
    );
}

.portfolio-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 0;
    margin: 0;
}

.portfolio-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.portfolio-card-overlay--bottom {
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.5rem 0.65rem 0.42rem;
    background: transparent;
}

/* Minimal category line above project title (no pill) */
.portfolio-card-category {
    margin: 0;
    padding: 0;
    max-width: 100%;
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250, 250, 249, 0.72);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.portfolio-card-media-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 0;
    width: auto;
    height: auto;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.6rem;
}

.portfolio-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.portfolio-card-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.portfolio-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
    margin: 0;
    line-height: 1.2;
}

.portfolio-empty {
    text-align: center;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.landing-section--featured-projects {
    background-color: #f9fafb;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .featured-projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ========== Standalone pages (404, etc.) — sin navbar/footer ========== */

.standalone-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--background);
}

.standalone-page--centered .container {
    text-align: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.standalone-page__title {
    font-family: var(--font-heading);
    font-size: 41px;
    line-height: 39px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
    text-transform: uppercase;
}

.standalone-page__subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
}

.standalone-page__cta {
    text-align: center;
}

/* ========== Legal pages (Privacy, Terms) — título + secciones h3 + body ========== */

.legal-page {
    padding: var(--spacing-2xl) 0;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--background);
}

.legal-page__title {
    font-family: var(--font-heading);
    font-size: 41px;
    line-height: 39px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    text-transform: uppercase;
}

.legal-section {
    margin-bottom: var(--spacing-lg);
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section__heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.legal-section__body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== Utilidades y estados ========== */

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ========================================================================
   Dark theme — todas las páginas públicas landing (body.landing-page)
   Fondo #131313, texto claro, naranja sin cambios. Home añade solo hero/FAQ/featured.
   ======================================================================== */

body.landing-page {
    --text-primary: #fafaf9;
    --text-secondary: #a8a29e;
    --background: #131313;
    --surface: #1c1c1c;
    --surface-secondary: var(--surface);
    --background-color: #131313;
    --surface-color: #2e2e2e;
    --shadow-base: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --blog-image-placeholder-bg: #2a2a2a;
    --fixed-top-offset: calc(var(--header-height) + var(--top-alert-height, 0px));
    background-color: #131313;
    color: var(--text-primary);
}

/* Logo + menú hamburguesa legibles sobre header transparente y barra scrolleada oscura */
body.landing-page .logo-img {
    filter: brightness(0) invert(1);
}

body.landing-page .logo-text {
    color: #fafaf9;
}

body.landing-page .nav-menu-toggle {
    color: #fafaf9;
}

body.landing-page .nav-menu-toggle:hover,
body.landing-page .nav-menu-toggle:focus-visible {
    color: var(--color-primary);
}

body.landing-page .landing-page {
    background-color: #131313;
    color: var(--text-primary);
}

/* Hero + Trusted by: mismo stack y gradiente en home y en Nosotros */
body.landing-page .landing-hero-stack {
    background: #131313;
}

/* Misma estructura de capas que el stack claro, adaptada al fondo oscuro.
   Sin radial abajo-derecha (evita parche más claro a la derecha). El ::after funde el borde inferior con #131313. */
body.landing-page .landing-hero-stack::before {
    background-image:
        radial-gradient(circle at 0 0, rgba(255, 76, 62, 0.18) 0, transparent 55%),
        linear-gradient(160deg, rgba(30, 30, 30, 0.97) 0%, rgba(19, 19, 19, 1) 48%, #131313 100%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0) 10px,
            rgba(255, 76, 62, 0.05) 10px,
            rgba(255, 76, 62, 0.05) 12px
        );
}

/* Velatura inferior: unifica el cierre del bloque con la sección siguiente (mismo #131313 en todo el ancho) */
body.landing-page .landing-hero-stack::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(140px, 26vh, 380px);
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        rgba(19, 19, 19, 0) 0%,
        rgba(19, 19, 19, 0.5) 42%,
        #131313 100%
    );
}

/* Mismo tono base que el final del bloque hero + Trusted by (#131313 / --background), sin franja --surface */
body.landing-page.landing-page--home .landing-section--services.landing-section--alt {
    background-color: var(--background);
}

body.landing-page .card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-base);
}

body.landing-page .card:hover {
    box-shadow: var(--shadow-md);
}

/* Mismo gris que beneficios (.card); el círculo un poco más claro para que no se funda con el fondo */
body.landing-page.landing-page--home .testimonial-card.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-base);
}

body.landing-page.landing-page--home .testimonial-card.card:hover {
    box-shadow: var(--shadow-md);
}

body.landing-page.landing-page--home .testimonial-card .card-avatar-placeholder {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-base);
}

body.landing-page.landing-page--home .testimonial-card__industry {
    color: rgba(250, 250, 249, 0.55);
}

body.landing-page.landing-page--home .testimonial-card__role {
    color: rgba(250, 250, 249, 0.62);
}

body.landing-page.landing-page--home .faq-accordion__question {
    color: #fafaf9;
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

body.landing-page.landing-page--home .faq-accordion__question:hover .faq-accordion__icon {
    color: #fafaf9;
}

body.landing-page.landing-page--home .faq-accordion__icon {
    color: #fafaf9;
}

body.landing-page.landing-page--home .faq-accordion__answer strong {
    color: #e7e5e4;
}

body.landing-page.landing-page--home .landing-section--featured-projects {
    background-color: var(--background);
}

body.landing-page.landing-page--home .landing-section--featured-projects .portfolio-card {
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body.landing-page.landing-page--home .landing-section--featured-projects .portfolio-card-inner {
    background: #0f0f0f;
}

body.landing-page.landing-page--home .landing-section--featured-projects .portfolio-card-media-placeholder {
    background-color: var(--surface-secondary);
    color: #a1a1aa;
}

/* Footer landing: mismo --background-color que navbar (#131313) */
body.landing-page .landing-footer,
body.landing-page .landing-footer__bar {
    background-color: var(--background-color);
}

/* -----------------------------------------------------------------------
   Dark theme — páginas internas (Nosotros, portfolio, proyecto, contacto,
   legal, blog, 404): mismos tokens que home; sin tocar el hero solo-home.
   ----------------------------------------------------------------------- */

body.landing-page .social-proof__logo img {
    filter: grayscale(100%) contrast(1.05) brightness(1.2);
}

body.landing-page .social-proof__logo:hover img {
    filter: grayscale(0) contrast(1.05) brightness(1.2);
}

/* Portfolio listado + detalle proyecto + contacto */
/* Hero: mismo gradiente que home/Nosotros; ::after más bajo (bloque más corto que el stack principal) */
body.landing-page .portfolio-hero,
body.landing-page .project-hero,
body.landing-page .contact-hero {
    position: relative;
    overflow: hidden;
    background: #131313;
}

body.landing-page .portfolio-hero::before,
body.landing-page .project-hero::before,
body.landing-page .contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 0 0, rgba(255, 76, 62, 0.18) 0, transparent 55%),
        linear-gradient(160deg, rgba(30, 30, 30, 0.97) 0%, rgba(19, 19, 19, 1) 48%, #131313 100%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0) 10px,
            rgba(255, 76, 62, 0.05) 10px,
            rgba(255, 76, 62, 0.05) 12px
        );
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 0;
}

body.landing-page .portfolio-hero::after,
body.landing-page .project-hero::after,
body.landing-page .contact-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(56px, 12vh, 160px);
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        rgba(19, 19, 19, 0) 0%,
        rgba(19, 19, 19, 0.5) 42%,
        #131313 100%
    );
}

body.landing-page .portfolio-hero .container,
body.landing-page .project-hero .container,
body.landing-page .contact-hero .container {
    position: relative;
    z-index: 1;
}

/* Contacto: espacio bajo header fijo (antes vivía en .capture-section) */
body.landing-page .contact-hero {
    padding-top: calc(var(--fixed-top-offset) + var(--spacing-xl) * 2);
}

body.landing-page .portfolio-page {
    background-color: var(--background);
}

body.landing-page .portfolio-filters {
    --filter-bar-bg: rgba(255, 255, 255, 0.04);
    --filter-bar-border: rgba(255, 255, 255, 0.1);
    --filter-active-bg: var(--surface);
    --filter-active-border: rgba(255, 255, 255, 0.12);
    --filter-text: rgba(250, 250, 249, 0.55);
    --filter-text-active: #fafaf9;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

body.landing-page .portfolio-filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--filter-text-active);
}

/* Portfolio: filtros en móvil — sin “pastilla” circular gigante; barra + chips rectos y scroll */
@media (max-width: 767px) {
    body.landing-page .portfolio-filters {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.45rem;
        margin-bottom: var(--spacing-lg);
        padding: 0.55rem 0.6rem;
        border-radius: var(--border-radius-base);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    }

    body.landing-page .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    body.landing-page .portfolio-filter-pill {
        flex: 0 0 auto;
        border-radius: var(--border-radius-base);
        padding: 0.5rem 0.95rem;
        font-size: 0.8125rem;
        letter-spacing: 0.05em;
        max-width: none;
        white-space: nowrap;
    }

    body.landing-page .portfolio-filter-pill.is-active {
        box-shadow: 0 4px 14px rgba(255, 76, 62, 0.35);
    }
}

body.landing-page .portfolio-card {
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body.landing-page .portfolio-card-inner {
    background: #0f0f0f;
}

body.landing-page .portfolio-card-media-placeholder {
    background-color: var(--surface-secondary);
    color: #a1a1aa;
}

/* Detalle de proyecto */
body.landing-page .project-gallery {
    background: var(--background);
}

body.landing-page .project-section--features {
    background: var(--background);
}

body.landing-page .project-section__kicker {
    color: rgba(250, 250, 249, 0.88);
    border-color: rgba(255, 76, 62, 0.28);
}

body.landing-page .project-feature {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-base);
}

body.landing-page .project-feature:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
}

body.landing-page .project-feature::before {
    background: radial-gradient(800px 200px at 20% 0%, rgba(255, 76, 62, 0.2), transparent 55%),
        radial-gradient(700px 240px at 90% 10%, rgba(255, 255, 255, 0.06), transparent 60%);
}

body.landing-page .project-feature__step {
    color: var(--color-primary);
    border-color: rgba(255, 76, 62, 0.35);
    background: rgba(255, 76, 62, 0.12);
}

body.landing-page .project-feature__title {
    color: var(--text-primary);
}

body.landing-page .project-feature__description {
    color: var(--text-secondary);
}

body.landing-page .project-pagination {
    background: var(--background);
}

body.landing-page .project-pagination__kicker {
    color: var(--text-secondary);
}

/* Formulario contacto */
body.landing-page .capture-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-base);
}

body.landing-page .capture-form .form-input,
body.landing-page .capture-form .form-textarea {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    caret-color: #fff;
}

body.landing-page .capture-form .form-input:-webkit-autofill,
body.landing-page .capture-form .form-input:-webkit-autofill:hover,
body.landing-page .capture-form .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #1c1c1c inset;
    box-shadow: 0 0 0 100px #1c1c1c inset;
    -webkit-text-fill-color: #fff;
}

body.landing-page .capture-form .form-input::placeholder,
body.landing-page .capture-form .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

body.landing-page .capture-form .form-input:focus,
body.landing-page .capture-form .form-textarea:focus {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--color-primary);
}

body.landing-page .phone-selector-trigger,
body.landing-page .phone-selector-dropdown {
    background: rgba(16, 16, 16, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

body.landing-page .phone-selector-dropdown {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

body.landing-page .phone-selector-dropdown::-webkit-scrollbar {
    width: 10px;
}

body.landing-page .phone-selector-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

body.landing-page .phone-selector-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    border: 2px solid rgba(16, 16, 16, 0.96);
}

body.landing-page .phone-selector-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.landing-page .phone-selector-dropdown {
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

body.landing-page .phone-selector-search {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    outline: none;
}

body.landing-page .phone-selector-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

body.landing-page .phone-selector-options {
    max-height: 14rem;
    overflow-y: auto;
}

body.landing-page .phone-number-inner {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.12);
}

body.landing-page .phone-number-inner:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

body.landing-page .phone-number-inner:focus-within {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--color-primary);
}

body.landing-page .phone-input-group__number .form-input:-webkit-autofill,
body.landing-page .phone-input-group__number .form-input:-webkit-autofill:hover,
body.landing-page .phone-input-group__number .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #1c1c1c inset;
    box-shadow: 0 0 0 100px #1c1c1c inset;
}

body.landing-page .phone-selector-option:hover,
body.landing-page .phone-selector-option:focus {
    background-color: rgba(255, 255, 255, 0.06);
}

body.landing-page .phone-selector-option[aria-selected="true"] {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Nosotros — paneles y chips (antes UI clara) */
body.landing-page .about-page {
    --about-panel: rgba(28, 28, 28, 0.96);
    --about-border: rgba(255, 255, 255, 0.08);
    --about-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

body.landing-page .about-page .about-section {
    background: var(--background);
}

body.landing-page .about-page .about-section--alt {
    background: var(--surface);
}

body.landing-page .about-page .about-callout__icon {
    color: var(--color-primary);
}

body.landing-page .about-page .about-callout__lead {
    color: var(--text-secondary);
}

body.landing-page .about-page .about-callout__body p {
    color: var(--text-secondary);
}

body.landing-page .about-page .about-callout__headline strong {
    color: var(--text-primary);
}

body.landing-page .about-page .about-mini-point {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

body.landing-page .about-page .about-card {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-base);
}

body.landing-page .about-page .about-card__title {
    color: var(--text-primary);
}

body.landing-page .about-page .about-card__text {
    color: var(--text-secondary);
}

body.landing-page .about-page .about-card__icon {
    color: var(--color-primary);
    border-color: rgba(255, 76, 62, 0.3);
    background: rgba(255, 76, 62, 0.12);
}

body.landing-page .about-page .about-service {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: var(--shadow-base);
}

body.landing-page .about-page .about-person {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-base);
}

body.landing-page .about-page .about-avatar {
    color: var(--text-primary);
    border-color: rgba(255, 76, 62, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-base);
}

body.landing-page .about-page .about-person__role {
    color: var(--text-secondary);
}

body.landing-page .about-page .about-chip {
    color: rgba(250, 250, 249, 0.9);
    border-color: rgba(255, 76, 62, 0.28);
}

/* Blog (body.landing-page.blog-page) */
body.landing-page.blog-page {
    background-color: var(--background);
}

body.landing-page .blog-article__category {
    background: rgba(255, 255, 255, 0.08);
}

body.landing-page .blog-article__content a {
    color: var(--color-primary);
}

body.landing-page .blog-article__content a:hover {
    color: var(--color-primary-hover);
}

body.landing-page .newsletter-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-base);
}

body.landing-page .newsletter-form input[type="email"] {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

body.landing-page .newsletter-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

/* Contacto: mismo negro base que el hero (#131313 / --background), no --surface */
body.landing-page .capture-section {
    padding-top: 0.5em;
    padding-bottom: var(--spacing-2xl);
    background-color: var(--background);
}

body.landing-page.blog-page:not(.blog-article-page) .blog-container {
    padding-top: calc(var(--fixed-top-offset) + var(--spacing-xl));
}

body.landing-page .legal-page {
    padding-top: calc(var(--fixed-top-offset) + var(--spacing-2xl));
}

body.landing-page.newsletter-success-page .blog-container {
    padding-top: calc(var(--fixed-top-offset) + var(--spacing-2xl));
    padding-bottom: var(--spacing-2xl);
}

/* 404 / páginas standalone con navbar */
body.landing-page .standalone-page {
    padding-top: var(--fixed-top-offset);
    background-color: var(--background);
    color: var(--text-primary);
    min-height: calc(100vh - var(--fixed-top-offset));
}

/* SEO landing (Ecuador keywords) */
body.landing-page .seo-landing-hero {
    padding-top: calc(var(--fixed-top-offset) + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}
body.landing-page .seo-landing-hero__inner {
    max-width: 720px;
}
body.landing-page .seo-landing-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 var(--spacing-md);
}
body.landing-page .seo-landing-hero__lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-lg);
}
body.landing-page .seo-landing-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.landing-page .seo-landing-section h2 {
    font-size: 1.25rem;
    margin: 0 0 var(--spacing-md);
}
body.landing-page .seo-landing-section p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 var(--spacing-md);
}
body.landing-page .seo-landing-section ul {
    margin: 0 0 var(--spacing-md);
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
body.landing-page .seo-landing-cta {
    margin-top: var(--spacing-lg);
}

/* Project hero SEO highlights */
body.landing-page .project-hero__seo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: var(--spacing-md) 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
body.landing-page .project-hero__seo-item {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body.landing-page .project-hero__seo-item--result {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.14);
}

