/* Estilo "mosaico" (home y /casos).
   Piezas con esquinas grandes sobre una rejilla de 12 columnas a todo el ancho.
   Se apoya en los tokens de styles.css, así que funciona en claro y en oscuro.
   Los bloques "tinta" (.bx-ink) van en oscuro en el tema claro y se invierten
   a claro en el tema oscuro, para que siempre contrasten con el fondo. */

.bx {
    --bx-bg: var(--bg-primary);
    --bx-card: var(--bg-secondary);
    --bx-fg: var(--text-primary);
    --bx-text: var(--text-secondary);
    --bx-line: var(--border-color);
    --bx-accent: var(--accent);
    --bx-ink-bg: #f5f5f0;
    --bx-ink-fg: #13131f;
    --bx-ink-text: #55554f;
    --bx-ink-accent: #b85f1f;
    --bx-radius: 24px;
    --bx-gap: 14px;
    --bx-pad: clamp(16px, 2.6vw, 40px);
    --bx-head: var(--hm-head, var(--font-heading, inherit));
    color: var(--bx-fg);
}
[data-theme="light"] .bx {
    --bx-ink-bg: #13131f;
    --bx-ink-fg: #ffffff;
    --bx-ink-text: #c4c4d0;
    --bx-ink-accent: #f0b98a;
}

