/**
 * Sitio institucional en código (raíz del sitio; vista previa en /vista-previa/…) — ver modules/public-site/ y
 * CONTEXTO.md sección 29.
 *
 * Reproduce el sitio actual hecho con Elementor: valores (tamaños,
 * márgenes, colores, cortes responsive) tomados de las plantillas
 * exportadas el 2026-09-28 y del kit de Elementor del sitio en vivo.
 * Cortes: tablet ≤1024px, celular ≤767px (los mismos de Elementor).
 * Ancho de contenido: 1200px (kit de Elementor).
 *
 * No carga saxum-admin-panel-base.css a propósito: esa hoja trae reglas
 * globales del Panel (color de todos los <a>, fuente de h3, etc.) que
 * pisarían el diseño del sitio. Los colores de abajo son los MISMOS
 * valores de la paleta del sistema (se indica el token equivalente) +
 * los colores globales del kit de Elementor que el sitio usa.
 *
 * Prefijo de clases: sx- (sitio), para no chocar con saxum- (Panel).
 */

:root {
    /* = --saxum-color-secondary-dark (y color global de Elementor 45dc319): texto principal. */
    --sx-color-ink: #0C1827;
    /* = --saxum-color-accent (global 6961f73): acentos, botón de formulario. */
    --sx-color-accent: #2985C3;
    /* = --saxum-color-white */
    --sx-color-white: #FFFFFF;
    /* Globales del kit de Elementor del sitio institucional. */
    --sx-color-blue: #224B7E;
    --sx-color-blue-mid: #216C9F;
    --sx-color-blue-dark: #1C416F;
    --sx-color-gray-bg: #EBEBEB;
    --sx-color-gray-card: #E2E2E2;
    --sx-color-gray-text: #54595F;
    --sx-color-gray-soft: #7A7A7A;
    /* Home (rediseño 2026-10-09, sección 40). */
    --sx-color-brand: #1B4C7C; /* azul del logo */
    --sx-color-concrete: #E8EAEC; /* gris hormigón: fondos de sección */
    --sx-color-line: #C9CFD5; /* filetes sobre blanco/hormigón */
    --sx-color-stone: #A9B2BB; /* texto secundario sobre fondo oscuro */

    /* = --saxum-font-heading / --saxum-font-body */
    --sx-font-heading: 'Montserrat', sans-serif;
    --sx-font-body: 'Barlow', sans-serif;
    --sx-font-display: 'Barlow Condensed', 'Barlow', sans-serif;

    --sx-content-width: 1200px;
    --sx-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    --sx-header-height: 90px;
    --sx-home-space: 128px;
}

/* =========================================================
   Base
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--sx-color-white);
    color: var(--sx-color-ink);
    font-family: var(--sx-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p {
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--sx-font-heading);
    font-weight: 400;
    line-height: 1.2;
}

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

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sx-color-accent);
    outline-offset: 2px;
}

.sx-container {
    width: 100%;
    max-width: var(--sx-content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.sx-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sx-capitalize {
    text-transform: capitalize;
}

.sx-preview-flag {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 99980;
    max-width: calc(100% - 24px);
    padding: 6px 12px;
    background: rgba(12, 24, 39, 0.85);
    color: var(--sx-color-white);
    font-size: 12px;
    border-radius: 999px;
    pointer-events: none;
}

/* Entrada "fadeInUp" de Elementor (JS agrega .is-visible al entrar en pantalla). */
.sx-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: var(--sx-reveal-delay, 300ms);
}

.sx-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sx-reveal { opacity: 1; transform: none; transition: none; }
    .sx-slide { animation: none !important; transition: none !important; }
}

/* =========================================================
   Botones (esquinas rectas, mismo estilo del sitio actual)
   ========================================================= */

.sx-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid currentColor;
    font-family: var(--sx-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.sx-button--outline-dark {
    font-family: var(--sx-font-heading);
    font-size: 16px;
    color: #000;
    border-color: #000;
    background: transparent;
}

.sx-button--outline-dark:hover {
    background: #000;
    color: var(--sx-color-white);
}

.sx-button--outline-light {
    color: var(--sx-color-white);
    border-color: var(--sx-color-white);
    background: transparent;
}

.sx-button--outline-light:hover {
    background: var(--sx-color-white);
    color: #000;
}

.sx-button--solid-dark {
    color: var(--sx-color-white);
    background: var(--sx-color-ink);
    border-color: var(--sx-color-ink);
}

.sx-button--solid-dark:hover {
    background: transparent;
    color: var(--sx-color-ink);
}

/* =========================================================
   Header fijo
   ========================================================= */

.sx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    color: var(--sx-color-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sx-header.is-scrolled,
.sx-no-hero .sx-header {
    background: var(--sx-color-white);
    color: var(--sx-color-ink);
}

.sx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--sx-header-height);
    padding: 0 30px;
}

.sx-header-logo {
    display: inline-flex;
    color: inherit;
}

.sx-header-logo svg {
    height: 50px;
    width: auto;
}

.sx-header.is-scrolled .sx-header-logo,
.sx-no-hero .sx-header-logo {
    color: #1B4C7C;
}

.sx-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sx-nav li {
    margin: 0 10px;
}

