/* ==========================================================================
   global.css — Sistema compartido de Transportes Raúl Martín.

   Contiene exclusivamente lo que se reutiliza en todo el sitio:
   tipografías locales, variables, reset, base tipográfica, utilidades,
   componentes compartidos, cabecera (#site_header), pie (#site_footer),
   menú móvil y accesibilidad.

   Los estilos exclusivos de cada página viven en assets/css/<pagina>.css
   y todos sus selectores arrancan por el ID de su sección.
   ========================================================================== */

/* ==========================================================================
   1. TIPOGRAFÍAS LOCALES
   ========================================================================== */

/* Display condensado para titulares. */
@font-face {
    font-family: "Big Shoulders Display";
    src: url("../fonts/big-shoulders-display-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Big Shoulders Display";
    src: url("../fonts/big-shoulders-display-800.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Big Shoulders Display";
    src: url("../fonts/big-shoulders-display-900.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

/* Sans de cuerpo. */
@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/inter-tight-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/inter-tight-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/inter-tight-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/inter-tight-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Monoespaciada para antetítulos, cifras y datos técnicos. */
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* ==========================================================================
   2. VARIABLES
   ========================================================================== */

:root {
    /* Fondos oscuros: base de héroes, cintas y pie. */
    --site-night-900: #0b1220;
    --site-night-800: #131c2e;
    --site-night-700: #1e2a42;
    --site-night-600: #2b3a58;

    /* Azul corporativo, tomado de las referencias del sector. */
    --site-blue-500: #1f5fff;
    --site-blue-600: #1348d4;
    --site-blue-100: #e4edff;
    --site-blue-50: #f2f6ff;

    /* Neutros claros. */
    --site-paper: #f6f8fc;
    --site-surface: #ffffff;
    --site-line: #dce3ef;

    /* Textos. */
    --site-ink-900: #0b1220;
    --site-ink-700: #3c4a63;
    --site-ink-500: #5a6884;
    --site-ink-on-dark: #ffffff;
    --site-ink-muted-dark: #a7b4cc;

    /* Estados de formulario. */
    --site-success: #17754a;
    --site-success-soft: #e6f4ec;
    --site-error: #b3261e;
    --site-error-soft: #fbeae9;

    /* Tipografías. */
    --site-font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
    --site-font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --site-font-mono: "JetBrains Mono", "Courier New", monospace;

    /* Radios. */
    --site-radius-small: 6px;
    --site-radius-medium: 12px;
    --site-radius-large: 22px;
    --site-radius-pill: 999px;

    /* Escala de espaciado 4 / 8. */
    --site-space-1: 4px;
    --site-space-2: 8px;
    --site-space-3: 12px;
    --site-space-4: 16px;
    --site-space-5: 24px;
    --site-space-6: 32px;
    --site-space-7: 48px;
    --site-space-8: 64px;
    --site-space-9: 96px;

    /* Layout. */
    --site-container: 1280px;
    --site-gutter: clamp(20px, 4vw, 40px);
    --site-section-space: clamp(72px, 9vw, 128px);
    --site-header-height: 84px;

    /* Sombras. */
    --site-shadow-soft: 0 10px 30px rgba(11, 18, 32, 0.07);
    --site-shadow-raised: 0 22px 48px rgba(11, 18, 32, 0.14);

    /* Curvas y duraciones de transición. */
    --site-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --site-duration-fast: 180ms;
    --site-duration-medium: 280ms;
}

/* ==========================================================================
   3. RESET MÍNIMO
   ========================================================================== */

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

html {
    /* Compensa la cabecera fija al saltar a un ancla. */
    scroll-padding-top: calc(var(--site-header-height) + var(--site-space-5));
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.trmel-site {
    margin: 0;
    background-color: var(--site-paper);
    color: var(--site-ink-900);
    font-family: var(--site-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* Evita el scroll horizontal accidental de las capas con parallax. */
    overflow-x: hidden;
}

body.trmel-site h1,
body.trmel-site h2,
body.trmel-site h3,
body.trmel-site h4 {
    margin: 0;
    font-family: var(--site-font-display);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

body.trmel-site h1 {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 900;
}

body.trmel-site h2 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

body.trmel-site h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.05;
}

body.trmel-site h4 {
    font-size: 1.0625rem;
    font-family: var(--site-font-body);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
}

body.trmel-site p {
    margin: 0;
    text-wrap: pretty;
}


body.trmel-site img {
    display: block;
    max-width: 100%;
    height: auto;
}

body.trmel-site ul,
body.trmel-site ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

dl,
dd,
dt {
    margin: 0;
}

table {
    border-collapse: collapse;
}

button {
    font: inherit;
    color: inherit;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* ==========================================================================
   4. POLÍTICA DE JERARQUÍA

   Los resets anteriores son deliberadamente neutros. Los componentes
   visuales compartidos se anclan a los IDs de las secciones donde aparecen.
   Así, una regla del tema o de Elementor sobre enlaces, botones, campos o
   contenedores no puede ganar por una especificidad accidental.
   ========================================================================== */

/* ==========================================================================
   5. UTILIDADES GLOBALES
   ========================================================================== */

/* Contenedor de ancho máximo, reutilizado por todas las secciones. */
#site_header .site-shell,
#site_footer .site-shell,
#site_reviews .site-shell,
#home_hero .site-shell,
#home_stats .site-shell,
#home_services .site-shell,
#home_about .site-shell,
#home_process .site-shell,
#home_coverage .site-shell,
#home_quote .site-shell,
#home_cta .site-shell,
#about_hero .site-shell,
#about_story .site-shell,
#about_values .site-shell,
#about_process .site-shell,
#about_stats .site-shell,
#about_cta .site-shell,
#services_hero .site-shell,
#services_list .site-shell,
#services_compare .site-shell,
#services_faq .site-shell,
#services_cta .site-shell,
#contact_hero .site-shell,
#contact_details .site-shell,
#contact_form_section .site-shell {
    width: min(100% - (var(--site-gutter) * 2), var(--site-container));
    margin-inline: auto;
}

/* Texto disponible solo para lectores de pantalla. */
.site-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Enlace de salto al contenido principal. */
.site-skip-link {
    position: absolute;
    top: var(--site-space-3);
    left: var(--site-space-3);
    z-index: 200;
    padding: var(--site-space-3) var(--site-space-5);
    transform: translateY(-200%);
    border-radius: var(--site-radius-pill);
    background-color: var(--site-blue-500);
    color: var(--site-ink-on-dark);
    font-family: var(--site-font-mono);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: transform var(--site-duration-medium) var(--site-ease-out);
}

.site-skip-link:focus-visible {
    transform: translateY(0);
    color: var(--site-ink-on-dark);
}

/* ==========================================================================
   6. COMPONENTES COMPARTIDOS
   ========================================================================== */

/* --- 6.1 Antetítulo con barra decorativa ------------------------------- */

#site_reviews .site-eyebrow,
#home_hero .site-eyebrow,
#home_services .site-eyebrow,
#home_about .site-eyebrow,
#home_process .site-eyebrow,
#home_coverage .site-eyebrow,
#home_quote .site-eyebrow,
#about_hero .site-eyebrow,
#about_story .site-eyebrow,
#about_values .site-eyebrow,
#about_process .site-eyebrow,
#services_hero .site-eyebrow,
#services_compare .site-eyebrow,
#services_faq .site-eyebrow,
#contact_hero .site-eyebrow,
#contact_details .site-eyebrow,
#contact_form_section .site-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--site-space-3);
    color: var(--site-blue-500);
    font-family: var(--site-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

#site_reviews .site-eyebrow::before,
#home_hero .site-eyebrow::before,
#home_services .site-eyebrow::before,
#home_about .site-eyebrow::before,
#home_process .site-eyebrow::before,
#home_coverage .site-eyebrow::before,
#home_quote .site-eyebrow::before,
#about_hero .site-eyebrow::before,
#about_story .site-eyebrow::before,
#about_values .site-eyebrow::before,
#about_process .site-eyebrow::before,
#services_hero .site-eyebrow::before,
#services_compare .site-eyebrow::before,
#services_faq .site-eyebrow::before,
#contact_hero .site-eyebrow::before,
#contact_details .site-eyebrow::before,
#contact_form_section .site-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    flex: 0 0 34px;
    background-color: currentColor;
}

/* Variante sobre fondos oscuros. */
#site_reviews .site-eyebrow--on-dark,
#home_hero .site-eyebrow--on-dark,
#home_services .site-eyebrow--on-dark,
#home_about .site-eyebrow--on-dark,
#home_process .site-eyebrow--on-dark,
#home_coverage .site-eyebrow--on-dark,
#home_quote .site-eyebrow--on-dark,
#about_hero .site-eyebrow--on-dark,
#about_story .site-eyebrow--on-dark,
#about_values .site-eyebrow--on-dark,
#about_process .site-eyebrow--on-dark,
#services_hero .site-eyebrow--on-dark,
#services_compare .site-eyebrow--on-dark,
#services_faq .site-eyebrow--on-dark,
#contact_hero .site-eyebrow--on-dark,
#contact_details .site-eyebrow--on-dark,
#contact_form_section .site-eyebrow--on-dark {
    color: var(--site-blue-100);
}

/* --- 6.2 Botones ------------------------------------------------------- */

#home_hero .site-button,
#home_about .site-button,
#home_quote .site-button,
#home_cta .site-button,
#about_story .site-button,
#about_cta .site-button,
#services_list .site-button,
#services_cta .site-button,
#contact_details .site-button,
#contact_form_section .site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--site-space-3);
    min-height: 52px;
    padding-inline: var(--site-space-6);
    border: 2px solid transparent;
    border-radius: var(--site-radius-pill);
    font-family: var(--site-font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color var(--site-duration-fast) var(--site-ease-out),
        border-color var(--site-duration-fast) var(--site-ease-out),
        color var(--site-duration-fast) var(--site-ease-out),
        transform var(--site-duration-fast) var(--site-ease-out);
}

#home_hero .site-button__icon,
#home_about .site-button__icon,
#home_quote .site-button__icon,
#home_cta .site-button__icon,
#about_story .site-button__icon,
#about_cta .site-button__icon,
#services_list .site-button__icon,
#services_cta .site-button__icon,
#contact_details .site-button__icon,
#contact_form_section .site-button__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

#home_hero .site-button--primary,
#home_about .site-button--primary,
#home_quote .site-button--primary,
#home_cta .site-button--primary,
#about_story .site-button--primary,
#about_cta .site-button--primary,
#services_list .site-button--primary,
#services_cta .site-button--primary,
#contact_details .site-button--primary,
#contact_form_section .site-button--primary {
    background-color: var(--site-blue-500);
    border-color: var(--site-blue-500);
    color: var(--site-ink-on-dark);
}

#home_hero .site-button--primary:hover,
#home_about .site-button--primary:hover,
#home_quote .site-button--primary:hover,
#home_cta .site-button--primary:hover,
#about_story .site-button--primary:hover,
#about_cta .site-button--primary:hover,
#services_list .site-button--primary:hover,
#services_cta .site-button--primary:hover,
#contact_details .site-button--primary:hover,
#contact_form_section .site-button--primary:hover {
    background-color: var(--site-blue-600);
    border-color: var(--site-blue-600);
    color: var(--site-ink-on-dark);
    transform: translateY(-2px);
}

/* Contorno claro: se usa sobre fondos oscuros. */
#home_hero .site-button--outline-light,
#home_about .site-button--outline-light,
#home_quote .site-button--outline-light,
#home_cta .site-button--outline-light,
#about_story .site-button--outline-light,
#about_cta .site-button--outline-light,
#services_list .site-button--outline-light,
#services_cta .site-button--outline-light,
#contact_details .site-button--outline-light,
#contact_form_section .site-button--outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--site-ink-on-dark);
}

#home_hero .site-button--outline-light:hover,
#home_about .site-button--outline-light:hover,
#home_quote .site-button--outline-light:hover,
#home_cta .site-button--outline-light:hover,
#about_story .site-button--outline-light:hover,
#about_cta .site-button--outline-light:hover,
#services_list .site-button--outline-light:hover,
#services_cta .site-button--outline-light:hover,
#contact_details .site-button--outline-light:hover,
#contact_form_section .site-button--outline-light:hover {
    background-color: var(--site-ink-on-dark);
    border-color: var(--site-ink-on-dark);
    color: var(--site-night-900);
    transform: translateY(-2px);
}

/* Contorno oscuro: se usa sobre fondos claros. */
#home_hero .site-button--outline-dark,
#home_about .site-button--outline-dark,
#home_quote .site-button--outline-dark,
#home_cta .site-button--outline-dark,
#about_story .site-button--outline-dark,
#about_cta .site-button--outline-dark,
#services_list .site-button--outline-dark,
#services_cta .site-button--outline-dark,
#contact_details .site-button--outline-dark,
#contact_form_section .site-button--outline-dark {
    background-color: transparent;
    border-color: var(--site-night-700);
    color: var(--site-night-900);
}

