/* ============================================================
   HALFMOON — Rediseño (Fase 0: Fundaciones de diseño)
   Design tokens + base + header/footer.
   Se carga DESPUÉS de style.css para poder sobreescribir.
   Fuente de verdad: design_handoff_halfmoon_web/README.md
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    /* Colores de marca */
    --hm-violet: #532B82;       /* primario: CTAs, títulos, activo de menú */
    --hm-indigo: #312783;       /* extremo oscuro de degradados */
    --hm-purple: #6A318A;       /* púrpura medio */
    --hm-lilac: #9C78B0;        /* acento secundario */
    --hm-lilac-2: #A280B5;
    --hm-violet-pale: #E1DEED;  /* texto sobre morado oscuro / fondos suaves */

    /* Neutros / fondos */
    --hm-offwhite: #FAF9F9;     /* fondo general */
    --hm-card: #FFFFFF;         /* tarjetas / secciones alternas */
    --hm-lavender: #F1EEF7;
    --hm-lavender-2: #F3EFF9;
    --hm-lavender-3: #FAF9FC;

    /* Bordes */
    --hm-border: #ECE9F3;
    --hm-border-2: #E6DFF1;
    --hm-border-3: #E8E5EF;     /* borde de nav */

    /* Texto */
    --hm-title: #6F6E73;        /* títulos de sección/hero en mayúscula (mockup) */
    --hm-text-strong: #3B3B42;  /* titulares de tarjeta / cuerpo destacado */
    --hm-text: #6B6B71;
    --hm-text-2: #5C5C64;
    --hm-text-muted: #6F6E73;   /* menú, títulos en mayúscula */
    --hm-text-muted-2: #8D8C8D;
    --hm-text-faint: #9A99A0;   /* metadatos, fechas */

    /* Footer */
    --hm-footer-bg: #221643;
    --hm-footer-text: #A294C4;

    /* Degradados de marca */
    --hm-grad-dark: linear-gradient(150deg, #312783, #532b82 55%, #2c1c56);
    --hm-grad-mid: linear-gradient(150deg, #532b82, #6a318a);
    --hm-grad-light: linear-gradient(150deg, #6a318a, #9c78b0);
    --hm-grad-progress: linear-gradient(90deg, #532b82, #9c78b0);
    --hm-grad-cta: linear-gradient(135deg, #2c1c56 0%, #532b82 55%, #3a2683 100%);

    /* Espaciado y forma */
    --hm-content-max: 1180px;
    --hm-content-pad: 32px;
    --hm-section-pad-y: 88px;
    --hm-radius-card: 14px;
    --hm-radius-btn: 4px;
    --hm-radius-pill: 30px;

    /* Sombras */
    --hm-shadow-header: 0 6px 24px rgba(48, 39, 83, .12);
    --hm-shadow-float: 0 24px 50px rgba(48, 39, 83, .18);

    /* Tipografía */
    --hm-font: 'Jost', 'Futura BK BT', 'Century Gothic', system-ui, sans-serif;      /* titulares y UI (pesos 300–600) */
    --hm-font-body: 'Futura BK BT', 'Jost', 'Century Gothic', system-ui, sans-serif;  /* cuerpo de texto (Futura Book real) */
}

/* ---------- 2. BASE ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Contenedor raíz: clip (NO hidden) para no romper el sticky del header */
body.hm-redesign {
    overflow-x: clip;
}

/* Utilidad de contenedor centrado del rediseño */
.hm-container {
    max-width: var(--hm-content-max);
    margin-inline: auto;
    padding-inline: var(--hm-content-pad);
}

/* Marca de agua media luna */
.hm-crescent {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* ---------- 3. HEADER (sticky glass) ---------- */
/* Aplica sobre el markup existente: <header id="main-header"> con .navbar */
#main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 249, 249, .86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hm-border-3);
    transition: box-shadow .25s ease;
}

/* Sombra al hacer scroll (>8px) — clase añadida por redesign.js */
#main-header.hm-scrolled {
    box-shadow: var(--hm-shadow-header);
}

#main-header .navbar {
    position: static; /* anula fixed-top de Bootstrap; el sticky lo da #main-header */
    background: transparent !important;
    padding-block: 14px;
}

#main-header .navbar .container {
    max-width: var(--hm-content-max);
}

/* Items de menú */
#main-header .navbar-nav .nav-link {
    color: var(--hm-text-muted);
    font-family: var(--hm-font);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    transition: color .2s ease;
}

#main-header .navbar-nav .nav-link:hover {
    color: var(--hm-violet);
}

/* Estado activo (el !important gana a `a.active{color:orange!important}` de style.css) */
#main-header .navbar-nav .nav-link.active {
    color: var(--hm-violet) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--hm-violet);
}

/* CTA "Hablemos" (se marca con .hm-cta en el markup del header) */
#main-header .navbar-nav .nav-link.hm-cta,
.hm-cta {
    background: var(--hm-violet);
    color: #fff !important;
    border-radius: var(--hm-radius-btn);
    padding: 9px 18px !important;
    border-bottom: none !important;
    transition: background .2s ease, transform .2s ease;
}

#main-header .navbar-nav .nav-link.hm-cta:hover,
.hm-cta:hover {
    background: var(--hm-indigo);
    color: #fff !important;
}

/* Hamburguesa sobre header claro (antes era blanca para el tema oscuro) */
#main-header .navbar-toggler .icon-bar {
    background-color: var(--hm-violet);
}

/* Menú colapsado (móvil) sobre header claro */
#main-header .navbar-collapse {
    background: transparent;
}

/* ---------- 4. FOOTER ---------- */
/* Markup existente: <footer id="main-footer"> #footer */
#main-footer,
#main-footer #footer {
    background: var(--hm-footer-bg);
    color: var(--hm-footer-text);
}

#main-footer #copyright {
    color: var(--hm-footer-text);
    font-family: var(--hm-font);
    letter-spacing: .3px;
}

#main-footer #copyright a {
    color: var(--hm-violet-pale);
}