.sx-nav a {
    display: block;
    padding: 15px 9px;
    font-family: var(--sx-font-heading);
    font-size: 16px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.sx-nav a:hover,
.sx-nav a[aria-current="page"] {
    color: var(--sx-color-gray-bg);
}

.sx-header.is-scrolled .sx-nav a:hover,
.sx-header.is-scrolled .sx-nav a[aria-current="page"],
.sx-no-hero .sx-nav a:hover,
.sx-no-hero .sx-nav a[aria-current="page"] {
    color: var(--sx-color-accent);
}

/* Botón de acceso (sección 69, reemplaza al de la 68): un círculo con el
   ícono de usuario, del color del texto del encabezado. El texto
   "Ingresar" / "Mi panel" es el globo que aparece al pasar o enfocar; en el
   menú del celular se muestra al lado del círculo. */
.sx-nav .sx-nav-login {
    display: flex;
    align-items: center;
    margin-left: 14px;
}

.sx-nav .sx-acceso {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    color: inherit;
}

.sx-acceso-circulo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sx-acceso-circulo svg {
    width: 20px;
    height: 20px;
}

.sx-nav .sx-acceso:hover .sx-acceso-circulo,
.sx-nav .sx-acceso:focus-visible .sx-acceso-circulo {
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
}

.sx-header.is-scrolled .sx-nav .sx-acceso:hover .sx-acceso-circulo,
.sx-no-hero .sx-nav .sx-acceso:hover .sx-acceso-circulo {
    background: rgba(12, 24, 39, 0.06);
}

/* Con sesión: el mismo círculo, lleno en celeste. */
.sx-nav .sx-acceso.is-panel .sx-acceso-circulo {
    opacity: 1;
    background: var(--sx-color-accent);
    border-color: var(--sx-color-accent);
    color: var(--sx-color-white);
}

.sx-acceso-texto {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--sx-color-ink);
    color: var(--sx-color-white);
    font-family: var(--sx-font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sx-nav .sx-acceso:hover .sx-acceso-texto,
.sx-nav .sx-acceso:focus-visible .sx-acceso-texto {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sx-nav .sx-acceso:focus-visible {
    outline: 3px solid var(--sx-color-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .sx-acceso-circulo,
    .sx-acceso-texto {
        transition: none;
    }
}

.sx-menu-toggle {
    display: none;
    width: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sx-menu-toggle span {
    display: block;
    height: 3px;
    margin-bottom: 4px;
    background: var(--sx-color-blue-dark);
}

.sx-menu-toggle span:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {

    /* Igual que el "CSS adicional" del sitio actual: en tablet/celular el header va siempre blanco. */
    .sx-header {
        background: var(--sx-color-white);
        color: #11233A;
    }

    .sx-header-logo {
        color: #1B4C7C;
    }

    .sx-menu-toggle {
        display: block;
    }

    .sx-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        margin-top: 10px;
    }

    .sx-nav.is-open {
        display: block;
    }

    .sx-nav ul {
        flex-direction: column;
    }

    .sx-nav li {
        margin: 0;
        background: var(--sx-color-gray-bg);
        border-bottom: 1px solid var(--sx-color-gray-bg);
    }

    .sx-nav a {
        padding: 15px 10px;
        color: #11233A;
    }

    .sx-nav a:hover,
    .sx-nav a[aria-current="page"] {
        background: #D6D6D6;
        color: #000;
    }

    /* Menú del celular (sección 69): una fila más, con el círculo y el texto. */
    .sx-nav .sx-nav-login {
        display: block;
        margin-left: 0;
    }

    .sx-nav .sx-acceso,
    .sx-nav .sx-acceso:hover {
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        height: auto;
        min-height: 52px;
        padding: 8px 10px;
        border-radius: 0;
        box-sizing: border-box;
        color: #11233A;
    }

    .sx-acceso-circulo {
        width: 34px;
        height: 34px;
        opacity: 1;
    }

    .sx-acceso-texto,
    .sx-nav .sx-acceso:hover .sx-acceso-texto {
        position: static;
        padding: 0;
        background: none;
        color: inherit;
        font-family: var(--sx-font-heading);
        font-size: 16px;
        font-weight: 400;
        opacity: 1;
        transform: none;
    }

    .sx-nav .sx-acceso:focus-visible {
        outline-offset: -3px;
    }
}

@media (max-width: 767px) {
    .sx-header-inner {
        padding: 0 20px;
    }
}

.sx-no-hero .sx-main {
    padding-top: var(--sx-header-height);
}

/* =========================================================
   Hero (slideshow con Ken Burns, o imagen fija)
   ========================================================= */

.sx-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding: 100px 10px 50px;
    overflow: hidden;
    background-color: var(--sx-color-ink);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--sx-color-white);
    text-align: center;
}

.sx-hero--project {
    background-position: center left;
}

.sx-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--sx-color-ink);
    opacity: var(--sx-overlay-opacity, 0.3);
    pointer-events: none;
}

.sx-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sx-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity var(--sx-transition, 1000ms) ease-in-out;
}

.sx-slide.is-active {
    opacity: 1;
    animation: sx-ken-burns calc(var(--sx-duration, 2500ms) + var(--sx-transition, 1000ms) * 2) linear forwards;
}

@keyframes sx-ken-burns {
    from { transform: scale(1); }
    to { transform: scale(1.3); }
}

.sx-hero-title,
.sx-hero-content {
    position: relative;
    z-index: 2;
}

.sx-hero-title {
    font-size: 54px;
    font-weight: 600;
}

.sx-hero--page {
    padding: 240px 10px 160px;
}

.sx-hero-project-name {
    font-size: 48px;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.sx-hero-project-address {
    font-family: var(--sx-font-heading);
    font-size: 18px;
}

@media (max-width: 1024px) {
    .sx-hero--page { padding: 160px 40px 120px; }
}

@media (max-width: 767px) {
    .sx-hero--page { padding: 160px 24px 80px; }
    .sx-hero-title { font-size: 36px; }
    .sx-hero-project-name { font-size: 40px; }
}

/* =========================================================
   Home — rediseño 2026-10-09 (CONTEXTO.md sección 40)
   Idea: "saxum" = roca en latín → solidez. Tipografía condensada y
   alta (Barlow Condensed, misma familia que el cuerpo) y fotos
   verticales, como los edificios. Colores: tinta, azul del logo y gris
   hormigón; el celeste de acento queda solo para foco/hover.
   ========================================================= */

.sx-home-h2 {
    margin-bottom: 28px;
    font-family: var(--sx-font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    color: inherit;
}

.sx-home-h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin-bottom: 28px;
    font-family: var(--sx-font-display);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
}

.sx-home-lead {
    max-width: 52ch;
    font-size: 21px;
    line-height: 1.5;
}

.sx-home-link {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid currentColor;
    color: var(--sx-color-brand);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sx-home-link:hover {
    color: var(--sx-color-accent);
}

.sx-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Sección 69: un 15 % más bajos (52 → 44 px) y con menos aire alrededor
   del texto. Todos los botones del Inicio usan esta misma base. */
.sx-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    font-family: var(--sx-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sx-home-btn svg {
    width: 16px;
    height: 16px;
}

.sx-home-btn:focus-visible {
    outline: 3px solid var(--sx-color-accent);
    outline-offset: 3px;
}

/* Sobre fondo claro: "Conocé al equipo" (lleno) y "Ver todos los
   proyectos" (borde), con la misma lógica que los del hero. */
.sx-home-btn--dark {
    background: var(--sx-color-ink);
    border-color: var(--sx-color-ink);
    color: var(--sx-color-white);
}

.sx-home-btn--dark:hover {
    background: var(--sx-color-accent);
    border-color: var(--sx-color-accent);
    color: var(--sx-color-white);
}

.sx-home-btn--outline {
    border-color: var(--sx-color-ink);
    color: var(--sx-color-ink);
}

.sx-home-btn--outline:hover {
    background: var(--sx-color-ink);
    color: var(--sx-color-white);
}

.sx-home-about-copy .sx-home-btn {
    margin-top: 8px;
}

.sx-home-btn--light {
    background: var(--sx-color-white);
    border-color: var(--sx-color-white);
    color: var(--sx-color-ink);
}

.sx-home-btn--light:hover {
    background: var(--sx-color-concrete);
    border-color: var(--sx-color-concrete);
}

.sx-home-btn--ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--sx-color-white);
}

.sx-home-btn--ghost:hover {
    background: var(--sx-color-white);
    border-color: var(--sx-color-white);
    color: var(--sx-color-ink);
}

/* --- Hero --- */

.sx-hero--home {
    align-items: stretch;
    justify-content: flex-end;
    min-height: clamp(640px, 100svh, 1000px);
    padding: 160px 0 88px;
    text-align: left;
}

/* Ken Burns más lento y sutil que en el resto del sitio: calma, no vértigo. */
.sx-hero--home .sx-slide.is-active {
    animation-name: sx-ken-burns-soft;
}

@keyframes sx-ken-burns-soft {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* Sombra para que el texto se lea sobre cualquier foto (abajo) y el menú blanco (arriba). */
.sx-home-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(12, 24, 39, 0.55) 0%, rgba(12, 24, 39, 0) 22%),
        linear-gradient(to top, rgba(12, 24, 39, 0.88) 0%, rgba(12, 24, 39, 0.45) 45%, rgba(12, 24, 39, 0.1) 100%);
    pointer-events: none;
}