#home_hero .site-button--outline-dark:hover,
#home_about .site-button--outline-dark:hover,
#home_quote .site-button--outline-dark:hover,
#home_cta .site-button--outline-dark:hover,
#about_story .site-button--outline-dark:hover,
#about_cta .site-button--outline-dark:hover,
#services_list .site-button--outline-dark:hover,
#services_cta .site-button--outline-dark:hover,
#contact_details .site-button--outline-dark:hover,
#contact_form_section .site-button--outline-dark:hover {
    background-color: var(--site-night-900);
    border-color: var(--site-night-900);
    color: var(--site-ink-on-dark);
    transform: translateY(-2px);
}

/* --- 6.3 Enlace con flecha -------------------------------------------- */

#home_services .site-arrow-link,
#services_list .site-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: var(--site-space-3);
    color: var(--site-night-900);
    font-family: var(--site-font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

#home_services .site-arrow-link__icon,
#services_list .site-arrow-link__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    transition: transform var(--site-duration-medium) var(--site-ease-out);
}

#home_services .site-arrow-link:hover,
#services_list .site-arrow-link:hover {
    color: var(--site-blue-500);
}

#home_services .site-arrow-link:hover .site-arrow-link__icon,
#services_list .site-arrow-link:hover .site-arrow-link__icon {
    transform: translateX(6px);
}