#main-footer .social-links a .icon-social,
#main-footer .social-links a svg {
    color: var(--hm-footer-text);
    fill: var(--hm-footer-text);
    transition: color .2s ease, fill .2s ease;
}

#main-footer .social-links a:hover .icon-social,
#main-footer .social-links a:hover svg {
    color: #fff;
    fill: #fff;
}

/* ---------- 5. BOTONES base del rediseño ---------- */
.hm-btn {
    display: inline-block;
    font-family: var(--hm-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: var(--hm-radius-btn);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.hm-btn--primary {
    background: var(--hm-violet);
    color: #fff;
}

.hm-btn--primary:hover {
    background: var(--hm-indigo);
    color: #fff;
}

.hm-btn--outline {
    background: transparent;
    color: var(--hm-violet);
    border-color: var(--hm-border-2);
}

.hm-btn--outline:hover {
    border-color: var(--hm-violet);
    color: var(--hm-violet);
}

/* ---------- 6. Barra de progreso (devlog) ---------- */
.hm-progress {
    background: var(--hm-border);
    border-radius: var(--hm-radius-pill);
    height: 8px;
    overflow: hidden;
}

.hm-progress__fill {
    height: 100%;
    background: var(--hm-grad-progress);
    border-radius: var(--hm-radius-pill);
}

/* ---------- 7. Animación floaty (tarjeta AR del hero) ---------- */
@keyframes hm-floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hm-floaty {
    animation: hm-floaty 6s ease-in-out infinite;
}

/* ============================================================
   FASE 1 — Restyle de secciones existentes de la Home
   Mapea las clases actuales (style.css) a los tokens del rediseño.
   Todo scopeado a .hm-redesign para no afectar el backoffice.
   ============================================================ */

/* Titulares de sección: peso 300, uppercase, tracking, con palabra clave en violeta */
.hm-redesign .heading h1 {
    font-family: var(--hm-font);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--hm-text-strong);
}

.hm-redesign .heading h1 .colored,
.hm-redesign .colored {
    color: var(--hm-violet);
    font-weight: 500;
}

/* Separador de titular (hr.extend) con color de borde de marca */
.hm-redesign .heading hr,
.hm-redesign hr.extend {
    border-color: var(--hm-border);
    background-color: var(--hm-border);
}

/* Cuerpo de sección */
.hm-redesign #about article,
.hm-redesign #team p,
.hm-redesign #clients p {
    font-family: var(--hm-font);
    color: var(--hm-text-2);
    line-height: 1.75;
}

/* Imagen de About: radio y sombra suave de marca */
.hm-redesign #about #support-image {
    border-radius: var(--hm-radius-card);
    box-shadow: var(--hm-shadow-float);
}

/* --- Tarjetas de equipo --- */
.hm-redesign .team-card figure img {
    border-radius: var(--hm-radius-card);
}

.hm-redesign .team-name {
    font-family: var(--hm-font);
    font-weight: 500;
    color: var(--hm-text-strong);
    letter-spacing: .3px;
}

.hm-redesign #team .team-card .subtle {
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    color: var(--hm-lilac);
}

.hm-redesign .team-caption ul a {
    color: var(--hm-violet-pale);
    transition: color .2s ease;
}

.hm-redesign .team-caption ul a:hover {
    color: #fff;
}

/* --- Franja de clientes --- */
.hm-redesign #clients .logos {
    border-top: 1px solid var(--hm-border);
    border-bottom: 1px solid var(--hm-border);
    padding-block: 28px;
}

.hm-redesign #clients .logo_items a img {
    filter: grayscale(1);
    opacity: .7;
    transition: filter .25s ease, opacity .25s ease;
}

.hm-redesign #clients .logo_items a:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ============================================================
   HERO REDISEÑADO (#inicio)
   ============================================================ */
.hm-hero {
    position: relative;
    background: var(--hm-offwhite);
    overflow: hidden;
}

.hm-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
    padding-block: clamp(56px, 8vw, 104px);
}

/* Kicker / etiqueta superior */
.hm-kicker {
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hm-lilac);
    margin: 0 0 18px;
}

/* Título del hero */
.hm-hero__title {
    font-family: var(--hm-font);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.06;
    font-size: clamp(34px, 5vw, 58px);
    color: var(--hm-title);
    margin: 0 0 22px;
}

.hm-hero__title-accent {
    color: var(--hm-violet);
    font-weight: 500;
}

.hm-hero__text {
    font-family: var(--hm-font);
    font-size: 18px;
    line-height: 1.75;
    color: var(--hm-text-2);
    max-width: 46ch;
    margin: 0 0 30px;
}

.hm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
}

/* Stats */
.hm-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.hm-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hm-hero__stat-value {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 22px;
    color: var(--hm-violet);
    letter-spacing: .5px;
}

.hm-hero__stat-label {
    font-family: var(--hm-font);
    font-size: 12.5px;
    color: var(--hm-text-faint);
    max-width: 16ch;
}

/* Visual (media luna + tarjeta AR) */
.hm-hero__visual {
    position: relative;
    min-height: 460px;
    width: 420px;
    max-width: 100%;
    margin-inline: auto;
}

/* Media luna del hero: degradado saturado 4 paradas, opacidad completa + sombra (mockup) */
.hm-hero__moon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: drop-shadow(0 30px 60px rgba(83, 43, 130, .22));
}

/* Tarjeta AR flotante (mockup): kicker + título + autor + botón reproducir */
.hm-hero__ar {
    position: absolute;
    right: -6px;
    bottom: 26px;
    z-index: 1;
    width: 214px;
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
    padding: 18px 20px;
    box-shadow: var(--hm-shadow-float);
}

.hm-hero__ar-kicker {
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--hm-lilac);
    margin: 0;
}

.hm-hero__ar-title {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.2;
    color: var(--hm-text-strong);
    margin: 8px 0 3px;
}

.hm-hero__ar-author {
    font-family: var(--hm-font);
    font-size: 12px;
    color: var(--hm-text-faint);
    margin: 0;
}

.hm-hero__ar-play {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
}

