/* ==========================================================================
   LZM Guitar Workshop — Landing page
   Hoja de estilos exclusiva de la landing (application/views/landing_page.php).
   No depende de Bootstrap ni de assets/build/css/land.css.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #0c0c0e;
    --surface: #151518;
    --surface-2: #1d1d21;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f4f4f5;
    --muted: #a9a9b2;
    --red: #b12028;
    --red-dark: #8f181f;
    --red-hi: #ef5a60;
    --whatsapp: #1faa53;
    --paper: #f3f1ec;

    --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --header-h: 68px;
    --wrap: 1180px;
    --gutter: 20px;
    --section: clamp(64px, 9vw, 112px);

    /* Curva de movimiento: arranca rápido y frena suave, para todo lo que responde al usuario */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

    /* Escala tipográfica: siete tamaños para toda la página */
    --fs-small: 0.875rem;
    --fs-body: 1.0625rem;
    --fs-lead: 1.25rem;
    --fs-h3: clamp(1.35rem, 2.6vw, 1.75rem);
    --fs-h2: clamp(2rem, 4.6vw, 3.25rem);
    --fs-figure: clamp(2.6rem, 6vw, 3.75rem);
    --fs-display: clamp(2.75rem, 8.2vw, 5.25rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scrollbar-color: #3a3a40 var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Lo que dibuja el navegador también lleva la marca */
::selection {
    background: var(--red);
    color: #fff;
}

input,
textarea {
    caret-color: var(--red);
}

h1,
h2,
h3 {
    text-wrap: balance;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--red-hi);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Respuesta inmediata al tocar: sin la espera del doble toque */
a,
button,
summary {
    touch-action: manipulation;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    fill: currentColor;
    flex: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: #fff;
    color: #000;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 160ms var(--ease-out);
    user-select: none;
    -webkit-user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-1px);
    }
}

.btn:active {
    transform: scale(0.97);
}

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

@media (hover: hover) and (pointer: fine) {
    .btn--primary:hover {
        background: var(--red-dark);
    }
}

.btn--dark {
    background: #17171a;
    color: #fff;
}

.btn--light {
    background: #fff;
    color: #111;
}

@media (hover: hover) and (pointer: fine) {
    .btn--light:hover {
        background: #e4e4e7;
    }
}

.btn--ghost {
    border-color: transparent;
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

@media (hover: hover) and (pointer: fine) {
    .btn--ghost:hover {
        background: rgba(255, 255, 255, 0.16);
    }
}

.btn--sm {
    min-height: 40px;
    padding: 8px 18px;
    font-size: var(--fs-small);
}

/* ---------- Barra de anuncio (temporal) ---------- */
.announce {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    min-height: 44px;
    padding: 8px var(--gutter);
    background: #3a1a1d;
    color: #fff;
    font-size: var(--fs-small);
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, transform 160ms var(--ease-out);
}

.announce .icon {
    width: 18px;
    height: 18px;
}

.announce__tag {
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.announce strong {
    font-weight: 800;
}

.announce__more {
    display: none;
    color: #e4c9cb;
}

.announce .icon:last-child {
    transition: transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .announce:hover .icon:last-child {
        transform: translateX(4px);
    }
}

@media (min-width: 760px) {
    .announce__more {
        display: inline;
    }
}

/* En pantallas estrechas se quitan los iconos para que quepa en una línea */
@media (max-width: 479px) {
    .announce .icon:last-child {
        display: none;
    }

    .announce {
        font-size: var(--fs-small);
    }
}

@media (max-width: 359px) {
    .announce .icon {
        display: none;
    }
}

/* ---------- Cabecera ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 14, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, background-color 0.2s;
}

.site-header.is-scrolled {
    background: rgba(12, 12, 14, 0.95);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}

.brand {
    flex: none;
    display: block;
}

.brand img {
    width: 136px;
    height: 42px;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.2s, transform 160ms var(--ease-out);
}

.nav-toggle .icon {
    width: 24px;
    height: 24px;
}

.nav-toggle .icon--close,
.nav-toggle[aria-expanded="true"] .icon--open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon--close {
    display: block;
}

.site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: #0c0c0e;
}

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

.site-nav__list a {
    display: block;
    padding: 14px 4px;
    font-weight: 600;
    text-decoration: none;
}

.site-nav__list a[aria-current="true"] {
    color: var(--red-hi);
}

@media (hover: hover) and (pointer: fine) {
    .site-nav__list a:hover {
        color: var(--red-hi);
    }
}

.site-nav__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

@media (min-width: 1200px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        position: static;
        flex: 1;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .site-nav__list {
        display: flex;
        gap: 4px;
    }

    .site-nav__list a {
        padding: 8px 12px;
        border: 0;
        border-radius: var(--radius-sm);
        font-size: var(--fs-small);
        font-weight: 500;
        color: #d4d4d8;
        white-space: nowrap;
    }

    @media (hover: hover) and (pointer: fine) {
        .site-nav__list a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.06);
        }
    }

    .site-nav__list a[aria-current="true"] {
        color: #fff;
        box-shadow: inset 0 -2px 0 var(--red);
        border-radius: 0;
    }

    .site-nav__actions {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0;
    }

    .site-nav__actions .btn {
        white-space: nowrap;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, var(--bg) 0%, rgba(12, 12, 14, 0) 38%),
        linear-gradient(100deg, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.8) 48%, rgba(8, 8, 10, 0.5) 100%);
}

.js .hero__bg {
    animation: hero-zoom 16s ease-out both;
}

@keyframes hero-zoom {
    from {
        transform: scale(1.12);
    }
}

.hero__content > *,
.hero .stats {
    animation: rise 0.8s var(--ease-out) both;
}

.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.24s; }
.hero__content > :nth-child(5) { animation-delay: 0.32s; }
.hero__content > :nth-child(6) { animation-delay: 0.4s; }
.hero .stats { animation-delay: 0.5s; }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
}

.hero__inner {
    padding-block: clamp(56px, 10vw, 120px) clamp(48px, 7vw, 88px);
}

.hero__content {
    max-width: 720px;
}

.hero h1 {
    margin-top: 18px;
    font-size: var(--fs-display);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--red-hi);
}

.hero__lead {
    max-width: 600px;
    margin-top: 24px;
    color: #dcdce0;
    font-size: var(--fs-lead);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__place {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 22px;
    color: #c9c9cf;
    font-size: var(--fs-small);
    font-weight: 600;
}

.hero__place .icon {
    margin-top: 4px;
    color: var(--red-hi);
}

.hero__place a {
    display: inline-block;
    padding-block: 4px;
    margin-block: -4px;
    color: var(--text);
    text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .hero__place a:hover {
        color: var(--red-hi);
    }
}

@media (max-width: 479px) {

    .hero__actions,
    .closing__actions {
        display: grid;
    }

    .cta-inline .btn {
        width: 100%;
    }

}

/* ---------- Etiqueta de orden de trabajo (rastreo desde el hero) ---------- */
/* Como la etiqueta de cartón que el taller cuelga del clavijero de cada instrumento */
.tag {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-width: 470px;
    margin-top: 28px;
    padding: 18px 20px 18px 56px;
    background: var(--paper);
    color: #17171a;
    clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
    transform: rotate(-1.2deg);
    transform-origin: left center;
    transition: transform 300ms var(--ease-out);
}

.tag:focus-within {
    transform: none;
}

.tag__hole {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background: var(--bg);
    border: 4px solid #d6cfbf;
    border-radius: 50%;
}

.tag__label {
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.3;
}

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

.tag__input {
    flex: 1;
    width: 0;
    min-width: 0;
    padding: 8px 2px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid #17171a;
    border-radius: 0;
    color: #17171a;
    font: inherit;
    font-size: var(--fs-body);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tag__input::placeholder {
    color: #8a857a;
}

.tag__input:focus {
    outline: none;
    border-bottom-color: var(--red);
}

/* Con teclado, además de la línea roja, un anillo visible */
.tag__input:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
    border-radius: 2px;
}

.tag__hint {
    margin-top: -2px;
    color: #57534b;
    font-size: var(--fs-small);
    line-height: 1.35;
}

.tag__submit[aria-busy="true"] {
    cursor: progress;
}

/* ---------- Afinador del botón "Buscar" ---------- */
/* Mientras se busca la orden, la lupa se cambia por la aguja de un afinador
   que busca la nota: oscila cada vez menos hasta quedar centrada, y repite */
.tuner {
    display: none;
    flex: none;
    width: 26px;
    height: 18px;
    overflow: visible;
}

.tag__submit[aria-busy="true"] > .icon {
    display: none;
}

.tag__submit[aria-busy="true"] .tuner {
    display: block;
}

.tuner__arc,
.tuner__ticks {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.tuner__ticks {
    stroke: #fff;
}

.tuner__needle {
    stroke: var(--red-hi);
    stroke-width: 2;
    stroke-linecap: round;
    transform-box: view-box;
    transform-origin: 12px 14px;
    animation: tuner-hunt 1.5s var(--ease-out) infinite;
}

.tuner__hub {
    fill: #fff;
}

@keyframes tuner-hunt {
    0% { transform: rotate(-48deg); }
    28% { transform: rotate(30deg); }
    50% { transform: rotate(-16deg); }
    68% { transform: rotate(8deg); }
    84% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    /* Sin movimiento: la aguja aparece ya centrada */
    .tuner__needle {
        animation: none;
    }
}

/* En pantallas muy estrechas, sin inclinación para que no sobresalga */
@media (max-width: 399px) {
    .tag {
        padding-left: 46px;
        transform: none;
    }

    .tag__hole {
        left: 14px;
    }

    .tag__row {
        flex-wrap: wrap;
    }

    .tag__input {
        flex-basis: 100%;
    }

    .tag__row .btn {
        width: 100%;
    }
}

@media (hover: hover) and (pointer: fine) {
    .tag:hover {
        transform: none;
    }
}

/* ---------- Anuncio de la plataforma en el hero ---------- */
/* Móvil y tablet: una sola línea bajo el contenido */
.hero-card {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    max-width: 100%;
    margin-top: 22px;
    padding: 9px 16px 9px 10px;
    background: #3a1a1d;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    animation: rise 0.8s var(--ease-out) 0.45s both;
    transition: background-color 0.2s, transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .hero-card:hover {
        background: #4a1f23;
    }
}

.hero-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--red);
    border-radius: 999px;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.hero-card__title {
    font-size: var(--fs-body);
    font-weight: 800;
}

.hero-card__text,
.hero-card__list,
.hero-card__more span {
    display: none;
}

.hero-card__more {
    display: inline-flex;
    color: var(--red-hi);
    transition: transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .hero-card:hover .hero-card__more {
        transform: translateX(4px);
    }
}

@media (max-width: 359px) {
    .hero-card {
        border-radius: var(--radius);
    }
}

/* Escritorio: tarjeta a la derecha del titular */
@media (min-width: 1100px) {
    .hero__top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 48px;
        align-items: center;
    }

    .hero-card {
        position: relative;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0;
        margin-top: 0;
        padding: 26px;
        overflow: hidden;
        background: #151518;
        border-radius: calc(var(--radius) + 4px);
    }

    @media (hover: hover) and (pointer: fine) {
        .hero-card:hover {
            transform: translateY(-4px);
        }
    }

    .hero-card__tag {
        padding: 4px 12px;
        font-size: var(--fs-small);
    }

    .hero-card__title {
        margin-top: 16px;
        font-size: var(--fs-h3);
        font-weight: 900;
        line-height: 1.1;
    }

    .hero-card__text {
        display: block;
        margin-top: 8px;
        color: #c9c9cf;
        font-size: var(--fs-body);
    }

    .hero-card__list {
        display: grid;
        gap: 10px;
        width: 100%;
        margin-top: 18px;
        padding-top: 18px;
        font-weight: 600;
    }

    .hero-card__list li {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hero-card__list .icon {
        width: 34px;
        height: 34px;
        padding: 8px;
        background: rgba(177, 32, 40, 0.25);
        border-radius: 10px;
        color: var(--red-hi);
    }

    .hero-card__more {
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        font-size: var(--fs-small);
        font-weight: 700;
    }

    .hero-card__more span {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card {
        animation: none;
    }
}

/* ---------- Cuerdas que se pueden tocar (final del hero) ---------- */
.strings {
    position: relative;
    padding-bottom: clamp(16px, 3vw, 28px);
}

.strings__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

/* Contador del mini juego, junto al botón de sonido */
.strings__progress {
    margin-left: auto;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.strings__progress b {
    color: var(--text);
}

.strings__progress.is-done,
.strings__progress.is-done b {
    color: #3ddc84;
}

/* ---------- LZM Tuner: portada del juego ---------- */
.tuner-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "name name" "title title" "text text" "steps steps" "play play" "board board";
    align-items: center;
    gap: 6px 16px;
}

.tuner-intro__name {
    grid-area: name;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    padding: 4px 12px;
    background: var(--red);
    border-radius: 999px;
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 900;
    letter-spacing: 0.04em;
}

/* Un punto que late: el juego espera a que alguien lo empiece */
.tuner-intro__name::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: hint-beat 1.4s var(--ease-out) infinite;
}

@keyframes hint-beat {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.55);
        opacity: 0.5;
    }
}