.sx-home-hero-content {
    position: relative;
    z-index: 2;
}

.sx-home-hero-title {
    max-width: 11ch;
    font-family: var(--sx-font-display);
    font-size: clamp(56px, 7.5vw, 112px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.015em;
}

.sx-home-hero-lead {
    max-width: 46ch;
    margin-top: 24px;
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.sx-home-hero-content .sx-home-actions {
    margin-top: 36px;
}

/* --- Cifras --- */

.sx-home-facts {
    padding: 96px 0;
    background: var(--sx-color-ink);
    color: var(--sx-color-white);
}

.sx-home-facts-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
}

.sx-home-facts-statement {
    font-size: 26px;
    font-weight: 300;
    line-height: 1.45;
}

.sx-home-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-home-figures li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 16px 4px 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.sx-home-figure {
    font-family: var(--sx-font-display);
    font-size: clamp(40px, 3.9vw, 56px);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sx-home-figure-label {
    font-size: 16px;
    line-height: 1.35;
    color: var(--sx-color-stone);
}

/* --- Quiénes somos --- */

.sx-home-about {
    padding: var(--sx-home-space) 0;
}

.sx-home-about-inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 96px;
    align-items: center;
}

.sx-home-about-copy p {
    max-width: 60ch;
    font-size: 18px;
    color: var(--sx-color-gray-text);
}

.sx-home-about-copy .sx-home-lead {
    margin-bottom: 20px;
    color: var(--sx-color-ink);
}

.sx-home-about-copy .sx-home-about-note {
    margin: 32px 0 36px;
    padding-left: 18px;
    border-left: 2px solid var(--sx-color-brand);
    color: var(--sx-color-ink);
}

.sx-home-about-media {
    margin: 0;
}

.sx-home-about-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--sx-color-concrete);
}

/* --- Calidad --- */

.sx-home-quality {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--sx-color-concrete);
}

.sx-home-quality-media {
    min-height: 640px;
    background-size: cover;
    background-position: center center;
}

.sx-home-quality-copy {
    align-self: center;
    padding: 96px max(20px, calc((100vw - var(--sx-content-width)) / 2 + 10px)) 96px 80px;
}

.sx-home-quality-copy .sx-home-lead {
    color: var(--sx-color-ink);
}

.sx-home-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    margin: 48px 0 0;
}

.sx-home-pillars > div {
    padding-top: 18px;
    border-top: 1px solid var(--sx-color-line);
}

.sx-home-pillars dt {
    font-size: 18px;
    font-weight: 600;
    color: var(--sx-color-ink);
}

.sx-home-pillars dd {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--sx-color-gray-text);
}

/* --- Proyectos --- */

.sx-home-projects {
    padding: var(--sx-home-space) 0;
}

.sx-home-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.sx-home-section-head .sx-home-h2 {
    margin-bottom: 0;
}

.sx-home-building {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-home-building-card {
    display: flex;
    flex-direction: column;
    color: var(--sx-color-ink);
    text-decoration: none;
}

.sx-home-building-media {
    display: block;
    overflow: hidden;
    background: var(--sx-color-concrete);
}

.sx-home-building-media img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sx-home-building-card:hover .sx-home-building-media img {
    transform: scale(1.03);
}

.sx-home-building-name {
    margin-top: 18px;
    font-family: var(--sx-font-display);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    transition: color 0.2s ease;
}

.sx-home-building-card:hover .sx-home-building-name {
    color: var(--sx-color-brand);
}

.sx-home-building-address {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--sx-color-gray-text);
}

.sx-home-building + .sx-home-h3 {
    margin-top: 96px;
}

.sx-home-finished {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--sx-color-line);
}

.sx-home-finished li {
    border-bottom: 1px solid var(--sx-color-line);
}

.sx-home-finished a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    color: var(--sx-color-ink);
    text-decoration: none;
}

.sx-home-finished img {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: var(--sx-color-concrete);
}