/* --- 6.4 Campos de formulario -----------------------------------------
   Componente compartido por el presupuesto rápido de la portada
   (#home_quote) y el formulario completo de contacto (#contact_form).
   Cada página aporta únicamente la rejilla que los coloca.
   ---------------------------------------------------------------------- */

#home_quote .site-field,
#contact_form_section .site-field {
    display: flex;
    flex-direction: column;
    gap: var(--site-space-2);
}

#home_quote .site-field__label,
#contact_form_section .site-field__label {
    color: var(--site-ink-700);
    font-family: var(--site-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#home_quote .site-field__optional,
#contact_form_section .site-field__optional {
    color: var(--site-ink-500);
    text-transform: none;
    letter-spacing: 0.04em;
}

#home_quote .site-field__control,
#contact_form_section .site-field__control {
    width: 100%;
    min-height: 52px;
    padding: var(--site-space-3) var(--site-space-4);
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-small);
    background-color: var(--site-surface);
    color: var(--site-ink-900);
    font-size: 1rem;
    transition:
        border-color var(--site-duration-fast) var(--site-ease-out),
        box-shadow var(--site-duration-fast) var(--site-ease-out);
}

#home_quote .site-field__control::placeholder,
#contact_form_section .site-field__control::placeholder {
    color: var(--site-ink-500);
}