.hm-hero__ar-playbtn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hm-violet);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.hm-hero__ar-playlabel {
    font-family: var(--hm-font);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hm-text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .hm-hero__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hm-hero__visual {
        min-height: 320px;
        order: -1;
    }

    .hm-hero__ar {
        right: 2%;
        bottom: 6%;
    }
}

/* ============================================================
   SECCIONES DEL REDISEÑO — patrones reutilizables
   ============================================================ */
.hm-section {
    position: relative;
    padding-block: var(--hm-section-pad-y);
    overflow: hidden;
    /* Full-bleed: ocupa todo el ancho aunque esté dentro de un .container.
       (body.hm-redesign tiene overflow-x:clip para evitar scroll horizontal.) */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--hm-offwhite);
    color: var(--hm-text-2);
}

.hm-section--alt {
    background: var(--hm-card);
}

.hm-section__head {
    margin-bottom: 44px;
}

.hm-section__title {
    font-family: var(--hm-font);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.12;
    color: var(--hm-title);
    margin: 0;
}

.hm-accent {
    color: var(--hm-violet);
    font-weight: 500;
}

/* ============================================================
   SERVICIOS (#servicios)
   ============================================================ */
.hm-services__moon {
    top: 40px;
    right: -60px;
}

.hm-services__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hm-service-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
    padding: 32px 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hm-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-header);
    border-color: var(--hm-border-2);
}

.hm-service-card__icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--hm-lavender);
    color: var(--hm-violet);
    font-size: 22px;
    margin-bottom: 20px;
}

.hm-service-card__title {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: .3px;
    color: var(--hm-text-strong);
    margin: 4px 0 12px;
}

.hm-service-card__text {
    font-family: var(--hm-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--hm-text-2);
    margin: 0;
}

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

/* ============================================================
   Placeholder de imagen (degradado de marca + textura)
   ============================================================ */
.hm-ph {
    background-image:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 10px),
        var(--hm-grad-mid);
    background-color: var(--hm-purple);
}

/* ============================================================
   PROYECTOS (#proyectos)
   ============================================================ */
.hm-projects__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.hm-projects__stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hm-project-card {
    display: flex;
    flex-direction: column;
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hm-project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-header);
    border-color: var(--hm-border-2);
}

.hm-project-card__media {
    background-size: cover;
    background-position: center;
    min-height: 180px;
    flex: 1 1 auto;
}

.hm-project-card--featured .hm-project-card__media {
    min-height: 320px;
}

.hm-project-card__body {
    padding: 24px 26px 28px;
}

.hm-chip {
    display: inline-block;
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--hm-violet);
    background: var(--hm-lavender);
    border-radius: var(--hm-radius-pill);
    padding: 5px 12px;
    margin-bottom: 12px;
}

.hm-project-card__title {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 22px;
    color: var(--hm-text-strong);
    margin: 0 0 8px;
}

.hm-project-card__text {
    font-family: var(--hm-font);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--hm-text-2);
    margin: 0;
}

.hm-project-card__more {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--hm-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hm-violet);
}

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

/* ============================================================
   CASO DE ESTUDIO (#caso-destacado)
   ============================================================ */
.hm-case {
    background: var(--hm-lavender-3);
}

.hm-breadcrumb {
    font-family: var(--hm-font);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--hm-text-faint);
    margin: 0 0 28px;
}

.hm-breadcrumb a {
    color: var(--hm-lilac);
    text-decoration: none;
}

.hm-breadcrumb span {
    margin: 0 6px;
}

.hm-case__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

.hm-case__subtitle {
    font-family: var(--hm-font);
    font-size: 18px;
    line-height: 1.7;
    color: var(--hm-text-2);
    margin: 16px 0 0;
    max-width: 42ch;
}

.hm-case__image {
    background-size: cover;
    background-position: center;
    border-radius: var(--hm-radius-card);
    min-height: 300px;
    box-shadow: var(--hm-shadow-float);
}

.hm-case__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid var(--hm-border-2);
    border-bottom: 1px solid var(--hm-border-2);
    margin-bottom: 48px;
}

.hm-case__metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hm-case__metric-value {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 32px;
    color: var(--hm-violet);
    line-height: 1;
}

.hm-case__metric-label {
    font-family: var(--hm-font);
    font-size: 12.5px;
    color: var(--hm-text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hm-case__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.hm-case__col-text {
    font-family: var(--hm-font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--hm-text-2);
    margin: 8px 0 0;
}

.hm-case__quote {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: var(--hm-grad-cta);
    border-radius: var(--hm-radius-card);
    padding: 56px 48px;
    text-align: center;
    color: #fff;
}

.hm-case__quote-moon {
    top: -30px;
    right: 6%;
}

.hm-case__quote blockquote {
    position: relative;
    z-index: 1;
    font-family: var(--hm-font);
    font-weight: 300;
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.5;
    max-width: 40ch;
    margin: 0 auto 16px;
}

.hm-case__quote figcaption {
    position: relative;
    z-index: 1;
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--hm-violet-pale);
}

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

    .hm-case__image {
        order: -1;
        min-height: 220px;
    }

    .hm-case__metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-case__cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================================
   NOVEDADES (#novedades)
   ============================================================ */
.hm-section__head--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hm-news__all {
    font-family: var(--hm-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hm-violet);
    text-decoration: none;
    white-space: nowrap;
}

.hm-news__all:hover {
    color: var(--hm-indigo);
}

.hm-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hm-news-card {
    display: flex;
    flex-direction: column;
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hm-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-header);
    border-color: var(--hm-border-2);
}

.hm-news-card__media {
    background-size: cover;
    background-position: center;
    min-height: 180px;
}

.hm-news-card__body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.hm-news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hm-news-card__meta .hm-chip {
    margin-bottom: 0;
}

.hm-news-card__date {
    font-family: var(--hm-font);
    font-size: 11px;
    color: var(--hm-text-faint);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hm-news-card__title {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 19px;
    line-height: 1.35;
    color: var(--hm-text-strong);
    margin: 0 0 10px;
}

.hm-news-card__text {
    font-family: var(--hm-font);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--hm-text-2);
    margin: 0 0 16px;
}

.hm-news-card__more {
    margin-top: auto;
    font-family: var(--hm-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hm-violet);
}

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

/* ============================================================
   DEVLOG — Juegos en desarrollo
   ============================================================ */
.hm-devlog-hero {
    padding-block: clamp(48px, 7vw, 88px);
}

.hm-devlog-hero .hm-hero__stats {
    margin-top: 32px;
}

/* Badge sobre portada (pill translúcida blanca, como el mockup) */
.hm-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 9.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: var(--hm-radius-pill);
    padding: 6px 12px;
}