.sx-home-finished a > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sx-home-finished-name {
    font-family: var(--sx-font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.sx-home-finished a:hover .sx-home-finished-name {
    color: var(--sx-color-brand);
}

.sx-home-finished-address {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--sx-color-gray-text);
}

/* --- Cierre --- */

.sx-home-contact {
    padding: 96px 0;
    background: var(--sx-color-brand);
    color: var(--sx-color-white);
}

.sx-home-contact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.sx-home-contact .sx-home-lead {
    color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .sx-home-building-media img { transition: none; }
    .sx-home-building-card:hover .sx-home-building-media img { transform: none; }
}

@media (max-width: 1024px) {
    .sx-hero--home { padding: 160px 0 64px; }
    .sx-home-facts-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .sx-home-about-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .sx-home-about-media img { aspect-ratio: 4 / 3; }
    .sx-home-quality { grid-template-columns: minmax(0, 1fr); }
    .sx-home-quality-media { min-height: 420px; }
    .sx-home-quality-copy { padding: 72px 40px; }
    .sx-home-finished { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-hero--home .sx-container,
    .sx-home-about .sx-container,
    .sx-home-projects .sx-container,
    .sx-home-facts .sx-container,
    .sx-home-contact .sx-container,
    .sx-news-band { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 767px) {
    :root { --sx-home-space: 80px; }
    .sx-hero--home { min-height: clamp(560px, 100svh, 900px); padding-bottom: 48px; }
    .sx-hero--home .sx-container,
    .sx-home-about .sx-container,
    .sx-home-projects .sx-container,
    .sx-home-facts .sx-container,
    .sx-home-contact .sx-container,
    .sx-news-band { padding-left: 20px; padding-right: 20px; }
    .sx-home-hero-lead { font-size: 18px; }
    .sx-home-actions .sx-home-btn { flex: 1 1 100%; }
    .sx-home-facts { padding: 72px 0; }
    .sx-home-facts-statement { font-size: 22px; }
    .sx-home-figures { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .sx-home-figures li { flex-direction: row; align-items: baseline; gap: 16px; padding-left: 18px; }
    .sx-home-figure { min-width: 4.2em; }
    .sx-home-lead { font-size: 19px; }
    .sx-home-quality-media { min-height: 300px; }
    .sx-home-quality-copy { padding: 64px 20px; }
    .sx-home-pillars { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    /* En obra: carrusel con scroll horizontal (se ve que hay más). */
    .sx-home-building {
        display: flex;
        gap: 16px;
        margin: 0 -20px;
        padding: 0 20px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
    }
    .sx-home-building li { flex: 0 0 78%; scroll-snap-align: start; }
    .sx-home-building-name { font-size: 28px; }
    .sx-home-building + .sx-home-h3 { margin-top: 72px; }
    .sx-home-finished { grid-template-columns: minmax(0, 1fr); }
    .sx-home-contact { padding: 72px 0; }
}

/* =========================================================
   Nosotros — rediseño 2026-11-06 (CONTEXTO.md sección 70)
   Mismo lenguaje que el Inicio: reusa .sx-home-h2, .sx-home-lead,
   el sombreado y el título del hero, la sección partida de "Calidad"
   (.sx-home-quality) y el cierre con contacto.
   ========================================================= */

/* --- Hero --- */

.sx-about-hero {
    align-items: stretch;
    justify-content: flex-end;
    min-height: clamp(520px, 78svh, 820px);
    padding: 160px 0 88px;
    background-position: center 40%;
    text-align: left;
}

/* --- Qué significa SAXUM --- */

.sx-about-meaning {
    padding: 96px 0;
    background: var(--sx-color-ink);
    color: var(--sx-color-white);
}

.sx-about-meaning-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
}

.sx-about-word {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sx-about-word-name {
    font-family: var(--sx-font-display);
    font-size: clamp(72px, 9vw, 136px);
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: 0.02em;
}

.sx-about-word-note {
    padding-left: 16px;
    border-left: 2px solid var(--sx-color-stone);
    font-size: 17px;
    font-style: italic;
    color: var(--sx-color-stone);
}

.sx-about-meaning-text {
    max-width: 34ch;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.45;
}

.sx-about-meaning-text strong {
    font-weight: 600;
}

/* --- Valores --- */

.sx-about-values {
    padding: var(--sx-home-space) 0;
}

.sx-about-values-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
}

.sx-about-values-list li {
    padding-top: 22px;
    border-top: 2px solid var(--sx-color-ink);
}

.sx-about-value-number {
    display: block;
    font-family: var(--sx-font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--sx-color-brand);
    font-variant-numeric: tabular-nums;
}

.sx-about-value-name {
    margin: 14px 0 12px;
    font-family: var(--sx-font-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.05;
}

.sx-about-values-list p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--sx-color-gray-text);
}

/* --- Misión y visión --- */

/* La foto es de obra con el trabajador a la derecha: ahí va el recorte. */
.sx-about-purpose-media {
    background-position: 72% center;
}

.sx-about-purpose-copy {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.sx-about-purpose-block .sx-home-h2 {
    margin-bottom: 18px;
}

.sx-about-purpose-block + .sx-about-purpose-block {
    padding-top: 48px;
    border-top: 1px solid var(--sx-color-line);
}

/* --- Equipo --- */

.sx-about-team {
    padding: var(--sx-home-space) 0;
}

.sx-about-team-head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: center;
}

.sx-about-team-copy > p {
    max-width: 60ch;
    font-size: 18px;
    color: var(--sx-color-gray-text);
}

.sx-about-team-copy .sx-home-lead {
    font-size: 21px;
    color: var(--sx-color-ink);
}

.sx-about-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 24px;
    padding: 0;
    list-style: none;
}

.sx-about-areas li {
    padding: 7px 14px;
    background: var(--sx-color-concrete);
    font-size: 15px;
    font-weight: 600;
    color: var(--sx-color-ink);
}

.sx-about-team-photo {
    margin: 0;
}

.sx-about-team-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--sx-color-concrete);
}

.sx-about-members {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 24px;
    margin: 96px 0 0;
    padding: 0;
    list-style: none;
}

.sx-about-member {
    display: flex;
    flex-direction: column;
}

.sx-about-member-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    background: var(--sx-color-concrete);
}

/* Sin foto: el logo en gris sobre hormigón, en vez de un recuadro vacío. */
.sx-about-member-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sx-color-line);
}

.sx-about-member-photo--empty svg {
    width: 46%;
    height: auto;
}