.tuner-intro__title {
    grid-area: title;
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1.1;
}

.tuner-intro__text {
    grid-area: text;
    max-width: 60ch;
    color: #c9c9cf;
}

/* Los tres pasos del juego, como en un tutorial */
.tuner-steps {
    grid-area: steps;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    counter-reset: paso;
}

.tuner-steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: var(--fs-small);
    font-weight: 800;
    counter-increment: paso;
}

.tuner-steps__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--red);
    border-radius: 50%;
    color: #fff;
}

.tuner-steps__icon .icon {
    width: 16px;
    height: 16px;
}

/* El número del paso, pequeño, sobre el icono */
.tuner-steps__icon::after {
    content: counter(paso);
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    color: #17171a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

/* Los niveles: cuatro tarjetas-botón, cada una con su récord.
   En móvil, en rejilla de 2 × 2; en pantallas anchas, las cuatro en fila */
.tuner-levels {
    grid-area: play;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.tuner-level {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 64px;
    padding: 12px 14px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: #c9c9cf;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.tuner-level__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 50%;
    color: #fff;
}

.tuner-level__icon .icon {
    width: 19px;
    height: 19px;
}

.tuner-level__text {
    display: grid;
    gap: 2px;
    font-size: var(--fs-small);
    line-height: 1.3;
}

.tuner-level__text strong {
    color: #fff;
    font-size: var(--fs-body);
    font-weight: 900;
    line-height: 1.2;
}

.tuner-level__text em {
    color: #f5b942;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.tuner-level__text em:empty {
    display: none;
}

/* La pastilla "Jugar", abajo de cada tarjeta */
.tuner-level__play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 7px 16px 7px 12px;
    background: var(--red);
    border-radius: 999px;
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 800;
    transition: background-color 0.2s var(--ease-out);
}

.tuner-level__play .icon {
    width: 14px;
    height: 14px;
}

/* Fila bajo las tarjetas: la tabla completa y el sonido */
.tuner-board {
    grid-area: board;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.tuner-sound {
    order: 0;
    min-height: 44px;
    padding: 10px 20px;
}

/* En la portada, el sonido está junto a "Ver Top 10": el de arriba se esconde hasta jugar */
.strings:not(.is-playing):not(.is-done) .strings__sound:not(.tuner-sound) {
    display: none;
}

/* El botón de la tabla completa */
.tuner-top10 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.5);
    border-radius: 999px;
    color: #f5b942;
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-out);
}

.tuner-top10[hidden] {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .tuner-top10:hover {
        background: rgba(245, 185, 66, 0.2);
    }
}

/* La ventana del Top 10, como pantalla de maquinita */
.top10 {
    --arcade-font: "Press Start 2P", ui-monospace, monospace;
    width: min(520px, calc(100% - 32px));
    margin: auto;
    padding: 18px 18px 20px;
    background: #050507;
    border: 2px solid #2c2c33;
    border-radius: 14px;
    color: #fff;
}

.top10::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.top10__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top10__title {
    color: #f5b942;
    font-family: var(--arcade-font);
    font-size: 14px;
    text-transform: uppercase;
}

.top10__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.top10__tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 6px;
    margin-top: 14px;
}

.top10__tabs button {
    min-height: 44px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2c2c33;
    border-radius: 8px;
    color: #c9c9cf;
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 800;
    cursor: pointer;
}

.top10__tabs button[aria-selected="true"] {
    background: rgba(177, 32, 40, 0.45);
    border-color: var(--red-hi);
    color: #fff;
}

.top10__level {
    margin: 14px 0 10px;
    color: #c9c9cf;
    font-size: var(--fs-small);
    font-weight: 800;
}

.top10__list {
    --arcade-font: "Press Start 2P", ui-monospace, monospace;
}

.tuner-level:active {
    transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
    .tuner-level:hover {
        background: rgba(255, 255, 255, 0.14);
        border-color: var(--red-hi);
    }

    .tuner-level:hover .tuner-level__play {
        background: var(--red-hi);
    }
}

@media (min-width: 900px) {
    .tuner-levels {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 10px;
    }

    /* Con 6 niveles, en dos filas de tres */
    .tuner-levels:has(> :nth-child(5)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tuner-intro__name::before,
    .tuner-box__help .icon,
    .tuner-box.show-guide .peg__guide {
        animation: none;
    }
}

.strings__sound {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 999px;
    color: var(--text);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.2s, transform 160ms var(--ease-out);
}

.strings__sound:active {
    transform: scale(0.97);
}

.strings__sound .icon--on,
.strings__sound[aria-pressed="true"] .icon--off {
    display: none;
}

.strings__sound[aria-pressed="true"] .icon--on {
    display: block;
}

.strings__sound[aria-pressed="true"] {
    background: var(--red);
}

/* Apagado: en ámbar y con un pulso suave, para que se vea que hay sonido */
.strings__sound[aria-pressed="false"] {
    background: rgba(245, 185, 66, 0.16);
    box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.55);
    color: #f5b942;
    animation: sound-pulse 2.2s var(--ease-out) infinite;
}

@keyframes sound-pulse {
    0% { box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.55), 0 0 0 0 rgba(245, 185, 66, 0.45); }
    70%, 100% { box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.55), 0 0 0 12px rgba(245, 185, 66, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .strings__sound[aria-pressed="false"] {
        animation: none;
    }
}

/* Aviso breve al activarse el sonido, abajo y centrado */
.sound-toast {
    position: fixed;
    left: 50%;
    top: calc(var(--header-h) + 12px);
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 20px;
    background: #1f1f24;
    border: 1px solid rgba(61, 220, 132, 0.45);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -12px);
    transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
}

.sound-toast .icon {
    flex: none;
    color: #3ddc84;
}

.sound-toast.is-shown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (hover: hover) and (pointer: fine) {
    .strings__sound:hover {
        background: rgba(255, 255, 255, 0.18);
    }

    .strings__sound[aria-pressed="true"]:hover {
        background: var(--red-dark);
    }
}

/* Afinador de las cuerdas: escala de −50 a +50 cents con la aguja; en rojo mientras
   busca y en verde cuando llega a 0 */
/* La invitación y el afinador ocupan la misma celda: el espacio del afinador
   queda reservado desde el principio y las cuerdas no se mueven al tocarlas */
.tuner-box {
    display: grid;
    flex: 1 1 100%;
    align-items: center;
    min-width: 0;
    min-height: 44px;
}

/* En el teléfono y la tablet, el contador y el botón de sonido van arriba,
   y el afinador queda pegado a las cuerdas */
@media (max-width: 899px) {
    .strings__progress,
    .strings__sound {
        order: -1;
    }
}

/* En pantallas anchas el afinador ocupa el espacio libre y el contador y el
   botón de sonido se quedan a la derecha, en la misma línea */
@media (min-width: 900px) {
    .tuner-box {
        flex: 1 1 0;
    }
}

.tuner-box > .tuner-intro,
.tuner-box > .tuner-box__display {
    grid-area: 1 / 1;
}

/* El afinador se apoya abajo, junto a las cuerdas; si la portada era más alta,
   el espacio que sobra queda arriba */
.tuner-box > .tuner-box__display {
    align-self: end;
}

/* Cada pieza del afinador tiene su sitio fijo, para que nada salte mientras juegas:
   nota, escala y cents arriba; el indicador debajo; la clavija aparte */
.tuner-box__display {
    display: grid;
    visibility: hidden;
    grid-template-columns: auto auto 1fr;
    grid-template-areas: "note meter cents" "help help help" "peg peg peg";
    align-items: center;
    justify-items: start;
    gap: 10px 14px;
}

.tuner-box__note { grid-area: note; }
.tuner-box__meter { grid-area: meter; }
.tuner-box__cents { grid-area: cents; }
.tuner-box__help { grid-area: help; }
.tuner-box__display .peg { grid-area: peg; }
.tuner-box__display .ear-controls { grid-area: ear; }