/* Badge de estado en la columna de info (violeta sólido) */
.hm-devlog-state {
    display: inline-flex;
    align-items: center;
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: var(--hm-violet);
    border-radius: var(--hm-radius-pill);
    padding: 7px 13px;
    margin-bottom: 20px;
}

/* Título del juego destacado (titular de tarjeta: peso 400, gris fuerte) */
.hm-devlog-featured__title {
    font-family: var(--hm-font);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.12;
    font-size: clamp(28px, 3.6vw, 38px);
    color: var(--hm-text-strong);
    margin: 0 0 14px;
}

/* Juego destacado */
.hm-devlog-featured__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hm-devlog-featured__media {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: var(--hm-radius-card);
    min-height: 340px;
    box-shadow: var(--hm-shadow-float);
}

.hm-devlog-featured__text {
    font-family: var(--hm-font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--hm-text-2);
    margin: 14px 0 20px;
}

.hm-devlog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hm-devlog-chips .hm-chip {
    margin-bottom: 0;
    background: var(--hm-lavender);
}

/* Chip rectangular con borde (chips del juego destacado en el mockup) */
.hm-chip--rect {
    border-radius: var(--hm-radius-btn);
    border: 1px solid var(--hm-border-2);
    background: var(--hm-lavender-2);
    color: var(--hm-text-muted);
    letter-spacing: 1px;
    padding: 7px 13px;
}

/* Barra de progreso */
.hm-devlog-progress__head {
    display: flex;
    justify-content: space-between;
    font-family: var(--hm-font);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hm-text-muted);
    margin-bottom: 8px;
}

.hm-devlog-progress__head--sm {
    margin-top: 16px;
    font-size: 11px;
}

/* Porcentaje destacado en violeta */
.hm-devlog-progress__pct {
    color: var(--hm-violet);
    font-weight: 500;
    letter-spacing: normal;
}

.hm-devlog-progress__milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: var(--hm-font);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hm-text-faint);
}

/* Hitos aún no alcanzados: atenuados (como el mockup) */
.hm-devlog-progress__milestones span + span {
    color: #cfc7de;
}

/* Feed de actualizaciones */
.hm-devlog-feed__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-update {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
    overflow: hidden;
}

.hm-update__media {
    background-size: cover;
    background-position: center;
    min-height: 160px;
}

.hm-update__body {
    padding: 22px 26px;
}

.hm-update__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.hm-update__meta .hm-chip {
    margin-bottom: 0;
}

.hm-update__date {
    font-family: var(--hm-font);
    font-size: 11px;
    color: var(--hm-text-faint);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hm-update__title {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 19px;
    color: var(--hm-text-strong);
    margin: 0 0 8px;
}

.hm-update__text {
    font-family: var(--hm-font);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--hm-text-2);
    margin: 0;
}

/* Otros juegos */
.hm-devlog-others__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hm-devlog-others .hm-project-card__media {
    position: relative;
    min-height: 180px;
}

/* CTA */
.hm-devlog-cta {
    background: var(--hm-grad-cta);
    color: #fff;
    text-align: center;
}

.hm-devlog-cta__moon {
    top: -20px;
    right: 8%;
}

.hm-devlog-cta__inner {
    position: relative;
    z-index: 1;
}

.hm-devlog-cta__title {
    font-family: var(--hm-font);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(26px, 3.4vw, 38px);
    margin: 0 0 12px;
}

.hm-devlog-cta__text {
    font-family: var(--hm-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--hm-violet-pale);
    max-width: 46ch;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .hm-devlog-featured__grid {
        grid-template-columns: 1fr;
    }

    .hm-devlog-featured__media {
        min-height: 240px;
    }

    .hm-update {
        grid-template-columns: 1fr;
    }

    .hm-devlog-others__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   NOVEDADES — Listado (#novedades)
   ============================================================ */
.hm-newslist-hero {
    padding-block: clamp(48px, 6vw, 80px);
}

/* Chips de filtro */
.hm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.hm-filter {
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--hm-text-muted);
    background: var(--hm-lavender-3);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-pill);
    padding: 8px 18px;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.hm-filter:hover {
    color: var(--hm-violet);
    border-color: var(--hm-border-2);
}

.hm-filter.is-active {
    color: #fff;
    background: var(--hm-violet);
    border-color: var(--hm-violet);
}

/* Noticia destacada */
.hm-featured-news {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 40px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hm-featured-news:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-header);
}

.hm-featured-news__media {
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.hm-featured-news__body {
    padding: 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hm-featured-news__title {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.3;
    color: var(--hm-text-strong);
    margin: 10px 0 12px;
}

.hm-newslist__empty {
    font-family: var(--hm-font);
    color: var(--hm-text-faint);
    padding: 40px 0;
}

/* Paginación (restyle del partial existente) */
.hm-pagination {
    margin-top: 44px;
}

.hm-pagination .pagination .page-link {
    font-family: var(--hm-font);
    color: var(--hm-text-muted);
    border-color: var(--hm-border);
}

.hm-pagination .pagination .page-item.active .page-link {
    background: var(--hm-violet);
    border-color: var(--hm-violet);
    color: #fff;
}

@media (max-width: 900px) {
    .hm-featured-news {
        grid-template-columns: 1fr;
    }

    .hm-featured-news__media {
        min-height: 200px;
    }
}

/* ============================================================
   NOTICIA — Detalle (artículo)
   ============================================================ */
.hm-article__header {
    padding-bottom: 0;
}

.hm-article__container {
    max-width: 820px;
    margin-inline: auto;
    padding-inline: var(--hm-content-pad);
}

.hm-article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.hm-article__meta .hm-chip {
    margin-bottom: 0;
}

.hm-article__title {
    font-family: var(--hm-font);
    font-weight: 400;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    letter-spacing: .3px;
    color: var(--hm-text-strong);
    margin: 0 0 14px;
}

.hm-article__subtitle {
    font-family: var(--hm-font);
    font-size: 19px;
    line-height: 1.6;
    color: var(--hm-text-2);
    margin: 0 0 26px;
}

/* Fila de autor */
.hm-article__author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--hm-border);
    margin-bottom: 36px;
}