.sx-about-member-name {
    margin-top: 18px;
    font-family: var(--sx-font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.05;
}

.sx-about-member-role {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    color: var(--sx-color-gray-text);
}

@media (max-width: 1024px) {
    .sx-about-hero { padding: 160px 0 64px; }
    .sx-about-hero .sx-container,
    .sx-about-meaning .sx-container,
    .sx-about-values .sx-container,
    .sx-about-team .sx-container { padding-left: 40px; padding-right: 40px; }
    .sx-about-meaning-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .sx-about-values-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
    .sx-about-team-head { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .sx-about-members { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 72px; }
}

@media (max-width: 767px) {
    .sx-about-hero { min-height: clamp(480px, 82svh, 720px); padding-bottom: 48px; }
    .sx-about-hero .sx-container,
    .sx-about-meaning .sx-container,
    .sx-about-values .sx-container,
    .sx-about-team .sx-container { padding-left: 20px; padding-right: 20px; }
    .sx-about-meaning { padding: 72px 0; }
    .sx-about-meaning-text { font-size: 22px; }
    .sx-about-values-list { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 40px; }
    .sx-about-value-name { font-size: 28px; }
    .sx-about-purpose-copy { gap: 40px; }
    .sx-about-purpose-block + .sx-about-purpose-block { padding-top: 40px; }
    .sx-about-team-copy .sx-home-lead { font-size: 19px; }
    .sx-about-members { gap: 40px 16px; margin-top: 56px; }
    .sx-about-member-name { font-size: 21px; }
    .sx-about-member-role { font-size: 12px; letter-spacing: 0.04em; }
}

/* =========================================================
   Home — Novedades (tarjeta rediseñada 2026-09-30, CONTEXTO.md
   sección 32): imagen + sello de fecha de un lado, texto del otro;
   --flip (una de cada dos con imagen) invierte el orden en escritorio.
   ========================================================= */

/* Encabezado alineado con el resto de las secciones de la Home
   (rediseño 2026-10-09, sección 40): ya no es una banda azul. */
.sx-news {
    padding: var(--sx-home-space) 0;
    background: var(--sx-color-concrete);
    scroll-margin-top: var(--sx-header-height);
}

.sx-news-band {
    max-width: var(--sx-content-width);
    margin: 0 auto 56px;
    padding: 0 10px;
}

.sx-news-band-title {
    font-family: var(--sx-font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--sx-color-ink);
}

.sx-news-list {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.sx-news-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    background: var(--sx-color-white);
    box-shadow: var(--sx-shadow);
}

.sx-news-card--flip {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.sx-news-card--flip .sx-news-media {
    order: 2;
}

.sx-news-card--no-media {
    grid-template-columns: minmax(0, 1fr);
}

.sx-news-media {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: var(--sx-color-gray-card);
}

.sx-news-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s ease;
}

.sx-news-card:hover .sx-news-media img {
    transform: scale(1.04);
}

/* Sello de fecha sobre la imagen. */
.sx-news-stamp {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 92px;
    padding: 14px 16px 12px;
    background: var(--sx-color-ink);
    color: var(--sx-color-white);
    font-family: var(--sx-font-display);
    text-align: center;
}

.sx-news-card--flip .sx-news-stamp {
    left: auto;
    right: 0;
}

.sx-news-stamp-day {
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
}

.sx-news-stamp-month {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.14em;
}

.sx-news-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 60px;
}

/* Filete de acento arriba del título. */
.sx-news-body::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-bottom: 24px;
    background: var(--sx-color-accent);
}

.sx-news-date {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--sx-color-gray-text);
}

.sx-news-title {
    font-family: var(--sx-font-display);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.05;
    color: var(--sx-color-ink);
}

.sx-news-project {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--sx-color-brand);
}

.sx-news-text {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--sx-color-gray-text);
}

.sx-news-text p + p {
    margin-top: 1em;
}

.sx-news-actions {
    margin-top: auto;
    padding-top: 32px;
}

.sx-news-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    box-sizing: border-box;
    background: var(--sx-color-ink);
    border: 1px solid var(--sx-color-ink);
    color: var(--sx-color-white);
    font-family: var(--sx-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sx-news-button svg {
    transition: transform 0.3s ease;
}

.sx-news-button:hover {
    background: var(--sx-color-accent);
    border-color: var(--sx-color-accent);
}

.sx-news-button:hover svg {
    transform: translateX(4px);
}

.sx-news-placeholder {
    padding: 35px 30px;
    background: var(--sx-color-gray-card);
    border: 2px dashed #B8B8B8;
    color: var(--sx-color-gray-text);
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .sx-news-media img,
    .sx-news-button svg { transition: none; }
    .sx-news-card:hover .sx-news-media img { transform: none; }
}

@media (max-width: 1024px) {
    .sx-news-card,
    .sx-news-card--flip { grid-template-columns: minmax(0, 1fr); }
    .sx-news-card--flip .sx-news-media { order: 0; }
    .sx-news-card--flip .sx-news-stamp { left: 0; right: auto; }
    .sx-news-media { min-height: 0; aspect-ratio: 16 / 9; }
    .sx-news-body { padding: 40px 44px; }
}

@media (max-width: 767px) {
    .sx-news-band { margin-bottom: 36px; }
    .sx-news-list { gap: 36px; }
    .sx-news-media { aspect-ratio: 4 / 3; }
    .sx-news-stamp { min-width: 74px; padding: 10px 12px 9px; }
    .sx-news-stamp-day { font-size: 28px; }
    .sx-news-stamp-month { font-size: 11px; }
    .sx-news-body { padding: 28px 22px 32px; }
    .sx-news-title { font-size: 28px; }
    .sx-news-text { font-size: 16px; }
    .sx-news-button { width: 100%; justify-content: center; }
    .sx-news-actions { width: 100%; }
}

/* =========================================================
   Listado de proyectos
   ========================================================= */

.sx-projects-heading {
    margin-top: 160px;
    padding: 0 20px 40px 40px;
    text-align: center;
}

.sx-projects-heading-kicker {
    font-family: var(--sx-font-heading);
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
}

.sx-projects-heading-title {
    font-size: 42px;
    font-weight: 600;
}

.sx-project-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 20px;
    box-shadow: inset 0 10px 30px -20px rgba(0, 0, 0, 0.25);
}

.sx-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 95%;
    max-width: var(--sx-content-width);
    min-height: 500px;
    margin: 10px;
    padding: 25px;
    background-color: #A0A0A0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--sx-color-white);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sx-project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 39, 0.5);
    transition: background-color 0.3s ease;
}

.sx-project-card:hover {
    transform: scale(1.04);
}

.sx-project-card:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.sx-project-card > * {
    position: relative;
}

.sx-project-card-status {
    font-size: 18px;
    font-weight: 300;
}

.sx-project-card-name {
    font-size: 40px;
    font-weight: 500;
}

.sx-project-card-address {
    font-size: 18px;
}

.sx-projects-outro {
    padding: 100px 0;
}

.sx-projects-outro h2 {
    width: 90%;
    margin: 0 auto;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1024px) {
    .sx-project-card { width: 90%; }
    .sx-projects-outro h2 { font-size: 36px; }
}