#home_quote .site-field__control:hover,
#contact_form_section .site-field__control:hover {
    border-color: var(--site-ink-500);
}

#home_quote .site-field__control:focus,
#contact_form_section .site-field__control:focus {
    border-color: var(--site-blue-500);
    box-shadow: 0 0 0 3px var(--site-blue-100);
    outline: none;
}

/* Los <select> nativos necesitan la flecha propia del sistema. */
#home_quote select.site-field__control,
#contact_form_section select.site-field__control {
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--site-ink-700) 50%),
        linear-gradient(135deg, var(--site-ink-700) 50%, transparent 50%);
    background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: var(--site-space-8);
}

#home_quote textarea.site-field__control,
#contact_form_section textarea.site-field__control {
    min-height: 140px;
    resize: vertical;
}

/* Estado de error, lo marca assets/js/contact-form.js. */
#home_quote .site-field__control[aria-invalid="true"],
#contact_form_section .site-field__control[aria-invalid="true"] {
    border-color: var(--site-error);
}

#home_quote .site-field__control[aria-invalid="true"]:focus,
#contact_form_section .site-field__control[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px var(--site-error-soft);
}

#home_quote .site-field__error,
#contact_form_section .site-field__error {
    color: var(--site-error);
    font-size: 0.8125rem;
    font-weight: 500;
}