.hm-article__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hm-grad-light);
    color: #fff;
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    flex: 0 0 auto;
}

.hm-article__author-name {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 15px;
    color: var(--hm-text-strong);
    margin: 0;
}

.hm-article__author-role {
    font-family: var(--hm-font);
    font-size: 12.5px;
    color: var(--hm-text-faint);
    margin: 0;
}

/* Imagen destacada */
.hm-article__hero-media-wrap {
    max-width: 1000px;
    margin-inline: auto;
    padding-inline: var(--hm-content-pad);
    margin-bottom: 44px;
}

.hm-article__hero-media {
    background-size: cover;
    background-position: center;
    border-radius: var(--hm-radius-card);
    height: clamp(240px, 42vw, 440px);
    box-shadow: var(--hm-shadow-float);
}

/* Cuerpo del artículo (contenido del RTE) */
.hm-article__body {
    font-family: var(--hm-font);
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--hm-text-2);
}

.hm-article__body > p:first-of-type {
    font-size: 19px;
    color: var(--hm-text-strong);
}

.hm-article__body h2,
.hm-article__body h3 {
    font-family: var(--hm-font);
    font-weight: 500;
    color: var(--hm-text-strong);
    letter-spacing: .3px;
    margin: 36px 0 14px;
}

.hm-article__body blockquote {
    border-left: 3px solid var(--hm-violet);
    background: var(--hm-lavender-3);
    border-radius: 0 var(--hm-radius-card) var(--hm-radius-card) 0;
    padding: 20px 26px;
    margin: 30px 0;
    font-size: 19px;
    color: var(--hm-text-strong);
}

.hm-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--hm-radius-card);
    margin: 26px 0;
}

.hm-article__body ul,
.hm-article__body ol {
    padding-left: 26px;
}

.hm-article__body a {
    color: var(--hm-violet);
}

/* Pie del artículo */
.hm-article__footer {
    border-top: 1px solid var(--hm-border);
    margin-top: 44px;
    padding-block: 28px;
}

.hm-article__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.hm-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-article__share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-article__share-label {
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--hm-text-faint);
}

.hm-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hm-lavender-2);
    border: 1px solid var(--hm-border-2);
    color: var(--hm-violet);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}

.hm-share-btn:hover {
    background: var(--hm-violet);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   ABOUT (#about) — versión diseño
   ============================================================ */
.hm-about__text {
    font-family: var(--hm-font);
    font-size: 17px;
    line-height: 1.8;
    color: var(--hm-text-2);
    max-width: 70ch;
    margin-top: 22px;
}

.hm-about__text p {
    margin: 0 0 16px;
}

.hm-about__text h1,
.hm-about__text h2,
.hm-about__text h3,
.hm-about__text h4,
.hm-about__text h5 {
    font-size: 20px;
    font-weight: 500;
    color: var(--hm-text-strong);
    letter-spacing: .3px;
    margin: 20px 0 10px;
}

/* ============================================================
   CLIENTES (fila centrada) — versión diseño
   ============================================================ */
.hm-clients-strip {
    background: var(--hm-card);
    text-align: center;
    padding-block: 56px;
}

.hm-clients-strip__kicker {
    margin-bottom: 16px;
}

.hm-clients-strip__row {
    font-family: var(--hm-font);
    font-weight: 400;
    font-size: clamp(18px, 2.4vw, 26px);
    letter-spacing: 1px;
    color: var(--hm-text-muted);
    margin: 0;
}

.hm-clients-strip__dot {
    color: var(--hm-lilac);
    margin: 0 18px;
}

/* ============================================================
   EQUIPO (#equipo) — versión diseño
   ============================================================ */
.hm-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hm-team-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
    padding: 36px 28px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hm-team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-header);
}

.hm-team-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background-size: cover;
    background-position: center top;
}

.hm-team-card__avatar--initials {
    background: var(--hm-grad-light);
    color: #fff;
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: 1px;
}

.hm-team-card__name {
    font-family: var(--hm-font);
    font-weight: 500;
    font-size: 18px;
    color: var(--hm-text-strong);
    margin: 0 0 6px;
}

.hm-team-card__role {
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    color: var(--hm-lilac);
    margin: 0;
}

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

/* ============================================================
   CONTACTO (#contacto) — versión diseño (banda violeta)
   ============================================================ */
.hm-contact {
    background: var(--hm-grad-cta);
    color: #fff;
}

.hm-contact__moon {
    top: -30px;
    left: 4%;
}

.hm-contact__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.hm-contact__kicker {
    color: var(--hm-violet-pale);
}

.hm-contact__title {
    font-family: var(--hm-font);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 14px;
}

.hm-contact__text {
    font-family: var(--hm-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--hm-violet-pale);
    max-width: 44ch;
    margin: 0 0 26px;
}

.hm-btn--light {
    background: #fff;
    color: var(--hm-violet);
}

.hm-btn--light:hover {
    background: var(--hm-violet-pale);
    color: var(--hm-indigo);
}

.hm-contact__card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(225, 222, 237, .25);
    border-radius: var(--hm-radius-card);
    padding: 30px 32px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hm-contact__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-block: 14px;
}

.hm-contact__row + .hm-contact__row {
    border-top: 1px solid rgba(225, 222, 237, .18);
}

.hm-contact__label {
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--hm-lilac);
}

.hm-contact__card a,
.hm-contact__card span {
    font-family: var(--hm-font);
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    word-break: break-word;
}