/* Nivel 2: botones para oír la referencia y comprobar, en su propia fila */
.ear-controls {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

.tuner-box.is-ear .ear-controls {
    display: flex;
}

.strings.is-done .ear-controls {
    opacity: 0.35;
    pointer-events: none;
}

.tuner-box.is-ear .tuner-box__display {
    grid-template-areas: "note meter cents" "help help help" "peg peg peg" "ear ear ear";
}

/* En pantallas estrechas el mensaje puede ocupar una o dos líneas: su fila reserva
   siempre el alto de dos para que las cuerdas no se muevan al cambiar el texto */
@media (max-width: 899px) {
    .tuner-box__display {
        grid-template-rows: auto minmax(64px, auto) auto;
    }

    .tuner-box.is-ear .tuner-box__display {
        grid-template-rows: auto minmax(64px, auto) auto auto;
    }
}

@media (min-width: 900px) {
    .tuner-box__display {
        grid-template-columns: auto auto auto 1fr;
        grid-template-areas: "note meter cents peg" "help help help peg";
        column-gap: 20px;
    }

    .tuner-box.is-ear .tuner-box__display {
        grid-template-areas: "note meter cents peg" "help help help peg" "ear ear ear peg";
    }

    .tuner-box__display .peg {
        justify-self: start;
    }
}

/* Antes de jugar se ve la portada; durante la partida, el afinador */
/* Al jugar, la portada desaparece del todo y la banda toma la altura del afinador */
.strings.is-playing .tuner-intro,
.strings.is-done .tuner-intro {
    display: none;
}

.strings.is-playing .tuner-box__display,
.strings.is-done .tuner-box__display {
    visibility: visible;
}

/* El contador y el cronómetro solo cuentan durante la partida */
.strings__progress {
    visibility: hidden;
}

.strings.is-playing .strings__progress,
.strings.is-done .strings__progress {
    visibility: visible;
}

/* Destello al afinar una cuerda */
.tuner-box.is-flash .tuner-box__note,
.tuner-box.is-flash .tuner-box__help {
    animation: tuned-flash 520ms var(--ease-out);
}

@keyframes tuned-flash {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.18);
        color: #3ddc84;
    }

    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tuner-box.is-flash .tuner-box__note,
    .tuner-box.is-flash .tuner-box__help {
        animation: none;
    }
}

.tuner-box__note {
    min-width: 2.4em;
    font-size: var(--fs-lead);
    font-weight: 900;
    line-height: 1;
}