#home_quote .site-field__error[hidden],
#contact_form_section .site-field__error[hidden] {
    display: none;
}

/* Trampa anti-spam: fuera de pantalla, nunca oculta con display:none
   para que los robots que leen el CSS no la detecten tan fácilmente. */
#home_quote .site-honeypot,
#contact_form_section .site-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Mensaje global del formulario (éxito o error de envío). */
#home_quote .site-form-message,
#contact_form_section .site-form-message {
    display: flex;
    align-items: flex-start;
    gap: var(--site-space-3);
    padding: var(--site-space-4);
    border-radius: var(--site-radius-small);
    font-size: 0.9375rem;
    font-weight: 500;
}

#home_quote .site-form-message[hidden],
#contact_form_section .site-form-message[hidden] {
    display: none;
}

#home_quote .site-form-message--success,
#contact_form_section .site-form-message--success {
    background-color: var(--site-success-soft);
    color: var(--site-success);
}

#home_quote .site-form-message--error,
#contact_form_section .site-form-message--error {
    background-color: var(--site-error-soft);
    color: var(--site-error);
}

/* --- 6.5 Héroe compacto de página --------------------------------------
   Cabecera oscura de las páginas interiores. Se agrupan los tres ámbitos
   con :is() para no repetir las declaraciones: la especificidad resultante
   es la misma que si cada ID se escribiera por separado.
   ---------------------------------------------------------------------- */

:is(#about_hero, #services_hero, #contact_hero) {
    padding-block: calc(var(--site-header-height) + clamp(56px, 7vw, 104px)) clamp(56px, 7vw, 104px);
    background-color: var(--site-night-900);
    /* Trama diagonal sutil que evita el plano completamente liso. */
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.028) 0 1px,
        transparent 1px 11px
    );
}

:is(#about_hero, #services_hero, #contact_hero) .site-page-hero__shell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--site-space-4);
}