body.hm-redesign .hm-contact__card a:hover {
    color: var(--hm-violet-pale);
}

@media (max-width: 900px) {
    .hm-contact__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ============================================================
   FOOTER — versión diseño
   ============================================================ */
.hm-footer {
    background: var(--hm-footer-bg);
    color: var(--hm-footer-text);
    padding-block: 34px;
}

.hm-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hm-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hm-footer__moon {
    position: static;
    flex: 0 0 auto;
}

.hm-footer__name {
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    color: var(--hm-footer-text);
}

.hm-footer__copy {
    font-family: var(--hm-font);
    font-size: 13px;
    color: var(--hm-footer-text);
    margin: 0;
}

/* ============================================================
   UNIFICACIÓN TEMA CLARO
   Voltea el tema oscuro de style.css (#111 + bg.png) al off-white
   del rediseño en TODO el sitio, incluidas las secciones existentes
   (About, Clientes, Juegos, Equipo, Contacto) y el loader.
   Este archivo solo se carga en el front (no afecta el backoffice).
   ============================================================ */

/* -- Base -- */
html {
    background: var(--hm-offwhite);
}

body.hm-redesign {
    background: var(--hm-offwhite);
    color: var(--hm-text-2);
    font-family: var(--hm-font-body);
}

/* Enlaces: violeta de marca (antes lila con hover naranja) */
body.hm-redesign a {
    color: var(--hm-violet);
    font-family: var(--hm-font);
}

body.hm-redesign a:visited {
    color: var(--hm-violet);
}

body.hm-redesign a:hover,
body.hm-redesign a:active,
body.hm-redesign a:focus {
    color: var(--hm-indigo);
    text-decoration: none;
}

/* Titulares */
body.hm-redesign h1,
body.hm-redesign h2,
body.hm-redesign h3,
body.hm-redesign h4,
body.hm-redesign h5,
body.hm-redesign h6 {
    font-family: var(--hm-font);
    color: var(--hm-text-strong);
}

body.hm-redesign .subtle {
    color: var(--hm-text-faint);
}

/* -- Loader / splash -- */
body.hm-redesign #loader-wrapper {
    background: var(--hm-offwhite);
}

body.hm-redesign .loader-logo,
body.hm-redesign .loader-text {
    color: var(--hm-violet);
}

body.hm-redesign #progress {
    background: var(--hm-grad-progress);
}

/* -- Botones legacy (.button en juegos/contacto) -- */
body.hm-redesign .button {
    background: var(--hm-violet);
    border-color: var(--hm-violet);
    color: #fff;
    font-family: var(--hm-font);
    letter-spacing: 1.5px;
    border-radius: var(--hm-radius-btn);
}

body.hm-redesign .button:hover {
    background: var(--hm-indigo);
    border-color: var(--hm-indigo);
    color: #fff;
}

body.hm-redesign .button.secondary {
    background: transparent;
    color: var(--hm-violet);
    border: 1px solid var(--hm-border-2);
}

body.hm-redesign .button.secondary:hover {
    border-color: var(--hm-violet);
}

/* -- Sección Juegos (tarjetas legacy) -- */
body.hm-redesign .game-card-right {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
}

body.hm-redesign .game-tags {
    background: var(--hm-lavender);
    border-left: 2px solid var(--hm-violet);
    border-radius: 0 var(--hm-radius-btn) var(--hm-radius-btn) 0;
}

body.hm-redesign .game-tags li a {
    color: var(--hm-text-muted);
}

body.hm-redesign .game-tags li a:hover,
body.hm-redesign .game-tags li a:focus {
    color: var(--hm-violet);
}

body.hm-redesign .games-portfolio li a {
    color: var(--hm-text-muted);
}

body.hm-redesign .games-portfolio li a:hover {
    color: var(--hm-violet);
}

/* Modal de juego */
body.hm-redesign .game-modal .modal-content {
    background: var(--hm-card);
    color: var(--hm-text-2);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
}

body.hm-redesign .game-modal .modal-header {
    border-bottom-color: var(--hm-border);
}

/* -- Contacto (formulario legacy) -- */
body.hm-redesign #contactForm {
    background: var(--hm-lavender-3);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-card);
}

body.hm-redesign #contactForm input,
body.hm-redesign #contactForm textarea {
    background: var(--hm-card);
    border: 1px solid var(--hm-border-2);
    border-radius: var(--hm-radius-btn);
    color: var(--hm-text-strong);
    font-family: var(--hm-font);
}

body.hm-redesign #contactForm input:focus,
body.hm-redesign #contactForm textarea:focus {
    border-color: var(--hm-violet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(83, 43, 130, .12);
}

body.hm-redesign #contact ul li i {
    color: var(--hm-violet);
}

body.hm-redesign #contact ul li p {
    color: var(--hm-text-2);
}

/* -- Breadcrumbs legacy -- */
body.hm-redesign .breadcrumb,
body.hm-redesign .breadcrumb a,
body.hm-redesign .breadcrumb-item.active {
    color: var(--hm-text-faint);
    font-family: var(--hm-font);
}

/* -- Excepciones: texto blanco sobre bandas violetas --
   (los overrides globales de h2/a del tema claro no deben aplicar aquí) */
body.hm-redesign .hm-contact__title,
body.hm-redesign .hm-devlog-cta__title {
    color: #fff;
}

body.hm-redesign .hm-contact__card a,
body.hm-redesign .hm-contact__card span {
    color: #fff;
}

body.hm-redesign .hm-btn--light {
    color: var(--hm-violet);
}

body.hm-redesign .hm-btn--light:hover {
    color: var(--hm-indigo);
}

body.hm-redesign .hm-btn--primary,
body.hm-redesign .hm-btn--primary:hover,
body.hm-redesign .hm-cta,
body.hm-redesign .hm-cta:hover {
    color: #fff;
}

/* ============================================================
   TIPOGRAFÍA HÍBRIDA — cuerpo en Futura BK BT
   Los titulares/UI mantienen Jost (via su propia clase con --hm-font).
   Aquí forzamos SOLO el texto de cuerpo a la Futura Book real.
   Prefijo body.hm-redesign para ganar especificidad a las clases base.
   ============================================================ */