@media (max-width: 767px) {
    .sx-projects-heading { padding: 0 20px 40px; }
    .sx-projects-heading-kicker,
    .sx-projects-heading-title { font-size: 24px; }
    .sx-project-card {
        min-height: 300px;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .sx-project-card-name { font-size: 36px; }
    .sx-project-card-address { font-size: 16px; }
    .sx-projects-outro h2 { font-size: 24px; }
}

/* =========================================================
   Detalle de proyecto
   ========================================================= */

.sx-tagline {
    padding: 200px 20px;
    text-align: center;
}

.sx-tagline h2 {
    font-size: 36px;
    text-transform: uppercase;
}

.sx-tagline strong {
    font-weight: 600;
}

.sx-project-intro {
    display: flex;
    gap: 20px;
}

.sx-project-intro-media {
    flex: 0.8 1 0;
    min-height: 500px;
    background-color: var(--sx-color-gray-text);
    background-size: cover;
    background-position: center center;
}

.sx-project-intro-copy {
    flex: 1 1 0;
    min-width: 0;
    padding: 15px;
}

.sx-project-type {
    font-size: 18px;
    color: var(--sx-color-blue-mid);
}

.sx-project-intro-title {
    margin-left: -4px;
    font-size: 40px;
    text-transform: uppercase;
}

.sx-project-intro-text {
    margin-top: 40px;
    font-size: 18px;
    text-align: justify;
}

.sx-project-intro-address {
    margin-top: 30px;
    font-size: 18px;
}

.sx-availability {
    display: flex;
    align-items: center;
    min-height: 500px;
    margin: 400px 0 300px;
    background-color: var(--sx-color-accent);
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
}

.sx-availability-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 50%;
    padding: 175px 0 175px 100px;
    background: rgba(34, 34, 34, 0.63);
    color: var(--sx-color-white);
}

.sx-availability-title {
    font-size: 20px;
}

.sx-availability-text {
    margin-bottom: 30px;
    font-family: var(--sx-font-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 50px;
    text-transform: uppercase;
}

.sx-structure {
    display: flex;
    gap: 20px;
    margin-bottom: 400px;
}

.sx-structure-copy,
.sx-structure-media {
    flex: 1 1 0;
    min-width: 0;
}

.sx-structure-copy {
    padding: 20px;
}

.sx-structure-title {
    margin: 0 0 50px -4px;
    font-size: 42px;
    font-weight: 600;
}

.sx-structure-text {
    font-size: 18px;
}

.sx-structure-text p + p,
.sx-project-intro-text p + p {
    margin-top: 1em;
}

.sx-structure-media {
    min-height: 400px;
    background-size: cover;
    background-position: center center;
}

.sx-gallery {
    margin-bottom: 400px;
    padding: 0 10px;
}

.sx-gallery-swiper {
    --swiper-navigation-size: 42px;
    --swiper-navigation-color: rgba(202, 202, 202, 0.69);
    --swiper-pagination-color: var(--sx-color-ink);
    padding-bottom: 40px;
}

.sx-gallery-swiper .swiper-slide {
    padding: 5px;
    height: 460px;
}

.sx-gallery-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.sx-gallery-swiper .swiper-button-prev,
.sx-gallery-swiper .swiper-button-next {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sx-explore {
    display: flex;
    padding: 0 20px 0 70px;
    background: var(--sx-color-gray-bg);
}

.sx-explore-copy,
.sx-next-project {
    flex: 1 1 0;
    min-width: 0;
}

.sx-explore-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.sx-explore-title {
    font-size: 40px;
}

.sx-explore-title strong {
    font-weight: 600;
}

.sx-explore-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0 0 -15px;
    padding: 10px;
}

.sx-explore-actions .sx-button--outline-dark {
    font-family: var(--sx-font-body);
    font-size: 18px;
    color: var(--sx-color-ink);
    border-color: var(--sx-color-ink);
}

.sx-explore-actions .sx-button--outline-dark:hover {
    background: var(--sx-color-ink);
    color: var(--sx-color-white);
}

.sx-next-project {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background-size: cover;
    background-position: center center;
    text-decoration: none;
}

.sx-next-project::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--sx-color-ink);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.sx-next-project:hover::before {
    opacity: 0.35;
}

.sx-next-project-label {
    position: relative;
    font-family: var(--sx-font-heading);
    font-size: 32px;
    text-transform: uppercase;
    color: var(--sx-color-white);
}

.sx-next-project-label strong {
    font-weight: 600;
}

@media (max-width: 1024px) {
    .sx-project-intro { flex-wrap: wrap; justify-content: center; }
    .sx-project-intro-media { flex: none; width: 84%; min-height: 300px; }
    .sx-project-intro-copy { flex: none; width: 90%; padding: 20px; }
    .sx-availability-box { width: 60%; padding: 175px 20px 175px 50px; }
    .sx-availability-text { font-size: 32px; line-height: 1.3; }
    .sx-structure { flex-direction: column; align-items: center; }
    .sx-structure-copy { width: 90%; }
    .sx-structure-media { width: 100%; flex: none; }
    .sx-explore { padding: 0; }
    .sx-explore-title { font-size: 32px; }
    .sx-availability,
    .sx-structure,
    .sx-gallery { margin-bottom: 200px; }
    .sx-availability { margin-top: 200px; }
    .sx-gallery-swiper .swiper-slide { height: 380px; }
}

@media (max-width: 767px) {
    .sx-tagline { padding: 120px 15px; }
    .sx-tagline h2 { font-size: 28px; }
    .sx-project-intro-title { font-size: 36px; }
    .sx-availability-box { width: 100%; padding: 100px 20px; }
    .sx-availability-text { font-size: 28px; }
    .sx-structure-title { font-size: 32px; }
    .sx-explore { flex-direction: column; }
    .sx-next-project { flex: none; }
    .sx-gallery-swiper .swiper-slide { height: 300px; }
}

/* =========================================================
   Contacto
   ========================================================= */

.sx-contact {
    min-height: 1056px;
    margin-top: 100px;
    padding-bottom: 160px;
}

.sx-contact-head {
    margin-left: 6px;
    margin-bottom: 20px;
}

.sx-contact-title {
    font-size: 48px;
}

.sx-contact-lead {
    font-size: 19px;
}

.sx-contact-grid {
    display: flex;
    gap: 20px;
}

.sx-contact-form,
.sx-contact-info {
    flex: 1 1 0;
    min-width: 0;
}

.sx-contact-form {
    padding: 20px;
    background: rgba(231, 230, 230, 0.33);
}

.sx-contact-form-placeholder {
    padding: 20px;
    border: 2px dashed #B8B8B8;
    color: var(--sx-color-gray-text);
}