/* Escala con el nombre internacional y la frecuencia exacta bajo la marca central */
.tuner-box__meter {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.tuner-box__target {
    color: #e4e4e7;
    font-size: var(--fs-body);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tuner-box.is-tuned .tuner-box__target {
    color: #3ddc84;
}

.tuner-box__scale {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: clamp(150px, 28vw, 340px);
    height: 28px;
}

.tuner-box__scale i {
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 1px;
}

.tuner-box__scale .tuner-box__zero {
    height: 22px;
    background: rgba(255, 255, 255, 0.7);
}

.tuner-box__needle {
    position: absolute;
    top: 0;
    left: calc(50% - 2px);
    width: 4px;
    height: 28px;
    background: var(--red-hi);
    border-radius: 2px;
    transform: translateX(var(--offset, 0px));
}

.tuner-box__cents {
    min-width: 7.5em;
    color: #ff9ea2;
    font-size: var(--fs-small);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tuner-box.is-tuned .tuner-box__needle {
    background: #3ddc84;
}

.tuner-box.is-tuned .tuner-box__cents {
    color: #3ddc84;
}

.tuner-box.is-tuned:not(.is-ear) .tuner-box__zero {
    background: #3ddc84;
}

@media (max-width: 479px) {
    .tuner-box__display {
        gap: 10px;
    }

    .tuner-box__scale {
        width: 116px;
    }

    .tuner-box__cents {
        min-width: 6.5em;
    }
}

/* La clavija: se gira en círculo, con las flechas Aflojar ◀ y Tensar ▶ a los lados.
   Solo aparece cuando hay una cuerda elegida y sin afinar. */
/* Sin cuerda elegida (o ya afinada) la clavija se ve en gris y no responde:
   así no queda un hueco y nada se mueve al elegir una cuerda */
.peg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.2s;
}

.strings.is-playing .tuner-box.has-string:not(.is-tuned) .peg {
    opacity: 1;
    pointer-events: auto;
}

.peg__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 999px;
    color: var(--text);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.2s, transform 120ms var(--ease-out);
}

.peg__btn .icon {
    width: 14px;
    height: 14px;
}

.peg__btn:active {
    transform: scale(0.94);
    background: var(--red);
}

@media (hover: hover) and (pointer: fine) {
    .peg__btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* La rueda: la clavija y, detrás, la guía animada */
.peg__wheel {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
}

/* Guía de tutorial: una flecha circular grande que gira alrededor de la clavija
   en el sentido que toca, hasta que el jugador la mueve por primera vez */
.peg__guide {
    position: absolute;
    inset: 0;
    display: none;
    color: var(--red-hi);
    pointer-events: none;
}

.peg__guide .icon {
    width: 100%;
    height: 100%;
}

.tuner-box.show-guide .peg__guide {
    display: block;
    animation: guide-cw 1.6s linear infinite;
}

.tuner-box.show-guide[data-turn="ccw"] .peg__guide {
    animation-name: guide-ccw;
}

@keyframes guide-cw {
    to {
        transform: rotate(360deg);
    }
}

@keyframes guide-ccw {
    to {
        transform: rotate(-360deg);
    }
}

/* Cabeza de la clavija: gira con los cents (--turn), siguiendo al dedo */
.peg__knob {
    position: relative;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 35% 30%, #f3f1ec, #b9b2a3 70%);
    border-radius: 50%;
    cursor: grab;
    touch-action: none;
    transform: rotate(var(--turn, 0deg));
    transition: transform 60ms linear;
}

.peg__knob:active {
    cursor: grabbing;
}

/* Tope de la clavija: la rueda da un pequeño golpe y el aro se pone rojo */
.tuner-box.is-bump .peg__wheel {
    animation: peg-bump 0.3s var(--ease-out);
}

.tuner-box.is-bump .peg__knob {
    box-shadow: 0 0 0 3px var(--red-hi);
}

@keyframes peg-bump {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .tuner-box.is-bump .peg__wheel {
        animation: none;
    }
}

/* La ranura de la clavija, para que se vea el giro */
.peg__knob i {
    width: 6px;
    height: 40px;
    background: #57534b;
    border-radius: 3px;
}

/* El indicador del juego: una pastilla de color con icono que cambia según la aguja */
.tuner-box__help {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    padding: 8px 16px 8px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #fff;
    font-size: var(--fs-body);
    font-weight: 800;
    line-height: 1.2;
}

.tuner-box__help .icon {
    flex: none;
    width: 32px;
    height: 32px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.tuner-box__help[data-state="cw"],
.tuner-box__help[data-state="ccw"] {
    background: rgba(177, 32, 40, 0.35);
}

.tuner-box__help[data-state^="near"] {
    background: rgba(245, 185, 66, 0.2);
    color: #ffd27a;
}

.tuner-box__help[data-state="hold"] {
    background: rgba(245, 185, 66, 0.3);
    color: #ffd27a;
}

.tuner-box__help[data-state="ok"] {
    background: rgba(61, 220, 132, 0.2);
    color: #3ddc84;
}

/* El icono se mueve en el sentido en que hay que girar */
.tuner-box__help[data-state="cw"] .icon,
.tuner-box__help[data-state="near-cw"] .icon {
    animation: nudge-cw 1.2s var(--ease-out) infinite;
}

.tuner-box__help[data-state="ccw"] .icon,
.tuner-box__help[data-state="near-ccw"] .icon {
    animation: nudge-ccw 1.2s var(--ease-out) infinite;
}

.tuner-box__help[data-state="hold"] .icon {
    animation: hold-beat 0.6s var(--ease-out) infinite alternate;
}

@keyframes nudge-cw {
    0% { transform: rotate(0deg); }
    60%, 100% { transform: rotate(360deg); }
}

@keyframes nudge-ccw {
    0% { transform: rotate(0deg); }
    60%, 100% { transform: rotate(-360deg); }
}

@keyframes hold-beat {
    to {
        transform: scale(1.15);
    }
}

/* Sin cuerda elegida, la aguja espera en gris */
.tuner-box:not(.has-string) .tuner-box__needle {
    background: rgba(255, 255, 255, 0.35);
}

/* Cerca del centro: la aguja se pone ámbar mientras aguantas para fijarla */
.tuner-box.is-near:not(.is-tuned) .tuner-box__needle {
    background: #f5b942;
}

.tuner-box.is-near:not(.is-tuned) .tuner-box__cents {
    color: #f5b942;
}

/* Nivel 2: a ciegas, la aguja no se ve y la escala se apaga; solo se oye */
.tuner-box.is-blind .tuner-box__needle {
    opacity: 0;
}

.tuner-box.is-blind .tuner-box__scale {
    opacity: 0.4;
}

.tuner-box.is-blind .tuner-box__cents {
    color: #a1a1aa;
}

.tuner-box__help[data-state="ear"] {
    background: rgba(255, 255, 255, 0.12);
}

.tuner-box__help[data-state="far"] {
    background: rgba(177, 32, 40, 0.35);
    color: #ff9ea2;
}

/* Nivel 2: al comprobar, la aguja toma el color de la calificación */
.tuner-box.is-ear[data-grade] .tuner-box__needle {
    background: var(--grade);
}

.tuner-box.is-ear[data-grade] .tuner-box__cents,
.tuner-box.is-ear[data-grade] .tuner-box__target {
    color: var(--grade);
}

.tuner-box[data-grade="perfect"],
.strings__notes li.grade-perfect { --grade: #3ddc84; }
.tuner-box[data-grade="close"],
.strings__notes li.grade-close { --grade: #a3e635; }
.tuner-box[data-grade="near"],
.strings__notes li.grade-near { --grade: #f5b942; }
.tuner-box[data-grade="far"],
.strings__notes li.grade-far { --grade: #ff6b72; }

/* ---------- LZM Tuner: niveles de acordes (3 y 4) ---------- */
/* El panel del acorde ocupa el sitio del afinador */
.tuner-box > .chord-box {
    grid-area: 1 / 1;
    align-self: end;
}

.chord-box {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "help" "actions";
    gap: 10px;
    align-items: center;
    justify-items: start;
}

.strings.is-chords .tuner-box__display {
    display: none;
}

.strings.is-chords .chord-box:not(.quiz-box) {
    display: grid;
}

/* Niveles 5 y 6: el mismo panel, con el caso del taller o la ronda de memoria */
.strings.is-quiz .tuner-box__display {
    display: none;
}

.strings.is-quiz .quiz-box {
    display: grid;
}

.tuner-box.is-diag .quiz-actions {
    display: flex;
}

@media (max-width: 899px) {
    .quiz-box .chord-box__help {
        min-height: 88px;
    }
}

/* Memoria: la cuerda que suena se ilumina entera, y su nombre */
.strings__notes li.is-lit {
    background: var(--red);
    color: #fff;
}

.strings__s.is-lit {
    stroke: var(--red-hi);
}

/* Memoria: las cuerdas se separan para poder tocar cada una con el dedo */
.strings.is-memo .strings__field {
    height: 280px;
}

@media (min-width: 900px) {
    .strings.is-memo .strings__field {
        height: clamp(250px, 20vw, 300px);
    }
}

.chord-box__name {
    grid-area: name;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
}

.chord-box__name strong {
    color: #fff;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    line-height: 1;
}

/* El mensaje reserva siempre dos líneas en móvil, para que el mástil no se mueva */
.chord-box__help {
    min-height: 52px;
}

.chord-box__actions {
    grid-area: actions;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tuner-box.is-build .chord-box__actions--build,
.tuner-box.is-guess .chord-box__actions--guess {
    display: flex;
}

.chord-box__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chord-choice {
    min-height: 44px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.chord-choice:disabled {
    cursor: default;
    opacity: 0.45;
}

.chord-choice.is-wrong {
    background: rgba(177, 32, 40, 0.35);
    border-color: var(--red-hi);
}

.chord-choice.is-right {
    background: rgba(61, 220, 132, 0.2);
    border-color: #3ddc84;
    color: #3ddc84;
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .chord-choice:not(:disabled):hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: var(--red-hi);
    }
}

@media (min-width: 900px) {
    .chord-box {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "name help" "name actions";
        column-gap: 28px;
    }

    .chord-box__name {
        flex-direction: column;
        align-items: flex-start;
        min-width: 150px;
    }

    .chord-box__help {
        min-height: 0;
    }
}

/* En los niveles de acordes las cuerdas se separan: cada una tiene unos 45 px para el dedo */
.strings.is-chords .strings__field {
    height: 280px;
}

@media (min-width: 900px) {
    .strings.is-chords .strings__field {
        height: clamp(250px, 20vw, 300px);
    }
}

.strings.is-chords .strings__svg {
    pointer-events: none;
}

/* El mástil: la madera con los trastes va debajo de las cuerdas; las casillas, encima */
.fretboard {
    position: absolute;
    top: calc(5 / 120 * 100%);
    left: calc(max(var(--gutter), env(safe-area-inset-left, 0px)) + 46px);
    width: min(640px, calc(100% - var(--gutter) - 46px - 24px));
    height: calc(108 / 120 * 100%);
    display: none;
    grid-template-columns: 44px repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
}

@media (min-width: 1440px) {
    .fretboard {
        left: calc((100% - var(--wrap)) / 2 + var(--gutter) + 46px);
    }
}

.strings.is-chords .fretboard {
    display: grid;
}

.fretboard--wood i {
    background: #34231a;
    border-right: 3px solid #9d9da3;
}

/* Primera columna: la cejuela, de hueso */
.fretboard--wood i:nth-child(5n + 1) {
    background: none;
    border-right: 6px solid #e8e0cc;
}

/* Marca del traste 3, entre la 4.ª y la 3.ª cuerda */
.fretboard__marker {
    position: absolute;
    top: 50%;
    left: calc(44px + (100% - 44px) * 2.5 / 4);
    width: 12px;
    height: 12px;
    background: #d9cfb8;
    border-radius: 50%;
    opacity: 0.6;
    transform: translate(-50%, -50%);
}

.fretboard--cells {
    z-index: 2;
}

.fretboard--cells.is-locked {
    pointer-events: none;
}

.fret {
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-out);
}

.fret:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

/* El dedo: un punto rojo sobre la cuerda */
.fret::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    background: var(--red);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.18s var(--ease-out), background-color 0.2s var(--ease-out);
}

.fret.is-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Pista: la posición correcta, en círculo punteado */
.fret.is-hint::before,
.fret--nut.is-hint-x::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px dashed #f5b942;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Junto a la cejuela: ○ al aire, ✕ sin tocar */
.fret--nut::after {
    width: 16px;
    height: 16px;
    background: none;
    border: 2px solid #d4d4d8;
    box-shadow: none;
    transform: translate(-50%, -50%) scale(0);
}

.fret--nut.is-o::after {
    transform: translate(-50%, -50%) scale(1);
}

.fret--nut.is-x::after {
    content: "✕";
    width: auto;
    height: auto;
    border: 0;
    color: #ff6b72;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transform: translate(-50%, -50%) scale(1);
}

.fret.is-wrong {
    background: rgba(239, 90, 96, 0.22);
}

.strings__notes li.is-wrong {
    color: #ff6b72;
}

.fretboard--cells.is-right .fret.is-dot::after {
    background: #1f9d5a;
}

.fretboard--cells.is-reveal .fret.is-dot::after {
    background: #c98a1b;
}

@media (hover: hover) and (pointer: fine) {
    .fret:not(.fret--nut):not(.is-dot):hover::after {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.8);
    }

    .fret--nut:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fret::after {
        transition: none;
    }
}

/* ---------- LZM Tuner: resultado ---------- */
.tuner-result {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 18px 20px;
    background: rgba(61, 220, 132, 0.1);
    border-radius: var(--radius);
}

/* En pantallas anchas, el resultado a la izquierda y la tabla de la maquinita a la derecha */
.tuner-result {
    gap: 18px 32px;
}

.tuner-result__main {
    display: grid;
    gap: 8px;
    align-content: start;
}

@media (min-width: 900px) {
    .tuner-result:has(.arcade:not([hidden])) {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    }
}

/* ---------- Tabla global: pantalla de maquinita ---------- */
.arcade {
    --arcade-font: "Press Start 2P", ui-monospace, monospace;
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px 16px 14px;
    background: #050507;
    border: 2px solid #2c2c33;
    border-radius: 12px;
    box-shadow: inset 0 0 24px rgba(61, 220, 132, 0.06);
}

.arcade[hidden] {
    display: none;
}

.arcade__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    color: #c9c9cf;
    font-size: var(--fs-small);
    font-weight: 800;
}

.arcade__top {
    color: #f5b942;
    font-family: var(--arcade-font);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

.arcade__list {
    display: grid;
    gap: 7px;
    font-family: var(--arcade-font);
    font-size: 12px;
    line-height: 1.3;
}

.arcade__list li {
    display: grid;
    grid-template-columns: 2.6em 4.2em minmax(0, 1fr);
    align-items: center;
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
}

.arcade__list li span:first-child {
    color: #8a8a94;
}

.arcade__list li span:last-child {
    color: #3ddc84;
    text-align: right;
}

.arcade__list li.is-empty {
    color: #4a4a52;
}

/* Tu fila recién guardada, como en la máquina: resaltada y parpadeando un momento */
.arcade__list li.is-you {
    background: rgba(177, 32, 40, 0.45);
    animation: arcade-blink 0.5s steps(2, jump-none) 6;
}

@keyframes arcade-blink {
    50% {
        background: rgba(177, 32, 40, 0.1);
    }
}

.arcade__entry {
    display: grid;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #2c2c33;
}

.arcade__entry[hidden] {
    display: none;
}

.arcade__ask {
    color: #f5b942;
    font-size: var(--fs-small);
    font-weight: 800;
}

.arcade__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.arcade__input {
    width: 6.4em;
    min-height: 48px;
    padding: 8px 4px 8px 12px;
    background: #0c0c0e;
    border: 2px solid #f5b942;
    border-radius: 8px;
    color: #fff;
    font-family: var(--arcade-font);
    font-size: 20px;
    letter-spacing: 0.45em;
    text-align: center;
    text-transform: uppercase;
}

.arcade__input:focus-visible {
    outline: 3px solid rgba(245, 185, 66, 0.45);
    outline-offset: 2px;
}

.arcade__msg {
    color: #c9c9cf;
    font-size: var(--fs-small);
    font-weight: 700;
}

.arcade__msg:empty {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .arcade__list li.is-you {
        animation: none;
    }
}

/* El primero de cada nivel, en la tarjeta de la portada */
.tuner-level__text em.tuner-level__top {
    white-space: pre;
    color: #8fe3b4;
    font-family: "Press Start 2P", ui-monospace, monospace;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.6;
}

.tuner-result__title {
    color: #3ddc84;
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1.1;
}

.tuner-result__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    color: #dcdce0;
    font-size: var(--fs-lead);
}

.tuner-result__stats > span {
    white-space: nowrap;
}

.tuner-result__stats strong {
    color: #fff;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.tuner-result__stars {
    display: inline-flex;
    gap: 4px;
    color: #f5b942;
}

.tuner-result__stars .icon {
    width: 24px;
    height: 24px;
}

.tuner-result__stars .is-off {
    color: rgba(255, 255, 255, 0.2);
}

.tuner-result__record {
    color: #f5b942;
    font-size: var(--fs-small);
    font-weight: 800;
}

.tuner-result__note {
    color: #c9c9cf;
}

.tuner-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

/* Mini juego: punto verde junto a cada cuerda ya afinada y mensaje final */
.strings__notes li.is-tuned::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    background: var(--grade, #3ddc84);
    border-radius: 50%;
    vertical-align: middle;
}

.strings__done {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 14px;
}

.strings__done[hidden] {
    display: none;
}



.js .strings__done:not([hidden]) {
    animation: rise 0.6s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
    .js .strings__done:not([hidden]) {
        animation: none;
    }
}

/* El campo de las cuerdas ocupa todo el ancho, de borde a borde */
.strings__field {
    position: relative;
    height: clamp(120px, 11vw, 176px);
    margin-top: 10px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    /* El dedo rasguea las cuerdas en vez de desplazar la página dentro de esta banda */
    touch-action: none;
}

.strings__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.strings__s {
    fill: none;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* Cuerdas entorchadas (Mi, La, Re) en tono níquel; lisas (Sol, Si, Mi) más claras */
.strings__s--wound {
    stroke: #bdb6a8;
}

.strings__s--plain {
    stroke: #e9e7e2;
}

.strings__s:nth-child(1) { stroke-width: 3.4px; }
.strings__s:nth-child(2) { stroke-width: 2.8px; }
.strings__s:nth-child(3) { stroke-width: 2.3px; }
.strings__s:nth-child(4) { stroke-width: 1.8px; }
.strings__s:nth-child(5) { stroke-width: 1.4px; }
.strings__s:nth-child(6) { stroke-width: 1.1px; }

/* Nombre de cada nota junto a su cuerda, como en el clavijero */
.strings__notes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.strings__notes li {
    position: absolute;
    left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding: 0 8px;
    background: var(--bg);
    border-radius: 4px;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

.strings__notes li:nth-child(1) { top: calc(14 / 120 * 100%); }
.strings__notes li:nth-child(2) { top: calc(32 / 120 * 100%); }
.strings__notes li:nth-child(3) { top: calc(50 / 120 * 100%); }
.strings__notes li:nth-child(4) { top: calc(68 / 120 * 100%); }
.strings__notes li:nth-child(5) { top: calc(86 / 120 * 100%); }
.strings__notes li:nth-child(6) { top: calc(104 / 120 * 100%); }

@media (min-width: 1440px) {
    .strings__notes li {
        left: calc((100% - var(--wrap)) / 2 + var(--gutter));
    }
}

/* ---------- Cifras y reparto de instrumentos ---------- */
.stats {
    margin-top: clamp(40px, 7vw, 72px);
    padding: clamp(22px, 3.5vw, 36px);
    background: rgba(18, 18, 21, 0.92);
    border-radius: var(--radius);
}

.stats__nums {
    display: grid;
    gap: 22px;
}

.stats__nums li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats__nums strong {
    font-size: var(--fs-figure);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stats__nums li:first-child strong {
    color: var(--red-hi);
}

.stats__nums li > span {
    color: #c9c9cf;
    font-weight: 600;
    line-height: 1.35;
}

.split {
    margin-top: 28px;
    padding-top: 24px;
}

.split__title {
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.split__bar {
    display: flex;
    gap: 4px;
    height: 16px;
    margin-top: 14px;
}

.split__seg {
    flex: 0 0 calc(var(--w) * 1% - 3px);
    border-radius: 999px;
}

.split__seg--a {
    background: var(--red);
}

.split__seg--b {
    background: var(--paper);
}

.split__seg--c {
    background: #6b6b75;
}

/* La barra se llena al aparecer (solo con JS) */
.js .split__seg {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out);
}

.js .stats.is-live .split__seg {
    transform: none;
}

.js .stats.is-live .split__seg--b {
    transition-delay: 0.25s;
}

.js .stats.is-live .split__seg--c {
    transition-delay: 0.45s;
}

.split__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 14px;
    color: #c9c9cf;
    font-size: var(--fs-small);
}

.split__legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.split__legend strong {
    color: var(--text);
    font-weight: 800;
    white-space: nowrap;
}

.split__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

@media (min-width: 760px) {
    /* Una columna por cifra, haya dos o tres */
    .stats__nums {
        grid-auto-columns: 1fr;
        grid-auto-flow: column;
        gap: 32px;
    }
}

/* ---------- Artistas ---------- */
.artists {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.artists li {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.artists img,
.artists__placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
}

.artists img {
    object-fit: cover;
}

.artists__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1d1d21;
    color: #8a8a94;
    font-size: var(--fs-small);
    font-weight: 600;
}

.artists__placeholder .icon {
    width: 44px;
    height: 44px;
}

/* El texto va debajo de la foto, no encima: un nombre o una banda larga
   alarga la tarjeta en vez de cortarse o tapar la foto */
.artists li {
    display: flex;
    flex-direction: column;
}

.artists__caption {
    padding: 14px 14px 16px;
}

.artists__country {
    display: inline-block;
    padding: 2px 10px;
    background: var(--red);
    border-radius: 999px;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.artists h3 {
    margin-top: 8px;
    font-size: var(--fs-lead);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.artists__band {
    color: #dcdce0;
    font-size: var(--fs-small);
    font-weight: 600;
    margin-top: 2px;
}

.artists__work {
    margin-top: 4px;
    color: #ff8d92;
    font-size: var(--fs-small);
    line-height: 1.35;
}

@media (min-width: 760px) {
    .artists {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .artists__caption {
        padding: 18px 22px 22px;
    }
}

/* ---------- Marcas de datos de ejemplo ---------- */
.demo-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f5b942;
    border-radius: 4px;
    color: #111;
    font-size: var(--fs-small);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
    vertical-align: middle;
}

.demo-banner {
    position: fixed;
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 95;
    max-width: calc(100% - 104px);
    padding: 8px 14px;
    background: #f5b942;
    border-radius: var(--radius-sm);
    color: #111;
    font-size: var(--fs-small);
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- Cinta de servicios ---------- */
.ticker-wrap {
    position: relative;
}

.ticker.is-paused .ticker__track {
    animation-play-state: paused;
}

.ticker__toggle {
    position: absolute;
    top: 50%;
    right: max(var(--gutter), env(safe-area-inset-right, 0px));
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    background: #6d1218;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, transform 160ms var(--ease-out);
}

.ticker__toggle:active {
    transform: scale(0.94);
}

.ticker__toggle .icon {
    width: 18px;
    height: 18px;
}

.ticker__toggle .icon--play,
.ticker__toggle[aria-pressed="true"] .icon--pause {
    display: none;
}

.ticker__toggle[aria-pressed="true"] .icon--play {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .ticker__toggle:hover {
        background: #17171a;
    }
}

.ticker {
    overflow: hidden;
    padding-block: 18px;
    background: var(--red);
}

/* Cinta ligeramente inclinada; el recorte evita que asome scroll horizontal */
@supports (overflow: clip) {
    main {
        overflow-x: clip;
    }

    .ticker {
        margin-block: 8px -8px;
        transform: rotate(-1deg) scale(1.02);
    }
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker 38s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
    .ticker:hover .ticker__track {
        animation-play-state: paused;
    }
}

.ticker ul {
    display: flex;
    flex: none;
}

.ticker li {
    display: flex;
    align-items: center;
    padding-inline: 18px;
    font-size: var(--fs-lead);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker li::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 36px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.7;
}

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Secciones ---------- */
.section {
    padding-block: var(--section);
}

/* ---------- Marcas: taller multimarca ---------- */
.brands {
    padding-block: clamp(56px, 8vw, 96px);
    background: #1d1d22;
}

/* En pantallas anchas, el texto a la izquierda y la pared de placas a la derecha */
.brands__layout {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 1000px) {
    .brands__layout {
        grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
        align-items: start;
    }

    .brands__intro {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }
}

.brands__kicker {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(177, 32, 40, 0.18);
    border-radius: 999px;
    color: #ff9ea2;
    font-size: var(--fs-small);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brands__title {
    margin-top: 14px;
    font-size: var(--fs-h2);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

/* El dato grande: desde cuándo está el taller */
.brands__since {
    display: grid;
    gap: 2px;
    margin-top: 22px;
    padding-left: 16px;
    border-left: 4px solid var(--red);
}

.brands__since strong {
    color: #fff;
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.brands__since span {
    color: var(--muted);
    font-weight: 700;
}

.brands__text {
    margin-top: 18px;
    color: #c9c9cf;
    font-size: var(--fs-lead);
    line-height: 1.5;
}

.brands__wall {
    display: grid;
    gap: 28px;
}

.brands__group {
    display: grid;
    gap: 12px;
}

.brands__label {
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brands__label span {
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: none;
}

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

/* La placa: fondo oscuro con borde de metal cepillado y un tornillo a cada lado */
.brands__list li {
    position: relative;
    padding: 11px 24px;
    background:
        linear-gradient(180deg, #27272c, #1a1a1e) padding-box,
        linear-gradient(135deg, #8d8d95, #3a3a41 35%, #a8a8b0 55%, #3a3a41 80%, #7a7a82) border-box;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 8px rgba(0, 0, 0, 0.35);
    color: #e8e8ec;
    font-size: clamp(15px, 1.45vw, 18px);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.brands__list li::before,
.brands__list li::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle at 35% 35%, #e0e0e6, #55555c 70%);
    border-radius: 50%;
    transform: translateY(-50%);
}

.brands__list li::before {
    left: 9px;
}

.brands__list li::after {
    right: 9px;
}

@media (max-width: 599px) {
    .brands__list {
        gap: 8px;
    }

    .brands__list li {
        padding: 9px 20px;
        font-size: 14px;
    }

    .brands__list li::before {
        left: 7px;
    }

    .brands__list li::after {
        right: 7px;
    }
}

/* Al llegar a la sección, las placas aparecen una tras otra */
.js .brands__list li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color 0.2s var(--ease-out);
    transition-delay: calc(var(--i) * 24ms + 120ms);
}

.js .reveal.is-visible .brands__list li {
    opacity: 1;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .js .reveal.is-visible .brands__list li:hover {
        color: #fff;
        transform: translateY(-2px);
        transition-delay: 0s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .brands__list li {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* La caja de herramientas: productos agrupados por tipo */
.brands__tools {
    display: grid;
    gap: 14px;
    margin-top: clamp(40px, 5vw, 56px);
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 1px solid var(--line);
}

.brands__kit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 10px;
}

.kit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.kit__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: rgba(177, 32, 40, 0.18);
    border-radius: 50%;
    color: #ff9ea2;
}

.kit__icon .icon {
    width: 19px;
    height: 19px;
}

.kit__text {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.4;
}

.kit__text strong {
    color: #fff;
    font-size: var(--fs-body);
    font-weight: 800;
}

/* Cierre: cualquier otra marca también se atiende */
.brands__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: clamp(24px, 3vw, 32px);
    padding: clamp(18px, 2.5vw, 24px) clamp(18px, 3vw, 28px);
    background: linear-gradient(90deg, rgba(177, 32, 40, 0.22), rgba(177, 32, 40, 0.06));
    border: 1px solid rgba(239, 90, 96, 0.3);
    border-radius: var(--radius);
    color: #e4e4e7;
    font-size: var(--fs-lead);
}

.brands__cta strong {
    color: #fff;
    font-weight: 900;
}

/* Las secciones se alternan entre negro y gris oscuro, con una línea arriba,
   para que al bajar se note dónde empieza cada una */
.section--alt {
    background: #1d1d22;
}

.section,
.brands {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Una rayita roja arriba de cada sección, alineada con el contenido: marca dónde empieza */
.section::before,
.brands::before {
    content: "";
    position: absolute;
    top: -2px;
    left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    width: 72px;
    height: 4px;
    background: var(--red);
    border-radius: 0 0 4px 4px;
}

/* La etiqueta numerada que abre cada sección: "02 · Nosotros" */
.section .section-num,
.brands .section-num,
.section-num {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff9ea2;
    font-size: var(--fs-small);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-num span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 28px;
    padding: 0 9px;
    background: var(--red);
    border-radius: 999px;
    color: #fff;
    letter-spacing: 0.02em;
}

.section__head {
    max-width: 720px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section__head h2,
.h2 {
    margin-top: 14px;
    font-size: var(--fs-h2);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

/* Sin etiqueta encima, el título abre la sección sin margen extra */
.section__head > :first-child,
.about__text > :first-child {
    margin-top: 0;
}

.section__head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: var(--fs-body);
}

.accent {
    color: var(--red-hi);
}

/* ---------- Nosotros ---------- */
.about {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.about__media img {
    width: 100%;
    aspect-ratio: 1000 / 934;
    object-fit: cover;
    border-radius: var(--radius);
}

.about__text p + p {
    margin-top: 16px;
}

/* La firma del fundador, al final de "Nosotros" */
.signature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 26px;
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.signature__name {
    position: relative;
    padding: 0 6px 8px 0;
    color: #fff;
    transform: rotate(-4deg);
}

.signature__svg {
    display: block;
    width: auto;
    height: clamp(54px, 4.6vw, 58px);
    overflow: visible;
}

.signature__fallback {
    font-family: "Snell Roundhand", "Segoe Script", cursive;
    font-size: 48px;
}

/* Un trazo rojo bajo la firma, como el final de la pluma */
.signature__name::after {
    content: "";
    position: absolute;
    left: 8%;
    right: -4%;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red-hi) 30%, var(--red));
    border-radius: 3px;
    transform: rotate(-2deg);
    transform-origin: left center;
}

/* Animación: la firma se descubre de izquierda a derecha y después se traza la línea roja */
.js .signature__wipe {
    transform: translateX(-100%);
    transform-box: fill-box;
}

.js .signature__name::after {
    transform: rotate(-2deg) scaleX(0);
}

.js .signature.is-signed .signature__wipe {
    transform: none;
    transition: transform 1.9s cubic-bezier(0.45, 0.05, 0.3, 1);
}

.js .signature.is-signed .signature__name::after {
    transform: rotate(-2deg) scaleX(1);
    transition: transform 0.6s var(--ease-out) 1.5s;
}

@media (prefers-reduced-motion: reduce) {
    .js .signature__wipe,
    .js .signature.is-signed .signature__wipe {
        transform: none;
        transition: none;
    }

    .js .signature__name::after,
    .js .signature.is-signed .signature__name::after {
        transform: rotate(-2deg);
        transition: none;
    }
}

.signature__text {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: var(--fs-small);
    line-height: 1.35;
}

.signature__text strong {
    color: #fff;
    font-size: var(--fs-body);
    font-weight: 800;
}

.signature__text span:first-of-type {
    color: #ff9ea2;
    font-weight: 700;
}

.about__text .lead {
    margin-top: 20px;
    font-size: var(--fs-lead);
    font-weight: 600;
}

.about__text p:not(.lead) {
    color: #c9c9cf;
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding: 16px 18px;
    background: rgba(177, 32, 40, 0.12);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.note .icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--red-hi);
}

@media (max-width: 719px) {
    .about__media img {
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 720px) {
    .about {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

/* ---------- Planes (Xpress / Premium) ---------- */
.plans {
    display: grid;
    gap: 20px;
}

.plan {
    padding: 28px;
    background: var(--surface-2);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.plan--premium {
    background: #2a1416;
}

.plan__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.plan--premium .plan__badge {
    background: var(--red);
    color: #fff;
}

.plan h3 {
    margin-top: 16px;
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1.1;
}

.plan__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 14px;
    font-size: var(--fs-figure);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.plan__price small {
    color: var(--muted);
    font-size: var(--fs-lead);
    font-weight: 700;
}

.plan__desc {
    margin-top: 14px;
    color: #c9c9cf;
}

.plan__alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(177, 32, 40, 0.16);
    border-radius: var(--radius-sm);
    color: #e4e4e7;
    font-size: var(--fs-body);
    line-height: 1.5;
}

.plan__alert .icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--red-hi);
}

.plan__alert strong {
    display: block;
    color: #fff;
    font-size: var(--fs-body);
    font-weight: 800;
}

.plan__meta {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    font-size: var(--fs-body);
}

.plan__meta li {
    display: flex;
    gap: 10px;
}

.plan__meta .icon {
    margin-top: 4px;
    color: var(--red-hi);
}

.plan__meta strong {
    font-weight: 700;
}

.plan .btn {
    width: 100%;
    margin-top: 24px;
}

.plan__diagram {
    display: grid;
    place-items: center;
    margin-top: 24px;
    padding: 18px;
    background: var(--paper);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.plan__diagram img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

/* Tarjeta en dos columnas (texto | diagrama) cuando hay ancho suficiente */
@media (min-width: 640px) and (max-width: 859px), (min-width: 1100px) {
    .plan {
        display: grid;
        grid-template-columns: 1fr minmax(190px, 0.8fr);
        column-gap: 28px;
        align-content: start;
    }

    .plan > * {
        grid-column: 1;
    }

    .plan__badge {
        justify-self: start;
    }

    .plan__diagram {
        grid-column: 2;
        grid-row: 1 / span 6;
        align-self: start;
        aspect-ratio: 4 / 5;
        margin-top: 0;
    }

    .plan__diagram img {
        max-height: 340px;
    }
}

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

/* ---------- Tarjetas de precio como órdenes de trabajo ---------- */
/* Un formulario del taller en el tono oscuro de la página: encabezado con número,
   campos en renglones, revisión del instrumento, total destacado y talón perforado.
   Premium se distingue con un granate muy oscuro. */
.plan,
.plan--premium {
    position: relative;
    background: var(--surface-2);
    color: var(--text);
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
}

/* Premium lleva un borde rojo fino que sigue también las esquinas cortadas:
   el fondo de la tarjeta es rojo y el relleno granate va 2 px hacia dentro */
.plan--premium {
    isolation: isolate;
    background: var(--red);
}

.plan--premium::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: #251619;
    clip-path: polygon(21px 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 0 100%, 0 21px);
}

.plan--premium.order {
    padding-bottom: 2px;
}

.plan--premium .order__total,
.plan--premium .order__stub {
    margin-inline: -24px;
}

.order {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "service" "fields" "diagram" "total" "stub";
    align-content: start;
    padding: 50px 26px 0;
}

.order .order__head { grid-area: head; }
.order .order__service { grid-area: service; }
.order .order__fields { grid-area: fields; }
.order .plan__diagram { grid-area: diagram; }
.order .order__total { grid-area: total; }
.order .order__stub { grid-area: stub; }

.plan__hole {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    background: var(--bg);
    border: 5px solid #3a3a40;
    border-radius: 50%;
}

.order__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.28);
}

.order__doc {
    font-size: var(--fs-lead);
    font-weight: 900;
    line-height: 1.1;
}

.order__doc span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 600;
}

.order__number {
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* El hueco donde el taller escribe el número de la orden */
.order__blank {
    display: inline-block;
    min-width: 96px;
    padding-bottom: 2px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--muted);
    text-align: left;
}

.order__service {
    margin-top: 16px;
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1.1;
}

.order__fields {
    margin-top: 10px;
}

.order__fields div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.order__fields dt {
    padding-top: 2px;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
}

.order__fields dd {
    font-weight: 600;
    line-height: 1.4;
}

.order .plan__diagram {
    position: relative;
    grid-row: auto;
    grid-column: auto;
    display: block;
    aspect-ratio: auto;
    margin-top: 18px;
    padding: 14px 14px 10px;
    background: var(--paper);
    border-radius: 6px;
}

.order .plan__diagram img {
    max-height: 240px;
}

.order .plan__diagram figcaption {
    margin-top: 8px;
    color: #57534b;
    font-size: var(--fs-small);
    font-weight: 600;
    text-align: center;
}

/* El total va en su propia franja para que el precio sea lo primero que se lee */
.order__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 18px -26px 0;
    padding: 16px 26px 18px;
    background: rgba(255, 255, 255, 0.07);
}

.plan--premium .order__total {
    background: rgba(177, 32, 40, 0.3);
}

.order__total span {
    font-size: var(--fs-lead);
    font-weight: 800;
}

.order__total strong {
    color: #fff;
    font-size: var(--fs-figure);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.order__total small {
    margin-right: 4px;
    color: #c9c9cf;
    font-size: var(--fs-lead);
}

/* Talón de reserva: se separa por la línea perforada, con muescas a los lados */
.order__stub {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0 -26px;
    padding: 18px 26px 24px;
    background: #151518;
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
}

.plan--premium .order__stub {
    background: #1c1013;
}

.order__stub::before,
.order__stub::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 22px;
    height: 22px;
    background: var(--bg);
    border-radius: 50%;
}

.order__stub::before {
    left: -11px;
}

.order__stub::after {
    right: -11px;
}

.order__stub p {
    color: #d4d4d8;
    font-weight: 800;
}

.order .order__stub .btn {
    flex: 1 1 200px;
    width: auto;
    margin-top: 0;
}

/* Los sellos: tinta algo transparente, con doble borde como los de goma */
.plan__stamp {
    position: absolute;
    top: 14px;
    right: 12px;
    z-index: 1;
    padding: 6px 12px;
    border: 3px solid currentColor;
    border-radius: 6px;
    outline: 1.5px solid currentColor;
    outline-offset: 3px;
    color: rgba(177, 32, 40, 0.88);
    font-size: var(--fs-lead);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    transform: rotate(-12deg);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.plan__stamp--ink {
    padding: 6px 10px;
    color: rgba(23, 23, 26, 0.8);
    font-size: var(--fs-body);
    line-height: 1.05;
    text-align: center;
    transform: rotate(-9deg);
}

/* El sello Premium cae una sola vez, cuando la tarjeta entra en pantalla */
.js .plan--premium .plan__stamp {
    opacity: 0;
}

.js .plan--premium.is-visible .plan__stamp {
    animation: stamp 460ms var(--ease-out) 380ms both;
}

@keyframes stamp {
    0% {
        opacity: 0;
        transform: rotate(-12deg) scale(1.9);
    }

    55% {
        opacity: 1;
        transform: rotate(-12deg) scale(0.93);
    }

    100% {
        opacity: 1;
        transform: rotate(-12deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .plan--premium .plan__stamp,
    .js .plan--premium.is-visible .plan__stamp {
        opacity: 1;
        animation: none;
    }
}

/* ---------- Tabla comparativa ---------- */
.compare-head {
    margin: clamp(40px, 6vw, 72px) 0 20px;
}

.compare-head h3 {
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1.15;
}

.compare-head p {
    max-width: 68ch;
    margin-top: 8px;
    color: #c9c9cf;
}

.compare-head p strong {
    color: var(--text);
}

.compare-head .compare-stat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin-top: 16px;
    padding: 12px 18px;
    background: rgba(177, 32, 40, 0.16);
    border-radius: var(--radius-sm);
    color: #e4e4e7;
    font-size: var(--fs-body);
}

.compare-stat .icon {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    color: var(--red-hi);
}

.compare-stat strong {
    color: #fff;
    font-weight: 800;
}

.compare-toggle {
    display: none;
    margin-top: 16px;
}

/* En móvil la tabla muestra solo los nombres; el botón despliega las descripciones */
@media (max-width: 639px) {
    .js .compare-toggle {
        display: inline-flex;
    }

    .js .compare:not(.is-detailed) tbody th span {
        display: none;
    }

    .compare tbody th strong {
        font-size: var(--fs-body);
    }
}

/* El texto del botón cambia según la pantalla */
.only-mob {
    display: none;
}

@media (max-width: 899px) {
    .only-desk {
        display: none;
    }

    .only-mob {
        display: inline;
    }

    /* En el teléfono la tabla de comparación se pliega: se abre con el botón */
    .js .compare-wrap:not(.is-open) {
        display: none;
    }
}

.compare-wrap {
    border-radius: var(--radius);
    overflow: clip;
    background: var(--surface-2);
}

.compare {
    width: 100%;
    border-collapse: collapse;
}

.compare th,
.compare td {
    padding: 16px 12px;
    text-align: center;
    vertical-align: middle;
}

.compare thead th {
    position: sticky;
    top: var(--header-h);
    z-index: 2;
    padding-block: 14px;
    background: #232327;
    border-bottom: 1px solid var(--line-strong);
    font-size: var(--fs-body);
    font-weight: 800;
    line-height: 1.2;
}

.compare thead th small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.compare thead th:first-child,
.compare tbody th {
    padding-left: 20px;
    text-align: left;
}

.compare thead th:first-child {
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
}

.compare tbody tr + tr > * {
    border-top: 1px solid var(--line);
}

.compare tbody tr {
    transition: background-color 0.2s;
}

.compare tbody th {
    font-weight: 400;
}

.compare tbody th strong {
    display: block;
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.3;
}

.compare tbody th span {
    display: block;
    max-width: 62ch;
    margin-top: 4px;
    color: var(--muted);
    font-size: var(--fs-small);
    line-height: 1.5;
}

.compare .col-plan {
    width: 96px;
}

/* En los teléfonos más estrechos, menos margen interior y palabras partidas con guion
   ("Instru-mentos") para que la tabla no se salga */
@media (max-width: 380px) {
    .compare td,
    .compare th {
        hyphens: auto;
    }

    .compare th,
    .compare td {
        padding: 12px 6px;
    }

    .compare thead th:first-child,
    .compare tbody th,
    .compare tfoot td:first-child {
        padding-left: 12px;
    }

    .compare .col-plan {
        width: 84px;
    }
}

.compare .compare__for td {
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.35;
}

.compare .compare__group th {
    padding-block: 12px;
    background: var(--red);
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 800;
    letter-spacing: 0;
    text-align: left;
}

.compare .compare__group--basico th {
    background: #3a1a1d;
}

.compare .basic {
    display: block;
    color: #d4d4d8;
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.3;
}

.compare .basic em {
    display: block;
    width: fit-content;
    margin: 0 auto 4px;
    padding: 1px 8px;
    border-radius: 999px;
    color: var(--muted);
    font-size: var(--fs-small);
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.1);
}

.compare .compare__group .icon {
    display: inline-block;
    margin-right: 8px;
    vertical-align: -0.2em;
}

.compare tr.is-exclusive th strong {
    color: #ff8d92;
}

.compare tr.is-exclusive {
    background: rgba(177, 32, 40, 0.07);
}

.compare .is-premium {
    background: rgba(177, 32, 40, 0.1);
}

.compare thead .is-premium {
    background: #3a1a1d;
    color: #fff;
}

.compare .yes,
.compare .no {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.compare .yes {
    background: var(--red);
    color: #fff;
}

.compare .no {
    color: #5c5c66;
}

.compare .yes .icon,
.compare .no .icon {
    width: 16px;
    height: 16px;
}

.compare tfoot td {
    padding-block: 18px;
    border-top: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 600;
}

.compare tfoot td:first-child {
    padding-left: 20px;
    text-align: left;
}

.compare tfoot strong {
    display: block;
    color: var(--text);
    font-size: var(--fs-body);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 760px) {
    .compare .col-plan {
        width: 150px;
    }

    .compare th,
    .compare td {
        padding: 18px 20px;
    }

    .compare thead th:first-child,
    .compare tbody th,
    .compare tfoot td:first-child {
        padding-left: 28px;
    }
}

.pay-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 20px;
    padding: 18px 24px;
    background: var(--surface-2);
    border-radius: var(--radius);
}

.pay-strip p {
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.pay-strip ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.pay-strip li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    font-size: var(--fs-small);
    font-weight: 600;
    white-space: nowrap;
}

.pay-strip .icon {
    color: var(--red-hi);
}

.vip-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 20px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.vip-strip p {
    color: #c9c9cf;
}

.vip-strip strong {
    display: block;
    color: var(--text);
    font-size: var(--fs-body);
    font-weight: 800;
}

.vip-strip em {
    margin-left: 8px;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #ff9ea2;
    font-size: var(--fs-small);
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: middle;
}

/* ---------- Cómo funciona ---------- */

/* ---------- Cómo funciona: un recorrido de tres paradas ---------- */
.route {
    position: relative;
    display: grid;
    gap: 40px;
    padding-left: 40px;
}

/* La línea del recorrido: gruesa, como una cuerda */
.route::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

.route__step {
    position: relative;
}

.route__step::before {
    content: "";
    position: absolute;
    top: 2px;
    left: -40px;
    width: 22px;
    height: 22px;
    background: var(--red);
    border: 5px solid var(--surface);
    border-radius: 50%;
}

.route__step h3 {
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.15;
}

.route__step ul {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.route__step li {
    position: relative;
    padding-left: 18px;
    color: #dcdce0;
}

.route__step li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--red-hi);
    border-radius: 50%;
}

.route__note {
    font-size: var(--fs-small);
    margin-top: 16px;
    color: var(--muted);
}

@media (min-width: 900px) {
    .route {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
        padding-top: 48px;
        padding-left: 0;
    }

    .route::before {
        top: 9px;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 4px;
    }

    .route__step::before {
        top: -48px;
        left: 0;
    }
}

/* ---------- Nueva plataforma ---------- */
.platform {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 28px;
    margin-top: clamp(28px, 4vw, 44px);
    padding: clamp(24px, 4vw, 44px);
    overflow: hidden;
    background: #23151a;
    border-radius: calc(var(--radius) + 4px);
}

.platform__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--red);
    border-radius: 999px;
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.platform h3 {
    margin-top: 16px;
    font-size: var(--fs-h2);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.platform__intro > p:not(.platform__tag) {
    margin-top: 12px;
    color: #dcdce0;
    font-size: var(--fs-body);
}

.platform__intro .btn {
    margin-top: 24px;
}

.platform__list {
    display: grid;
    gap: 22px;
    align-content: center;
}

.platform__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.platform__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: rgba(177, 32, 40, 0.25);
    border-radius: 12px;
    color: var(--red-hi);
}

.platform__icon .icon {
    width: 22px;
    height: 22px;
}

.platform__list strong {
    display: block;
    font-size: var(--fs-body);
    font-weight: 800;
    line-height: 1.3;
}

.platform__list span:not(.platform__icon) {
    color: var(--muted);
    font-size: var(--fs-small);
    line-height: 1.45;
}

@media (min-width: 860px) {
    .platform {
        grid-template-columns: 1fr 1.1fr;
        gap: 44px;
        align-items: center;
    }
}

.cta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(28px, 4vw, 44px);
    padding: 24px 28px;
    background: var(--bg);
    border-radius: var(--radius);
}

.cta-inline p {
    font-size: var(--fs-body);
    font-weight: 700;
}

.cta-inline p span {
    display: block;
    color: var(--muted);
    font-size: var(--fs-body);
    font-weight: 400;
}

/* ---------- Horario y delivery ---------- */

.directions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
}

.price-row strong {
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.price-row span {
    color: #d4d4d8;
    font-size: var(--fs-body);
    line-height: 1.45;
}

.fineprint {
    margin-top: 16px;
    color: var(--muted);
    font-size: var(--fs-small);
}

/* ---------- Más servicios ---------- */

/* ---------- Horario, ubicación y delivery ---------- */
.visit {
    display: grid;
    gap: 48px;
}

.visit h3 {
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.15;
}

.hours-big {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.hours-big div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 20px;
}

.hours-big dt {
    color: var(--muted);
    font-weight: 600;
}

.hours-big dd {
    font-size: var(--fs-h2);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.visit__hours > p {
    max-width: 52ch;
    margin-top: 20px;
    color: #c9c9cf;
}

.visit__place address {
    font-size: var(--fs-lead);
    margin-top: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
}

.visit__place > p {
    margin-top: 10px;
    color: var(--muted);
}

.delivery {
    display: grid;
    gap: 24px;
    padding: clamp(24px, 4vw, 40px);
    background: var(--surface);
    border-radius: var(--radius);
}

.delivery__text > p {
    margin-top: 14px;
    color: #c9c9cf;
}

.delivery__text .delivery__options {
    color: var(--text);
    font-weight: 700;
}

.delivery .price-row {
    margin-top: 0;
}

@media (min-width: 900px) {
    .visit {
        grid-template-columns: 1.15fr 1fr;
        gap: 56px 72px;
    }

    .delivery {
        grid-column: 1 / -1;
        grid-template-columns: 1.2fr 1fr;
        gap: 40px;
        align-items: center;
    }
}

/* En el teléfono, cada horario en dos líneas: el día arriba y la hora debajo */
@media (max-width: 599px) {
    .hours-big div {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Más servicios: fotos de trabajos reales, grandes ---------- */
/* Escritorio: tres columnas; tablet: dos; teléfono: carrusel que se desliza de lado
   con fotos casi a todo el ancho. Cada tarjeta abre WhatsApp para cotizar. */
.services {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}

.services::-webkit-scrollbar {
    display: none;
}

/* Aviso del carrusel, solo en el teléfono */
.services__swipe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -12px 0 12px;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
}

.services__swipe .icon {
    color: var(--red-hi);
}

@media (min-width: 600px) {
    .services__swipe {
        display: none;
    }
}

.services > li {
    scroll-snap-align: start;
}

.services__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
    color: #fff;
    text-decoration: none;
    transition: transform 160ms var(--ease-out);
}

.services__item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

/* Oscurecido bajo el texto para que se lea sobre la foto */
.services__text {
    position: absolute;
    inset: auto 0 0 0;
    display: block;
    padding: 64px 18px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0));
}

.services__name {
    display: block;
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1.1;
    hyphens: auto;
}

.services__detail {
    display: block;
    margin-top: 4px;
    color: #ff9ea2;
    font-size: var(--fs-small);
    font-weight: 700;
}

/* "Cotizar" como pastilla sobre la foto */
.services__cta {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    background: rgba(12, 12, 14, 0.75);
    border-radius: 999px;
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 800;
}

.services__cta .icon {
    color: var(--red-hi);
    transition: transform 160ms var(--ease-out);
}

.services__item:active {
    transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
    .services__item:hover img {
        transform: scale(1.05);
    }

    .services__item:hover .services__cta {
        background: var(--red);
    }

    .services__item:hover .services__cta .icon {
        color: #fff;
        transform: translateX(3px);
    }
}

@media (min-width: 600px) {
    .services {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-inline: 0;
        padding: 0;
        overflow: visible;
    }
}

@media (min-width: 1000px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ---------- Academy (próximamente) ---------- */
.academy {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 18px;
    align-items: center;
    margin-top: clamp(28px, 4vw, 44px);
    padding: clamp(22px, 3.5vw, 32px);
    overflow: hidden;
    background: #23151a;
    border-radius: var(--radius);
}

/* Seis cuerdas de fondo, de la más gruesa a la más fina, que vibran suavemente */
.academy__strings {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    opacity: 0.3;
}

.academy__strings i {
    display: block;
    height: 3px;
    background: #d9c08a;
}

.academy__strings i:nth-child(2) { height: 2.5px; }
.academy__strings i:nth-child(3) { height: 2px; }
.academy__strings i:nth-child(4) { height: 1.5px; }
.academy__strings i:nth-child(5) { height: 1.5px; }
.academy__strings i:nth-child(6) { height: 1px; }

/* Una pulsación: la cuerda vibra y se apaga, como al pellizcarla */
@keyframes pluck {
    0% { transform: translateY(0); }
    10% { transform: translateY(-3px); }
    22% { transform: translateY(2.5px); }
    36% { transform: translateY(-1.8px); }
    52% { transform: translateY(1.2px); }
    70% { transform: translateY(-0.6px); }
    100% { transform: translateY(0); }
}

/* Mismo movimiento con otro nombre, para que vuelva a sonar al pasar el cursor */
@keyframes pluck-again {
    0% { transform: translateY(0); }
    10% { transform: translateY(-3px); }
    22% { transform: translateY(2.5px); }
    36% { transform: translateY(-1.8px); }
    52% { transform: translateY(1.2px); }
    70% { transform: translateY(-0.6px); }
    100% { transform: translateY(0); }
}

.academy.is-visible .academy__strings i {
    animation: pluck 1.1s var(--ease-out) both;
}

.academy.is-visible .academy__strings i:nth-child(2) { animation-delay: 0.06s; }
.academy.is-visible .academy__strings i:nth-child(3) { animation-delay: 0.12s; }
.academy.is-visible .academy__strings i:nth-child(4) { animation-delay: 0.18s; }
.academy.is-visible .academy__strings i:nth-child(5) { animation-delay: 0.24s; }
.academy.is-visible .academy__strings i:nth-child(6) { animation-delay: 0.3s; }

@media (hover: hover) and (pointer: fine) {
    .academy:hover .academy__strings i {
        animation-name: pluck-again;
    }
}

.academy__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    background: var(--red);
    border-radius: 16px;
    color: #fff;
}

.academy__icon .icon {
    width: 30px;
    height: 30px;
}

.academy__soon {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #ff9ea2;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.academy h3 {
    margin-top: 10px;
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1.1;
}

.academy__text p:not(.academy__soon) {
    margin-top: 6px;
    color: #dcdce0;
}

.academy .academy__by {
    color: var(--muted);
    font-size: var(--fs-small);
    font-style: italic;
}

@media (min-width: 720px) {
    .academy {
        grid-template-columns: auto 1fr auto;
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .academy__strings i {
        animation: none;
    }
}

/* ---------- Reseñas ---------- */
.reviews {
    display: grid;
    gap: 16px;
}

.reviews li {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--surface-2);
    border-radius: var(--radius);
}

.reviews__stars {
    display: flex;
    gap: 4px;
    color: #f5b942;
}

.reviews blockquote {
    margin: 0;
    color: #dcdce0;
    font-size: var(--fs-body);
}

.reviews footer {
    margin-top: auto;
    font-weight: 700;
}

.reviews footer span {
    display: block;
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 400;
}

@media (min-width: 760px) {
    .reviews {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
    display: grid;
    gap: 10px;
    align-content: start;
}

@media (min-width: 980px) {
    .faq-layout {
        display: grid;
        grid-template-columns: 0.8fr 1.4fr;
        gap: 48px;
        align-items: start;
    }

    .faq-layout .section__head {
        position: sticky;
        top: calc(var(--header-h) + 32px);
        margin-bottom: 0;
    }
}

.faq-layout .section__head .btn {
    margin-top: 24px;
}

.faq details {
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.faq details[open] {
    background: #26262b;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

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

.faq summary .icon {
    color: var(--red-hi);
    transition: transform 0.25s ease;
}

.faq details[open] summary .icon {
    transform: rotate(180deg);
}

.faq details p {
    padding: 0 22px 20px;
    color: #c9c9cf;
}

.faq details[open] p {
    animation: faq-in 0.3s ease both;
}

@keyframes faq-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ---------- Formas de pago ---------- */

/* ---------- Cierre ---------- */
.closing-wrap {
    padding-top: var(--section);
}

.section:not(.section--alt) + .closing-wrap {
    padding-top: 0;
}

.closing {
    display: grid;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 5vw, 56px);
    background: var(--red);
    border-radius: calc(var(--radius) + 6px);
}

.closing h2 {
    font-size: var(--fs-h2);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.closing p {
    margin-top: 12px;
    color: #ffe3e4;
    font-size: var(--fs-body);
}

.closing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.closing .btn--ghost {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.18);
}

@media (min-width: 900px) {
    .closing {
        grid-template-columns: 1fr auto;
    }
}

/* ---------- Pie ---------- */
.site-footer {
    margin-top: var(--section);
    padding-block: 56px 28px;
    background: #08080a;
    color: var(--muted);
    font-size: var(--fs-body);
}

.site-footer__grid {
    display: grid;
    gap: 36px;
}

.site-footer img {
    width: 150px;
    height: 46px;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: var(--text);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0;
}

.site-footer li a,
.site-footer address a {
    display: inline-block;
    padding-block: 5px;
}

.site-footer a {
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .site-footer a:hover {
        color: var(--text);
    }
}

.site-footer__about p {
    max-width: 320px;
    margin-top: 16px;
}

.site-footer address {
    font-style: normal;
}

.site-footer__hours {
    margin-top: 10px;
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text);
    transition: background-color 0.2s, transform 160ms var(--ease-out);
    background: rgba(255, 255, 255, 0.08);
}

@media (hover: hover) and (pointer: fine) {
    .social a:hover {
        background: var(--red);
    }
}

.social .icon {
    width: 20px;
    height: 20px;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 44px;
    padding-top: 22px;
    font-size: var(--fs-small);
}

/* En el teléfono, la última línea queda por encima de los botones flotantes (WhatsApp y subir) */
@media (max-width: 899px) {
    .site-footer__bottom {
        padding-bottom: 150px;
    }
}

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

    .site-footer__about {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    }

    .site-footer__about {
        grid-column: auto;
    }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    background: var(--whatsapp);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .wa-float:hover {
        transform: scale(1.06);
    }
}

.wa-float:active,
.social a:active,
.nav-toggle:active,
.hero-card:active,
.announce:active {
    transform: scale(0.96);
}

.js .wa-float {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.js .wa-float.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.wa-float .icon {
    width: 28px;
    height: 28px;
}

/* ---------- Volver arriba: la púa ---------- */
/* Encima del botón de WhatsApp, centrada con él */
.to-top {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + 56px + 12px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px;
    height: 60px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
}

.to-top.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top__pick {
    width: 46px;
    height: 54px;
    overflow: visible;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
    transition: transform 0.2s var(--ease-out);
}

/* La tuerca del alma, vista de frente */
.to-top__nut {
    width: 50px;
    height: 50px;
    overflow: visible;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
    transition: transform 0.2s var(--ease-out);
}

.to-top--tuerca {
    height: 56px;
}

.to-top__steel {
    fill: url(#tuerca-acero);
}

.to-top__sweep {
    fill: var(--red);
}

/* El chaflán de la tuerca, un poco más claro */
.to-top__bevel {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.2;
}

.to-top__thread {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 2;
    stroke-dasharray: 2 2.2;
}

.to-top__hole {
    fill: #0c0c0e;
    stroke: rgba(0, 0, 0, 0.6);
    stroke-width: 1;
}

.to-top--tuerca .to-top__arrow {
    stroke-width: 2.6;
}

@media (hover: hover) and (pointer: fine) {
    .to-top:hover .to-top__nut {
        transform: translateY(-3px);
    }
}

.to-top:active .to-top__nut {
    transform: scale(0.94);
}

.to-top__base {
    fill: #1d1d21;
}

.to-top__fill {
    fill: var(--red);
}

.to-top__shine {
    fill: none;
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.to-top__edge {
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1.5;
}

.to-top__arrow {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.to-top:focus-visible {
    outline: none;
}

.to-top:focus-visible .to-top__edge {
    stroke: #fff;
    stroke-width: 3;
}

@media (hover: hover) and (pointer: fine) {
    .to-top:hover .to-top__pick {
        transform: translateY(-3px);
    }

    .to-top:hover .to-top__edge {
        stroke: rgba(255, 255, 255, 0.7);
    }
}

.to-top:active .to-top__pick {
    transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
    .to-top,
    .to-top__pick {
        transition: none;
    }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 1600px) {
    :root {
        --wrap: 1320px;
        --header-h: 76px;
        --fs-body: 1.125rem;
    }

    .brand img {
        width: 156px;
        height: 48px;
    }

    .hero__content {
        max-width: 820px;
    }

    .hero h1 {
        font-size: 6rem;
    }
}

/* ---------- Animación de entrada (solo con JS activo) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ticker__toggle {
        display: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .ticker__track,
    .js .hero__bg,
    .hero__content > *,
    .hero .stats {
        animation: none;
    }
}

@media print {
    .site-header,
    .wa-float,
    .hero__bg {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* En pantallas táctiles, toda zona pulsable mide al menos 44 px de alto.
   Va al final para que gane a las medidas normales de botones y enlaces. */
@media (pointer: coarse) {
    .btn--sm {
        min-height: 44px;
    }

    .site-footer li a,
    .site-footer address a {
        padding-block: 9px;
    }

    .hero__place a {
        padding-block: 11px;
        margin-block: -11px;
    }

    .brand {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .strings__sound {
        min-height: 44px;
    }
}


/* ---------- En el teléfono: "estás aquí" ---------- */
.where {
    display: none;
}

@media (max-width: 899px) {
    html {
        scroll-padding-top: calc(var(--header-h) + 56px);
    }

    /* Cuelga de la cabecera fija: no empuja el contenido */
    .where {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: block;
        background: rgba(12, 12, 14, 0.94);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s;
    }

    .where.is-shown,
    .where.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .where.is-open {
        background: #0c0c0e;
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
    }

    .where__btn {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 44px;
        padding: 0 var(--gutter);
        background: none;
        border: 0;
        color: var(--text);
        font: inherit;
        font-size: var(--fs-small);
        font-weight: 800;
        text-align: left;
        cursor: pointer;
    }

    .where__dot {
        flex: none;
        width: 8px;
        height: 8px;
        background: var(--red-hi);
        border-radius: 50%;
    }

    .where__label {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .where__count {
        color: var(--muted);
        font-variant-numeric: tabular-nums;
    }

    .where__btn .icon {
        width: 16px;
        height: 16px;
        color: var(--muted);
        transition: transform 0.2s var(--ease-out);
    }

    .where.is-open .where__btn .icon {
        transform: rotate(180deg);
    }

    .where__bar {
        display: block;
        height: 3px;
        background: rgba(255, 255, 255, 0.06);
    }

    .where__bar i {
        display: block;
        height: 100%;
        background: var(--red-hi);
        transform: scaleX(0);
        transform-origin: left center;
    }

    .where__list {
        display: grid;
        max-height: 60vh;
        overflow-y: auto;
        padding: 6px 0 10px;
    }

    .where__list[hidden] {
        display: none;
    }

    .where__list a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        padding: 0 var(--gutter);
        color: #d4d4d8;
        font-weight: 700;
        text-decoration: none;
    }

    .where__list a span {
        color: var(--muted);
        font-size: var(--fs-small);
        font-variant-numeric: tabular-nums;
    }

    .where__list a[aria-current] {
        color: #fff;
        background: rgba(177, 32, 40, 0.25);
    }

    .where__list a[aria-current] span {
        color: #ff9ea2;
    }
}

/* ---------- Marcas en el teléfono: algunas a la vista y un botón para ver todas ---------- */
.brands__more {
    display: none;
}

@media (max-width: 599px) {
    .js .brands__wall:not(.is-open) .brands__group:nth-child(1) .brands__list li:nth-child(n + 9),
    .js .brands__wall:not(.is-open) .brands__group:nth-child(2) .brands__list li:nth-child(n + 7) {
        display: none;
    }

    .js .brands__more {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin-top: 18px;
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        color: #fff;
        font: inherit;
        font-size: var(--fs-small);
        font-weight: 800;
        cursor: pointer;
    }
}

/* Productos en el teléfono: dos columnas, con el icono arriba */
@media (max-width: 599px) {
    .brands__kit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .kit {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .kit__icon {
        width: 36px;
        height: 36px;
    }
}