.bx-wrap { padding-inline: var(--bx-pad); }
.bx-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.bx-section { padding-top: clamp(72px, 9vw, 128px); }
.bx-g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--bx-gap); }
.bx-card {
    box-sizing: border-box;
    padding: clamp(24px, 2.4vw, 36px);
    border-radius: var(--bx-radius);
    background: var(--bx-card);
}
.bx-ink { background: var(--bx-ink-bg); color: var(--bx-ink-fg); }
.bx-accent { background: var(--bx-accent); color: #fff; }
.bx-mono {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.bx-h2 {
    margin: 0;
    font-family: var(--bx-head);
    font-weight: 500;
    font-size: clamp(2.4rem, 4.6vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: inherit;
}
.bx-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: clamp(24px, 3vw, 40px);
}
.bx-head .bx-mono { margin: 0; color: var(--bx-text); }

.bx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--bx-fg);
    color: var(--bx-bg);
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition, .2s), color var(--transition, .2s);
}
.bx-btn:hover { background: var(--bx-accent); color: #fff; }
.bx-btn--accent { background: var(--bx-accent); color: #fff; }
.bx-btn--accent:hover { background: var(--bx-fg); color: var(--bx-bg); }
.bx-btn--lg { min-height: 60px; padding: 0 32px; font-size: 1.05rem; }
.bx-btn:focus-visible { outline: 2px solid var(--bx-accent); outline-offset: 3px; }
.bx-faces { display: inline-flex; }
.bx-faces img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid currentColor; }
.bx-faces img + img { margin-left: -10px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.bx-hero { padding-top: calc(var(--nav-height, 64px) + clamp(32px, 4vw, 56px)); }
.bx-hero-copy {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(28px, 3vw, 44px);
}
.bx-hero-copy .bx-mono { margin: 0 0 28px; color: var(--bx-ink-accent); }
.bx-hero-title {
    margin: 0;
    font-family: var(--bx-head);
    font-weight: 500;
    font-size: clamp(3.2rem, 5.2vw, 5.4rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
    color: inherit;
}
.bx-hero-title em { font-style: normal; color: var(--bx-ink-accent); }
.bx-hero-sub { margin: 24px 0 0; max-width: 32ch; font-size: 1.15rem; line-height: 1.5; color: var(--bx-ink-text); }
.bx-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.bx-rating { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--bx-ink-text); }
.bx-rating .hm-stars svg { fill: var(--bx-ink-accent); width: 14px; height: 14px; }
.bx-hero-media { grid-column: span 7; min-width: 0; }
.bx-hero-media { align-self: center; }
.bx-hero-media .hm-slider { display: flex; flex-direction: column; }
.bx-hero-media .hm-slide-stage { border-radius: var(--bx-radius); }
/* Escritorio: la ventana ocupa todo el ancho y la web se ve entera a 16:9, sin recortes ni zoom */
.bx-hero-media .hm-slide-stage--desktop { padding: 0; aspect-ratio: auto; align-items: flex-start; overflow: hidden; }
.bx-hero-media .hm-slide-stage--desktop .hm-browser {
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.bx-hero-media .hm-slide-stage--desktop .hm-browser img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}
.bx-hero-media .hm-slide-stage--desktop .hm-browser img.hm-wide { aspect-ratio: 16 / 9; object-fit: contain; }

/* ── Packs ────────────────────────────────────────────────────────── */
.bx-pack { grid-column: span 4; display: flex; flex-direction: column; gap: 18px; }
.bx-pack-time { margin: 0; opacity: 0.7; }
.bx-pack-name { margin: 0; font-family: var(--bx-head); font-weight: 500; font-size: 1.9rem; letter-spacing: -0.03em; color: inherit; }
.bx-pack-tag { margin: 0; line-height: 1.5; opacity: 0.8; }
.bx-pack-price {
    margin: 4px 0;
    font-family: var(--bx-head);
    font-weight: 500;
    font-size: clamp(3.2rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}
.bx-pack-price small, .bx-pack-price span {
    font-family: var(--font-body, inherit);
    font-size: 1rem;
    letter-spacing: 0;
    font-weight: 600;
    opacity: 0.7;
}
.bx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bx-checks li { position: relative; padding-left: 30px; line-height: 1.45; }
.bx-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bx-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.bx-more { margin-top: auto; }
.bx-more summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--bx-accent);
}
.bx-more summary::-webkit-details-marker { display: none; }
.bx-more[open] summary { margin-bottom: 14px; }
.bx-pack .bx-btn { align-self: flex-start; }
.bx-pack.bx-ink .bx-btn { background: var(--bx-accent); color: #fff; }
.bx-partner {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 28px;
    border-radius: var(--bx-radius);
    border: 1px solid var(--bx-line);
}
.bx-partner p { margin: 0; color: var(--bx-text); }
.bx-partner strong { color: var(--bx-fg); }

/* ── Pasos ────────────────────────────────────────────────────────── */
.bx-steps-title { grid-column: span 3; align-self: start; }
.bx-step { grid-column: span 3; display: flex; flex-direction: column; gap: 12px; min-height: 250px; }
.bx-step-n {
    margin: 0;
    font-family: var(--bx-head);
    font-size: 4.5rem;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--bx-accent);
}
.bx-step h3 { margin: auto 0 0; font-size: 1.3rem; letter-spacing: -0.02em; color: inherit; }
.bx-step p { margin: 0; line-height: 1.5; color: var(--bx-text); }

/* ── Muro de proyectos ────────────────────────────────────────────── */
.bx-wall {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    column-gap: var(--bx-gap);
    /* todas las casillas son 16:9: con el hueco vertical a 9/16 del horizontal,
       una casilla grande mide justo lo que dos pequeñas apiladas y la foto
       (la web a 1920x1080) entra entera, sin recortes */
    row-gap: calc(var(--bx-gap) * 0.5625);
    align-items: start;
}
.bx-t {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: var(--bx-card);
    text-decoration: none;
    color: inherit;
}
.bx-t img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
/* Borde encima de la captura: algunas tienen el mismo color que el fondo de la página */
.bx-t::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--bx-fg) 18%, transparent);
    pointer-events: none;
    z-index: 2;
    transition: border-color 0.2s;
}
.bx-t:hover::after { border: 2px solid var(--bx-accent); }
.bx-t:focus-visible { outline: 3px solid var(--bx-accent); outline-offset: 3px; }
.bx-t--s { grid-column: span 4; }
.bx-t--h { grid-column: span 6; }
.bx-t--full { grid-column: span 12; }
.bx-t--bigL { grid-column: 1 / span 8; grid-row: span 2; }
.bx-t--bigR { grid-column: 5 / span 8; grid-row: span 2; }
/* Proyectos con panel de administración: la foto del panel encima, que se
   alterna sola (home.js añade .is-admin); al pasar el ratón se ve la web */