.sx-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.sx-contact-office h2 {
    margin-bottom: 5px;
    font-size: 28px;
}

.sx-contact-office-address {
    font-size: 18px;
}

.sx-contact-office-hours {
    font-size: 16px;
    font-weight: 300;
}

.sx-map-tiles {
    display: flex;
    gap: 15px;
}

.sx-map-tile {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 150px;
    padding: 10px;
    background: var(--sx-color-blue);
    color: var(--sx-color-white);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sx-map-tile:hover {
    background: var(--sx-color-ink);
    transform: scale(1.05);
}

.sx-map-tile svg {
    width: 50px;
    height: 50px;
}

.sx-map-tile span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Contact Form 7 — mismo "CSS adicional" del sitio actual. */
.sx-contact-form .wpcf7 input[type="text"],
.sx-contact-form .wpcf7 input[type="email"],
.sx-contact-form .wpcf7 input[type="tel"],
.sx-contact-form .wpcf7 textarea,
.sx-contact-form .wpcf7 select {
    width: 100%;
    padding: 14px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    color: #333333;
    background: var(--sx-color-white);
}

.sx-contact-form .wpcf7 input::placeholder,
.sx-contact-form .wpcf7 textarea::placeholder {
    color: #999999;
}

.sx-contact-form .wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.sx-contact-form .wpcf7 p {
    margin-bottom: 16px;
}

.sx-contact-form .wpcf7 input[type="submit"] {
    padding: 14px 36px;
    border: none;
    border-radius: 2px;
    background: var(--sx-color-accent);
    color: var(--sx-color-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sx-contact-form .wpcf7 input[type="submit"]:hover {
    background: #1F6FA3;
    transform: translateY(-1px);
}

.sx-contact-form .wpcf7-not-valid-tip {
    color: #C62828;
    font-size: 14px;
}

.sx-contact-form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 10px 14px;
    border: 2px solid var(--sx-color-accent);
}

/* El CSS de Contact Form 7 no se carga en estas páginas: sin esto quedan dos recuadros vacíos. */
.sx-contact-form .hidden-fields-container,
.sx-contact-form .wpcf7-response-output:empty {
    display: none;
}

.sx-contact-form .form-note {
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 16px;
}

.sx-contact-form .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@media (max-width: 1024px) {
    .sx-contact { margin-top: 62px; padding: 15px 15px 80px; min-height: 0; }
    .sx-contact-title { font-size: 40px; }
    .sx-contact-grid { flex-wrap: wrap; }
    .sx-contact-form,
    .sx-contact-info { flex: 1 1 100%; }
}

@media (max-width: 767px) {
    .sx-contact-title { font-size: 36px; }
    .sx-contact-office h2 { font-size: 24px; }
    .sx-map-tiles { flex-wrap: wrap; }
    .sx-map-tile { flex: 1 1 100%; }
}

/* =========================================================
   404
   ========================================================= */

.sx-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 160px 20px;
    text-align: center;
}

.sx-not-found h1 {
    font-size: 40px;
}

/* =========================================================
   Footer
   ========================================================= */

.sx-footer {
    padding: 80px 10px 40px;
    background: var(--sx-color-ink);
    color: var(--sx-color-white);
}

.sx-footer-inner {
    display: flex;
    gap: 20px;
}

.sx-footer-brand,
.sx-footer-office {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px;
}

.sx-footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.sx-footer-logo {
    display: inline-flex;
    color: var(--sx-color-white);
}

.sx-footer-logo svg {
    height: 70px;
    width: auto;
}

.sx-footer-social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 10px 0 0;
    padding: 10px 0 15px;
}

.sx-footer-social a {
    display: inline-flex;
    color: var(--sx-color-gray-soft);
    transition: color 0.2s ease;
}

.sx-footer-social a:hover {
    color: var(--sx-color-white);
}

.sx-footer-social svg {
    width: 35px;
    height: 35px;
}

.sx-footer-emails {
    font-size: 16px;
}

.sx-footer-emails a {
    text-decoration: none;
}

.sx-footer-emails a:hover {
    text-decoration: underline;
}

.sx-footer-office {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.sx-footer-office-name {
    font-size: 20px;
    color: var(--sx-color-white);
}

.sx-footer-office-address {
    margin-top: 6px;
    font-size: 16px;
}

.sx-whatsapp-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 10px 25px;
    border: 2px solid var(--sx-color-white);
    border-radius: 41px;
    background: var(--sx-color-white);
    color: var(--sx-color-ink);
    font-family: var(--sx-font-heading);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sx-whatsapp-pill:hover {
    background: transparent;
    color: var(--sx-color-white);
}

.sx-whatsapp-pill svg {
    width: 18px;
    height: 18px;
}

.sx-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.sx-footer-legal a {
    color: var(--sx-color-gray-soft);
    text-decoration: none;
}

.sx-footer-legal a:hover {
    color: var(--sx-color-white);
}

@media (max-width: 1024px) {
    .sx-footer-inner { flex-wrap: wrap; }
    .sx-footer-brand { flex: 1 1 100%; }
    .sx-footer-office { flex: 1 1 30%; }
}

@media (max-width: 767px) {
    .sx-footer-office { flex: 1 1 100%; }
}

/* =========================================================
   Bloques de proyecto (CONTEXTO.md sección 68)
   Las variables salen de la plantilla de Elementor de cada proyecto,
   heredando como Elementor: escritorio -> tablet -> celular.
   ========================================================= */

.sx-v-mt { margin-top: var(--mt); }
.sx-v-mb { margin-bottom: var(--mb); }
.sx-v-p { padding: var(--p); }
.sx-v-h { min-height: var(--h); }
.sx-v-bp { background-position: var(--bp); }
.sx-v-bs { background-size: var(--bs); }
.sx-v-fs { font-size: var(--fs); }
.sx-v-fw { font-weight: var(--fw); }
.sx-tagline.sx-v-fs h2 { font-size: var(--fs); }
.sx-tagline.sx-v-fw h2 { font-weight: var(--fw); }

.sx-tagline--plain h2 { text-transform: none; }

.sx-band-gray { background: var(--sx-color-gray-bg); }

.sx-photo-shadow { box-shadow: -4px 8px 12px rgba(0, 0, 0, 0.3); }

.sx-bg-fixed { background-attachment: fixed; }

.sx-hero-project-logo { margin: 0 0 10px; line-height: 0; }
.sx-hero-project-logo img { display: inline-block; width: auto; height: 80px; }

.sx-project-intro-note { font-family: var(--sx-font-body); font-size: 24px; color: var(--sx-color-gray-text); text-transform: none; }

.sx-wide { background-repeat: no-repeat; background-size: cover; background-position: center center; }

.sx-kicker { margin: 0; font-size: 18px; color: var(--sx-color-gray-text); }
.sx-kicker--accent { color: var(--sx-color-accent); }

.sx-block-heading-inner { padding: 15px 15px 0; }
.sx-block-title { margin: 0; font-size: inherit; font-weight: 500; color: var(--sx-color-ink); }
.sx-block-title--upper { text-transform: uppercase; }
.sx-block-title strong { font-weight: 600; }

.sx-slider { position: relative; overflow: hidden; }
.sx-slider .swiper { position: absolute; inset: 0; }
.sx-slider .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sx-slider-overlay { position: absolute; inset: 0; z-index: 2; background: #333; pointer-events: none; }
.sx-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    min-width: 48px;
    min-height: 88px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sx-color-white);
    font-size: 60px;
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transform: translateY(-50%);
}
.sx-slider-prev { left: 30px; }
.sx-slider-next { right: 30px; }