body.hm-redesign .hm-hero__text,
body.hm-redesign .hm-about__text,
body.hm-redesign .hm-about__text p,
body.hm-redesign .hm-service-card__text,
body.hm-redesign .hm-project-card__text,
body.hm-redesign .hm-case__subtitle,
body.hm-redesign .hm-case__col-text,
body.hm-redesign .hm-news-card__text,
body.hm-redesign .hm-featured-news .hm-news-card__text,
body.hm-redesign .hm-contact__text,
body.hm-redesign .hm-contact__card a,
body.hm-redesign .hm-contact__card span,
body.hm-redesign .hm-article__subtitle,
body.hm-redesign .hm-article__body,
body.hm-redesign .hm-article__body p,
body.hm-redesign .hm-article__body li,
body.hm-redesign .hm-devlog-featured__text,
body.hm-redesign .hm-update__text,
body.hm-redesign .hm-devlog-cta__text {
    font-family: var(--hm-font-body);
}

/* Color de títulos de sección/hero (#6F6E73 del mockup) — gana a la regla
   genérica body.hm-redesign h1–h6 del bloque de tema claro. */
body.hm-redesign .hm-hero__title,
body.hm-redesign .hm-section__title {
    color: var(--hm-title);
}

/* ============================================================
   AUDITORÍA V2 — correcciones de fidelidad vs mockups .dc.html
   (overrides con prefijo body.hm-redesign para ganar a las
   reglas legacy de style.css y a body.hm-redesign a{})
   ============================================================ */

/* -- Fugas de enlaces (body.hm-redesign a → violeta/índigo) -- */
body.hm-redesign .hm-filter:not(.is-active) {
    color: var(--hm-text-muted);
    background: var(--hm-card);
    border-color: var(--hm-border-2);
}
body.hm-redesign .hm-filter:hover:not(.is-active) { color: var(--hm-violet); }
body.hm-redesign .hm-filter.is-active { color: #fff; background: var(--hm-violet); }
body.hm-redesign .hm-article__tags .hm-filter {
    border-radius: 6px;
    letter-spacing: 1px;
    background: var(--hm-lavender-2);
}
body.hm-redesign .hm-breadcrumb a { color: var(--hm-text-faint); }
body.hm-redesign .hm-breadcrumb span { color: #cfc7de; }
body.hm-redesign .hm-share-btn:hover { color: #fff; }

/* -- Tarjeta de contacto: label pequeño lila -- */
body.hm-redesign .hm-contact__card .hm-contact__label {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    color: #b3a6cf;
}

/* -- Cuerpo del artículo (RTE): tamaño, viñetas, ancho de lectura -- */
body.hm-redesign .hm-article__body p {
    font-size: 16.5px;
    line-height: 1.8;
    padding: 0;
    margin: 0 0 22px;
}
body.hm-redesign .hm-article__body ul { list-style: disc; }
body.hm-redesign .hm-article__body li {
    font-size: 16.5px;
    line-height: 1.8;
    margin-bottom: 10px;
}
body.hm-redesign .hm-article__body,
body.hm-redesign .hm-article__footer {
    max-width: 720px;
    margin-inline: auto;
}
/* Cita del artículo: sobria, borde violeta, texto violeta 23px/300 */
body.hm-redesign .hm-article__body blockquote {
    background: transparent;
    border-radius: 0;
    border-left: 3px solid var(--hm-violet);
    padding: 6px 0 6px 26px;
    margin: 34px 0;
    font-size: 23px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--hm-violet);
}

/* -- Color de cuerpo #6B6B71 (mockup) -- */
body.hm-redesign .hm-hero__text,
body.hm-redesign .hm-about__text,
body.hm-redesign .hm-about__text p,
body.hm-redesign .hm-service-card__text,
body.hm-redesign .hm-case__subtitle,
body.hm-redesign .hm-case__col-text {
    color: var(--hm-text);
}

/* -- Heroes: fondo en degradado suave a lavanda -- */
body.hm-redesign .hm-hero {
    background: linear-gradient(180deg, var(--hm-offwhite) 0%, var(--hm-lavender) 100%);
}

/* -- Hero: stats como el mockup (15px uppercase tracking) -- */
body.hm-redesign .hm-hero__stat-value {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
body.hm-redesign .hm-hero__stat-label { font-size: 12px; letter-spacing: .5px; }

/* -- Kicker: línea guion + violeta en heroes -- */
body.hm-redesign .hm-kicker::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 10px;
    opacity: .7;
}
body.hm-redesign .hm-hero .hm-kicker { color: var(--hm-violet); }

/* -- Encabezado de sección centrado (modificador) -- */
.hm-section__head--center {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

/* -- Contacto: título más grande, media luna abajo-izquierda -- */
body.hm-redesign .hm-contact__title {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: 1.5px;
}
body.hm-redesign .hm-contact__moon { top: auto; bottom: -70px; left: -50px; }

/* -- Caso de estudio: métricas en tarjetas blancas -- */
body.hm-redesign .hm-case__metrics {
    border-top: 0;
    border-bottom: 0;
    padding: 0;
}
body.hm-redesign .hm-case__metric {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 24px 22px;
}
body.hm-redesign .hm-case__metric-value { font-size: 42px; font-weight: 300; }
body.hm-redesign .hm-case__metric-label {
    font-size: 13px;
    color: var(--hm-text);
    text-transform: none;
    letter-spacing: normal;
}

/* -- Clientes: sin fondo blanco, nombres 20px, kicker gris -- */
body.hm-redesign .hm-clients-strip { background: var(--hm-offwhite); }
body.hm-redesign .hm-clients-strip__row { font-size: 20px; letter-spacing: 1.5px; }
body.hm-redesign .hm-clients-strip__kicker { color: var(--hm-text-faint); }

/* -- Servicios: media luna a la izquierda -- */
body.hm-redesign .hm-services__moon { top: 40px; left: -70px; right: auto; }

/* -- Equipo: sección blanca con bordes, tarjetas lavanda -- */
body.hm-redesign .hm-team {
    background: var(--hm-card);
    border-top: 1px solid var(--hm-border-2);
    border-bottom: 1px solid var(--hm-border-2);
}
body.hm-redesign .hm-team-card { background: var(--hm-lavender-3); }

/* -- About: sección blanca con bordes + rejilla 2 columnas -- */
body.hm-redesign .hm-about {
    background: var(--hm-card);
    border-top: 1px solid var(--hm-border-2);
    border-bottom: 1px solid var(--hm-border-2);
}
.hm-about__grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

/* -- Paginación: centrada, botones cuadrados -- */
body.hm-redesign .hm-pagination .pagination { justify-content: center; gap: 8px; }
body.hm-redesign .hm-pagination .page-link {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -- Devlog: fondos correctos de secciones -- */
body.hm-redesign .hm-devlog-feed { background: var(--hm-offwhite); }
body.hm-redesign .hm-devlog-others {
    background: var(--hm-card);
    border-top: 1px solid var(--hm-border-2);
    border-bottom: 1px solid var(--hm-border-2);
}
body.hm-redesign .hm-devlog-others .hm-project-card { background: var(--hm-lavender-3); }
body.hm-redesign .hm-devlog-others .hm-progress { height: 6px; }
body.hm-redesign .hm-devlog-others .hm-project-card__title {
    text-transform: uppercase;
    letter-spacing: .5px;
}
/* Devlog: juego destacado proporción/altura */
body.hm-redesign .hm-devlog-featured__grid { grid-template-columns: 1.05fr .95fr; }
body.hm-redesign .hm-devlog-featured__media { min-height: 420px; }

/* -- Línea "% · Estado" en tarjetas de otros juegos -- */
.hm-devlog-others__meta {
    font-family: var(--hm-font);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hm-text-faint);
    margin-top: 8px;
}

@media (max-width: 900px) {
    .hm-about__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   PROYECTOS — tarjetas overlay (degradado a sangre + texto blanco)
   ============================================================ */
.hm-projects__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.hm-projects__stack { display: flex; flex-direction: column; gap: 24px; }

.hm-proj {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--hm-radius-card);
    text-decoration: none;
    background-size: cover;
    background-position: center;
    min-height: 240px;
}
.hm-proj--featured { min-height: 100%; }

/* Scrim para legibilidad del texto sobre la imagen/degradado */
.hm-proj::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 15, 46, 0) 35%, rgba(24, 15, 46, .78) 100%);
    z-index: 1;
}
.hm-proj:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow-float); }
.hm-proj { transition: transform .25s ease, box-shadow .25s ease; }