:is(#about_hero, #services_hero, #contact_hero) .site-page-hero__title {
    max-width: 20ch;
    color: var(--site-ink-on-dark);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

:is(#about_hero, #services_hero, #contact_hero) .site-page-hero__description {
    max-width: 56ch;
    color: var(--site-ink-muted-dark);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* --- 6.6 Fila de cifras ------------------------------------------------ */

:is(#home_stats, #about_stats) {
    padding-block: clamp(40px, 5vw, 64px);
    background-color: var(--site-night-800);
}

:is(#home_stats, #about_stats) .site-stats__shell {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--site-space-6) var(--site-space-5);
}

:is(#home_stats, #about_stats) .site-stats__item {
    display: flex;
    flex-direction: column;
    gap: var(--site-space-2);
}

:is(#home_stats, #about_stats) .site-stats__value {
    display: flex;
    align-items: baseline;
    gap: var(--site-space-2);
    color: var(--site-ink-on-dark);
    font-family: var(--site-font-display);
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 900;
    line-height: 0.85;
}

/* Cifras de ancho fijo: evita que el número baile mientras el contador corre. */
:is(#home_stats, #about_stats) .site-stats__number {
    font-variant-numeric: tabular-nums;
}

:is(#home_stats, #about_stats) .site-stats__suffix {
    color: var(--site-blue-500);
    font-size: 0.42em;
    font-weight: 800;
}

:is(#home_stats, #about_stats) .site-stats__label {
    color: var(--site-ink-muted-dark);
    font-family: var(--site-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    :is(#home_stats, #about_stats) .site-stats__shell {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--site-space-5);
    }
}

/* --- 6.7 Pasos de proceso --------------------------------------------- */

:is(#home_process, #about_process) {
    padding-block: var(--site-section-space);
    background-color: var(--site-night-900);
}

:is(#home_process, #about_process) .site-steps__shell {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 72px);
}

:is(#home_process, #about_process) .site-steps__intro {
    display: flex;
    flex-direction: column;
    gap: var(--site-space-4);
}

:is(#home_process, #about_process) .site-steps__title {
    max-width: 24ch;
    color: var(--site-ink-on-dark);
}

:is(#home_process, #about_process) .site-steps__description {
    max-width: 52ch;
    color: var(--site-ink-muted-dark);
    font-size: 1.0625rem;
}

:is(#home_process, #about_process) .site-steps__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--site-space-6);
}

:is(#home_process, #about_process) .site-steps__step {
    display: flex;
    flex-direction: column;
    gap: var(--site-space-3);
    padding-top: var(--site-space-5);
    border-top: 2px solid var(--site-night-700);
    transition: border-top-color var(--site-duration-medium) var(--site-ease-out);
}

:is(#home_process, #about_process) .site-steps__number {
    color: var(--site-blue-500);
    font-family: var(--site-font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

:is(#home_process, #about_process) .site-steps__step-title {
    color: var(--site-ink-on-dark);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

:is(#home_process, #about_process) .site-steps__step-description {
    color: var(--site-ink-muted-dark);
    font-size: 0.9375rem;
}

:is(#home_process, #about_process) .site-steps__step:hover {
    border-top-color: var(--site-blue-500);
}

@media (min-width: 768px) {
    :is(#home_process, #about_process) .site-steps__list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--site-space-5);
    }
}

/* --- 6.8 Cinta de llamada a la acción --------------------------------- */

:is(#home_cta, #about_cta, #services_cta) {
    padding-block: var(--site-section-space);
    background-color: var(--site-blue-500);
}

:is(#home_cta, #about_cta, #services_cta) .site-cta__shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--site-space-5);
    text-align: center;
}

:is(#home_cta, #about_cta, #services_cta) .site-cta__title {
    max-width: 24ch;
    color: var(--site-ink-on-dark);
}

:is(#home_cta, #about_cta, #services_cta) .site-cta__description {
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.0625rem;
}

:is(#home_cta, #about_cta, #services_cta) .site-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--site-space-4);
    margin-top: var(--site-space-2);
}

/* Sobre el azul de la cinta, el botón principal se invierte a blanco. */
:is(#home_cta, #about_cta, #services_cta) .site-cta__actions .site-button--primary {
    background-color: var(--site-surface);
    border-color: var(--site-surface);
    color: var(--site-blue-600);
}

:is(#home_cta, #about_cta, #services_cta) .site-cta__actions .site-button--primary:hover {
    background-color: var(--site-night-900);
    border-color: var(--site-night-900);
    color: var(--site-ink-on-dark);
}

@media (max-width: 519px) {
    :is(#home_cta, #about_cta, #services_cta) .site-cta__actions .site-button {
        width: 100%;
    }
}

/* ==========================================================================
   8. ACCESIBILIDAD Y ANIMACIÓN
   ========================================================================== */

/* Foco visible homogéneo en todo el sitio. */
body.trmel-site :focus-visible {
    outline: 3px solid var(--site-blue-500);
    outline-offset: 3px;
}



/* ==========================================================================
   INTEGRACIÓN WORDPRESS + ELEMENTOR
   ========================================================================== */

body.trmel-site {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body.trmel-site > header:not(#site_header_shell),
body.trmel-site > footer:not(#site_footer_shell),
body.trmel-site .site-header:not(#site_header),
body.trmel-site .site-footer:not(#site_footer) {
    /* Los módulos del plugin sustituyen la cabecera y el pie del tema. */
}

body.trmel-site .elementor,
body.trmel-site .elementor-section,
body.trmel-site .elementor-container,
body.trmel-site .elementor-column,
body.trmel-site .elementor-widget-wrap,
body.trmel-site .elementor-widget,
body.trmel-site .elementor-widget-container {
    min-width: 0;
}

body.trmel-site .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: none;
}

body.trmel-site .elementor-widget-wrap,
body.trmel-site .elementor-widget-container {
    padding: 0;
}

body.trmel-site .trmel-section {
    position: relative;
    width: 100%;
}

#site_header_shell,
#site_footer_shell {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

#site_header_shell .elementor,
#site_header_shell .elementor-section,
#site_header_shell .elementor-container,
#site_header_shell .elementor-column,
#site_header_shell .elementor-widget-wrap,
#site_header_shell .elementor-widget,
#site_header_shell .elementor-widget-container,
#site_footer_shell .elementor,
#site_footer_shell .elementor-section,
#site_footer_shell .elementor-container,
#site_footer_shell .elementor-column,
#site_footer_shell .elementor-widget-wrap,
#site_footer_shell .elementor-widget,
#site_footer_shell .elementor-widget-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