.bx-t .bx-admin {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.bx-t--duo.is-admin .bx-admin { opacity: 1; }
@media (hover: hover) {
    .bx-t--duo:hover .bx-admin { opacity: 0; }
}
.bx-view {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(19, 19, 31, 0.86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.bx-view b {
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: background-color 0.3s, color 0.3s;
}
.bx-view b:first-child,
.bx-t--duo.is-admin .bx-view b:last-child { background: var(--bx-accent); color: #fff; }
.bx-t--duo.is-admin .bx-view b:first-child { background: transparent; color: rgba(255, 255, 255, 0.6); }
@media (hover: hover) {
    .bx-t--duo:hover .bx-view b:first-child { background: var(--bx-accent); color: #fff; }
    .bx-t--duo:hover .bx-view b:last-child { background: transparent; color: rgba(255, 255, 255, 0.6); }
}
/* Proyectos sin foto del muro y con solo capturas de móvil: el móvil sobre color */
.bx-t--phone { display: flex; justify-content: center; padding-top: 22px; background: var(--bx-accent); }
.bx-t--phone:nth-child(even) { background: var(--bx-ink-bg); }
.bx-t--phone img {
    width: auto;
    height: 118%;
    object-fit: contain;
    border-radius: 22px;
    border: 5px solid #13131f;
    box-sizing: border-box;
}
.bx-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(19, 19, 31, 0.86);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.bx-tag small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-weight: 500;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f0b98a;
}
.bx-t[hidden] { display: none; }

/* ── Promesas, equipo y reseña ───────────────────────────────────── */
.bx-promise { grid-column: span 3; display: flex; flex-direction: column; gap: 12px; min-height: 250px; }
.bx-promise-big {
    margin: 0;
    font-family: var(--bx-head);
    font-size: clamp(2.4rem, 3.6vw, 3.3rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
}
.bx-promise h3 { margin: 0; font-size: 1.1rem; color: inherit; }
.bx-promise p:last-child { margin: auto 0 0; line-height: 1.5; opacity: 0.78; }
.bx-team { grid-column: span 5; display: flex; flex-direction: column; gap: 22px; }
.bx-team-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bx-team-photos figure { margin: 0; }
.bx-team-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.bx-team-photos figcaption { margin-top: 10px; font-weight: 700; }
.bx-team-photos figcaption span { margin-left: 6px; color: var(--bx-text); }
.bx-team h2 { margin: 0; font-family: var(--bx-head); font-weight: 500; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.02; letter-spacing: -0.035em; color: inherit; }
.bx-team p { margin: 0; line-height: 1.55; color: var(--bx-text); }
.bx-review { grid-column: span 7; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 3.4vw, 48px); }
.bx-review .hm-stars svg { fill: #fff; width: 20px; height: 20px; }
.bx-review blockquote {
    margin: 0;
    font-family: var(--bx-head);
    font-size: clamp(1.6rem, 2.7vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}
.bx-review-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.bx-review-foot p { margin: 0; }
.bx-review-dots { display: flex; gap: 8px; }
.bx-review-dots button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    font: 700 0.85rem/1 var(--font-body, inherit);
    cursor: pointer;
}
.bx-review-dots button[aria-pressed="true"] { background: #fff; color: var(--bx-accent); border-color: #fff; }
.bx-review-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── FAQ y cierre ─────────────────────────────────────────────────── */
.bx-faq-head { grid-column: span 4; }
.bx-faq-head p { margin: 16px 0 0; color: var(--bx-text); }
.bx-faq { grid-column: span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
.bx-faq details { border-top: 1px solid var(--bx-line); }
.bx-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.05rem;
}
.bx-faq summary::-webkit-details-marker { display: none; }
.bx-faq summary::after { content: "+"; color: var(--bx-accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.bx-faq details[open] summary::after { transform: rotate(45deg); }
.bx-faq details p { margin: 0 0 20px; line-height: 1.6; color: var(--bx-text); }
.bx-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(36px, 6vw, 88px);
}
.bx-cta h2 {
    margin: 0;
    font-family: var(--bx-head);
    font-weight: 500;
    font-size: clamp(3.4rem, 9vw, 8.6rem);
    line-height: 0.85;
    letter-spacing: -0.055em;
    color: inherit;
}
/* el titular tiene line-height 0.85 y las letras con rabo (g, p) invaden el hueco: margen generoso */
.bx-cta p { margin: clamp(40px, 4.5vw, 64px) 0 0; max-width: 40ch; line-height: 1.5; color: var(--bx-ink-text); }
.bx-end { padding-bottom: clamp(40px, 5vw, 72px); }

/* ── /casos ───────────────────────────────────────────────────────── */
.bx-page-head { padding-top: calc(var(--nav-height, 64px) + clamp(32px, 5vw, 72px)); }
.bx-page-title {
    margin: 0;
    font-family: var(--bx-head);
    font-weight: 500;
    font-size: clamp(3.6rem, 9vw, 8.4rem);
    line-height: 0.86;
    letter-spacing: -0.05em;
    color: inherit;
}
.bx-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.bx-title-row .bx-mono { margin: 0 0 10px; color: var(--bx-text); line-height: 1.5; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-chip {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--bx-line);
    background: transparent;
    color: var(--bx-fg);
    font: 600 0.92rem/1 var(--font-body, inherit);
    cursor: pointer;
}
.bx-chip:hover { border-color: var(--bx-fg); }
.bx-chip[aria-pressed="true"] { background: var(--bx-fg); color: var(--bx-bg); border-color: var(--bx-fg); }
.bx-chip:focus-visible { outline: 2px solid var(--bx-accent); outline-offset: 2px; }
.bx-empty { color: var(--bx-text); }

/* ── Pantallas medianas y móvil ───────────────────────────────────── */
@media (max-width: 1100px) {
    .bx-hero-copy, .bx-hero-media { grid-column: 1 / -1; }
    .bx-hero-media .hm-slider { height: auto; }
    .bx-pack { grid-column: span 6; }
    .bx-pack:last-of-type { grid-column: 1 / -1; }
    .bx-steps-title { grid-column: 1 / -1; }
    .bx-step { grid-column: span 4; }
    .bx-promise { grid-column: span 6; }
    .bx-team, .bx-review { grid-column: 1 / -1; }
    .bx-faq-head, .bx-faq { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .bx-g12 > * { grid-column: 1 / -1 !important; }
    .bx-step, .bx-promise { min-height: 0; }
    .bx-faq { grid-template-columns: 1fr; }
    /* en el móvil, una foto debajo de otra, a todo el ancho */
    .bx-wall { grid-template-columns: 1fr; gap: 12px; }
    .bx-wall > .bx-t { grid-column: 1 / -1; grid-row: auto; }
    .bx-tag small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bx-sticker, .bx-sticker::after, .bx-sticker-ring { animation: none; }
    .bx-t::after, .bx-t .bx-admin, .bx-view b { transition: none; }
}

/* ── Ficha de un proyecto (/casos/<slug>) ───────────────────────── */
.bx-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 14px;
    color: var(--bx-text);
    font-weight: 600;
    text-decoration: none;
}
.bx-back:hover { color: var(--bx-fg); }
.bx-case-top { align-items: stretch; }
.bx-case-intro {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 340px;
}
/* Sector arriba como etiqueta; nombre y frase abajo, con aire entre ambos */
.bx-case-intro .bx-mono { margin: 0; color: var(--bx-text); }
.bx-case-sector {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--bx-line, rgba(0, 0, 0, 0.12));
    border-radius: 18px;
    background: var(--bx-bg, transparent);
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bx-case-sector::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bx-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bx-accent) 22%, transparent);
}
.bx-case-title {
    margin: auto 0 0;
    padding-top: 40px;
    font-family: var(--bx-head);
    font-weight: 500;
    font-size: clamp(2.8rem, 6.4vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.bx-case-lead {
    margin: 30px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--bx-line, rgba(0, 0, 0, 0.12));
    max-width: 56ch;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    line-height: 1.5;
    color: var(--bx-text);
}
.bx-case-draft { color: var(--bx-accent) !important; }
/* Certificado Delone Tech: pegatina redonda sobre una "hoja" punteada */
.bx-case-cert {
    grid-column: span 4;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 340px;
    background-color: var(--bx-card);
    background-image: radial-gradient(color-mix(in srgb, var(--bx-fg) 16%, transparent) 1.2px, transparent 1.4px);
    background-size: 16px 16px;
    overflow: hidden;
}
.bx-sticker {
    --stk-bg: var(--bx-ink-bg);
    --stk-fg: var(--bx-ink-fg);
    --stk-hi: var(--bx-accent);
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(190px, 17vw, 236px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--stk-bg);
    color: var(--stk-fg);
    text-decoration: none;
    /* borde blanco troquelado y sombra de pegatina */
    box-shadow: 0 0 0 7px #fff, 0 0 0 8px rgba(0, 0, 0, 0.06), 0 18px 32px -10px rgba(19, 19, 31, 0.45);
    transform: rotate(-9deg);
    transition: transform 0.45s cubic-bezier(.2, .9, .3, 1.4), box-shadow 0.3s;
    animation: bx-stamp 0.7s cubic-bezier(.2, .9, .3, 1.3) 0.25s both;
    overflow: hidden;
    isolation: isolate;
}
.bx-sticker--web { --stk-bg: var(--bx-accent); --stk-fg: #fff; --stk-hi: #13131f; }
.bx-sticker--landing { --stk-bg: #f3e6c8; --stk-fg: #13131f; --stk-hi: #b85f1f; }
/* brillo que cruza la pegatina */
.bx-sticker::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%);
    transform: translateX(-80%);
    animation: bx-shine 5.5s ease-in-out 1.2s infinite;
    pointer-events: none;
    z-index: 2;
}
.bx-sticker:hover, .bx-sticker:focus-visible {
    transform: rotate(0deg) scale(1.06);
    box-shadow: 0 0 0 7px #fff, 0 0 0 8px rgba(0, 0, 0, 0.06), 0 26px 44px -12px rgba(19, 19, 31, 0.5);
}
.bx-sticker:focus-visible { outline: 3px solid var(--bx-accent); outline-offset: 10px; }
.bx-sticker-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: bx-spin 28s linear infinite;
}
.bx-sticker-ring text {
    fill: currentColor;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.bx-sticker:hover .bx-sticker-ring { animation-duration: 8s; }
.bx-sticker-core {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 64%;
    aspect-ratio: 1;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px dashed color-mix(in srgb, currentColor 45%, transparent);
    text-align: center;
}
.bx-sticker-logo {
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
    background: var(--stk-hi);
    -webkit-mask: url('../img/logo/forma_negra_transparente.webp') center / contain no-repeat;
    mask: url('../img/logo/forma_negra_transparente.webp') center / contain no-repeat;
}
.bx-sticker-kicker {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
}
.bx-sticker-core strong {
    font-family: var(--bx-head);
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 92%;
}
.bx-sticker-no {
    margin-top: 3px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--stk-hi);
}
.bx-sticker-no i { font-style: normal; opacity: 0.6; }
@keyframes bx-stamp {
    0% { opacity: 0; transform: rotate(-30deg) scale(1.6); }
    60% { opacity: 1; transform: rotate(-6deg) scale(0.94); }
    100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}
@keyframes bx-shine {
    0%, 70% { transform: translateX(-80%); }
    100% { transform: translateX(80%); }
}
@keyframes bx-spin { to { transform: rotate(360deg); } }
.bx-case-facts {
    margin: 0;
    display: flex;
    gap: 28px;
}
.bx-case-facts div { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.bx-case-facts dt { color: var(--bx-text); }
.bx-case-facts dd {
    margin: 0;
    font-family: var(--bx-head);
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
}
.bx-case-gallery { margin-top: 14px; }
.bx-case-media { padding: clamp(14px, 2vw, 28px); }
.bx-case-h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.bx-case-point {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: 230px;
}
.bx-case-point p:last-child {
    margin: auto 0 0;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    line-height: 1.4;
    font-weight: 600;
}
.bx-case-num {
    margin: 0;
    font-family: var(--bx-head);
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0.5;
}
.bx-case-result { grid-column: span 4; display: flex; flex-direction: column; gap: 10px; }
.bx-case-result h3 { margin: 0; font-size: 1.1rem; }
.bx-case-result p:last-child:not(.bx-promise-big) { margin: 0; color: var(--bx-text); line-height: 1.5; }
.bx-case-story { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; }
.bx-case-story--full { grid-column: 1 / -1; }
.bx-case-story .bx-h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.bx-case-story .hm-prose { line-height: 1.65; color: var(--bx-text); }
.bx-case-quote { margin: 0; padding: clamp(32px, 5vw, 72px); }
.bx-case-quote blockquote {
    margin: 18px 0 26px;
    font-family: var(--bx-head);
    font-size: clamp(1.7rem, 3.4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    max-width: 30ch;
}
.bx-case-quote figcaption .bx-mono { margin-left: 8px; opacity: 0.85; }

@media (max-width: 1100px) {
    .bx-case-intro, .bx-case-cert { grid-column: 1 / -1; }
    .bx-case-intro { min-height: 0; }
    .bx-case-cert { min-height: 0; padding-top: 36px; padding-bottom: 32px; }
    .bx-case-point, .bx-case-result { grid-column: span 6; }
    .bx-case-story { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .bx-case-point, .bx-case-result { grid-column: 1 / -1; min-height: 0; }
}

/* Entrada al hacer scroll (home.js añade .bx-rv y luego .is-in) */
.bx-rv {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.7s ease, translate 0.8s cubic-bezier(.2, .8, .2, 1);
}
.bx-rv.is-in { opacity: 1; translate: 0 0; }
.bx-case-title.bx-rv { translate: 0 0.25em; transition: opacity 0.6s ease 0.15s, translate 1s cubic-bezier(.2, .8, .2, 1) 0.15s; }