.sx-columns-inner { display: flex; gap: 20px; }
.sx-column { flex: 1 1 0; min-width: 0; padding: 15px; font-size: 18px; line-height: 28px; color: var(--sx-color-ink); }
.sx-column p + p { margin-top: 20px; }
.sx-column strong { font-weight: 600; }

.sx-prose-inner { padding: 15px; }
.sx-prose-inner .sx-block-title { margin-bottom: 20px; }
.sx-prose-inner .sx-column { padding: 0; }

.sx-split-inner { display: flex; gap: 20px; }
.sx-split-copy { flex: 1 1 0; min-width: 0; padding: 0 15px; }
.sx-split-copy .sx-block-title { margin-bottom: 20px; }
.sx-split-copy .sx-column { padding: 0; }
.sx-split-media { flex: 1 1 0; min-height: 420px; background-size: cover; background-position: center center; background-repeat: no-repeat; }

.sx-structure--solo .sx-structure-copy { flex: 1 1 100%; }

.sx-availability-box--light { background: rgba(58, 58, 58, 0.63); }

.sx-explore-copy--end { align-items: flex-end; }

.sx-not-found .sx-button + .sx-button { margin-left: 10px; }

/* Botón flotante de WhatsApp (reemplaza a Buttonizer: misma ubicación y dos oficinas). */
.sx-wa-float {
    position: fixed;
    right: 72px;
    bottom: 45px;
    z-index: 99970;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.sx-wa-float-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1C4768;
    color: var(--sx-color-white);
    box-shadow: var(--sx-shadow);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.sx-wa-float-toggle:hover { background: var(--sx-color-accent); }
.sx-wa-float-toggle svg { width: 26px; height: 26px; }
.sx-wa-float-list { list-style: none; margin: 0; padding: 0; }
.sx-wa-float-list[hidden] { display: none; }
.sx-wa-float-list li + li { margin-top: 8px; }
.sx-wa-float-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 22px;
    background: var(--sx-color-white);
    color: #1C4768;
    font-family: var(--sx-font-heading);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--sx-shadow);
}
.sx-wa-float-list a:hover { color: var(--sx-color-accent); }
.sx-wa-float-list svg { flex: none; width: 20px; height: 20px; }

@media (hover: none) {
    /* background-attachment: fixed no anda en celulares ni tablets táctiles. */
    .sx-bg-fixed { background-attachment: scroll; }
}

@media (max-width: 1024px) {
    .sx-v-mt { margin-top: var(--mt-t, var(--mt)); }
    .sx-v-mb { margin-bottom: var(--mb-t, var(--mb)); }
    .sx-v-p { padding: var(--p-t, var(--p)); }
    .sx-v-h { min-height: var(--h-t, var(--h)); }
    .sx-v-bp { background-position: var(--bp-t, var(--bp)); }
    .sx-v-bs { background-size: var(--bs-t, var(--bs)); }
    .sx-v-fs, .sx-tagline.sx-v-fs h2 { font-size: var(--fs-t, var(--fs)); }
    .sx-split-inner { flex-direction: column; }
    .sx-split-media { flex: none; width: 100%; min-height: 300px; }
}

@media (max-width: 767px) {
    /* Pedido del usuario (68.7): los márgenes de hasta 400 px del original se topean en celular. */
    .sx-v-mt { margin-top: min(var(--mt-m, var(--mt-t, var(--mt))), 64px); }
    .sx-v-mb { margin-bottom: min(var(--mb-m, var(--mb-t, var(--mb))), 64px); }
    .sx-v-p { padding: var(--p-m, var(--p-t, var(--p))); }
    .sx-v-h { min-height: var(--h-m, var(--h-t, var(--h))); }
    .sx-v-bp { background-position: var(--bp-m, var(--bp-t, var(--bp))); }
    .sx-v-bs { background-size: var(--bs-m, var(--bs-t, var(--bs))); }
    .sx-v-fs, .sx-tagline.sx-v-fs h2 { font-size: var(--fs-m, var(--fs-t, var(--fs))); }
    .sx-hide-mobile { display: none; }
    .sx-tagline, .sx-tagline.sx-v-p { padding: 64px 20px; }
    .sx-tagline h2 { padding: 0; }
    .sx-block-spacer.sx-v-p { padding: 32px 0; }
    .sx-block-heading.sx-v-p { padding: 48px 0 8px; }
    .sx-columns.sx-v-p { padding: 8px 0 40px; }
    .sx-prose.sx-v-p, .sx-split.sx-v-p { padding: 40px 0; }
    .sx-availability { margin: 64px 0; }
    .sx-availability.sx-v-h { min-height: 0; }
    .sx-availability-box.sx-v-p { padding: 64px 20px; }
    .sx-structure, .sx-gallery { margin-bottom: 64px; }
    .sx-slider.sx-v-h { min-height: 320px; }
    .sx-wide.sx-v-h { min-height: 240px; }
    .sx-hero-project-logo img { height: 70px; }
    .sx-columns-inner { flex-direction: column; gap: 0; }
    .sx-column { font-size: 16px; }
    .sx-slider-arrow { min-height: 64px; font-size: 44px; }
    .sx-slider-prev { left: 10px; }
    .sx-slider-next { right: 10px; }
    .sx-wa-float { right: 16px; bottom: 16px; }
    .sx-not-found .sx-button + .sx-button { margin: 10px 0 0; }
}