.hm-proj__moon { top: -30px; right: -30px; z-index: 0; }

.hm-proj__chip {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--hm-radius-pill);
    padding: 6px 12px;
}

.hm-proj__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px 30px;
    color: #fff;
}

.hm-proj__client {
    display: block;
    font-family: var(--hm-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--hm-violet-pale);
    margin-bottom: 8px;
}

.hm-proj__title {
    font-family: var(--hm-font);
    font-weight: 400;
    letter-spacing: .5px;
    color: #fff;
    margin: 0;
}
.hm-proj--featured .hm-proj__title { font-size: 28px; }
.hm-proj:not(.hm-proj--featured) .hm-proj__title { font-size: 20px; }

.hm-proj__text {
    font-family: var(--hm-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    margin: 12px 0 0;
    max-width: 46ch;
}

.hm-proj__more {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--hm-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

@media (max-width: 900px) {
    .hm-projects__grid { grid-template-columns: 1fr; }
    .hm-proj { min-height: 220px; }
}

/* -- Medias lunas de heroes (posición) -- */
.hm-devlog-hero__moon { top: 20px; right: -60px; }
.hm-newslist-hero__moon { top: 10px; right: -60px; }
.hm-hero { position: relative; }

/* -- Medias con badge/media luna: contexto de posición -- */
.hm-featured-news__media { position: relative; }
.hm-article__hero-media { position: relative; overflow: hidden; }

/* Título de tarjeta de proyecto (overlay) en blanco — gana a body.hm-redesign h1-h6 */
body.hm-redesign .hm-proj__title { color: #fff; }

/* Botón primario: texto blanco — gana a body.hm-redesign a (fuga de color de enlace).
   !important para blindarlo ante cualquier override legacy del entorno. */
body.hm-redesign .hm-btn--primary,
body.hm-redesign .hm-btn--primary:hover {
    color: #fff !important;
}

/* -- Selector de idioma en el nav -- */
.hm-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid var(--hm-border-2);
    font-family: var(--hm-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}
.hm-lang a {
    color: var(--hm-text-faint);
    text-decoration: none;
    padding: 2px 2px;
    transition: color .2s ease;
}
body.hm-redesign .hm-lang a:hover { color: var(--hm-violet); }
.hm-lang a.is-active { color: var(--hm-violet); }
.hm-lang__sep { color: var(--hm-border-2); }
@media (max-width: 991px) {
    .hm-lang { border-left: 0; padding-left: 0; margin-left: 0; margin-top: 8px; }
}

/* ============================================================
   Banner de consentimiento de cookies (analítica)
   ============================================================ */
.hm-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: var(--hm-card);
    border: 1px solid var(--hm-border-2);
    border-radius: var(--hm-radius-card);
    box-shadow: var(--hm-shadow-float);
    padding: 16px 20px;
}
.hm-consent[hidden] { display: none; }
.hm-consent__text {
    flex: 1 1 260px;
    margin: 0;
    font-family: var(--hm-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--hm-text-2);
}
.hm-consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.hm-consent__btn {
    font-family: var(--hm-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: var(--hm-radius-btn);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hm-consent__btn--primary { background: var(--hm-violet); color: #fff; }
.hm-consent__btn--primary:hover { background: var(--hm-indigo); }
.hm-consent__btn--ghost {
    background: transparent;
    color: var(--hm-text-muted);
    border-color: var(--hm-border-2);
}
.hm-consent__btn--ghost:hover { color: var(--hm-violet); border-color: var(--hm-violet); }
