/* ============================================================
   Armonía Music — página web, versión «Escenario».
   El lenguaje de sus publicaciones de redes: azul rey profundo con luz,
   letras anchas, gruesas e inclinadas, amarillo para lo que importa.
   Referencia de ritmo: las páginas «inmersivas» de producto (el objeto
   flota sobre un podio iluminado y cambia al bajar).
   Movimiento: curvas de salida, solo transform/opacity; nada se mueve
   con «menos movimiento».
   ============================================================ */

:root {
    --noche: #050f2b;
    --noche-2: #0a1b47;
    --rey: #0b47a8;
    --rey-claro: #2f6fe0;
    --cielo: #9cc2ff;
    --amarillo: #ffd23f;
    --blanco: #ffffff;
    --texto: #e7eeff;
    --suave: #a9b8da;
    --linea: rgba(156, 194, 255, 0.18);
    --tarjeta: #0f2459;
    --verde: #3ee08f;
    --naranja: #ffb547;

    --ancho: 1520px;
    --borde: 10px;
    --salida: cubic-bezier(0.23, 1, 0.32, 1);
    --familia: "Archivo", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    background: var(--noche);
}

body {
    margin: 0;
    background: var(--noche);
    color: var(--texto);
    font-family: var(--familia);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

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

.wrap {
    width: min(var(--ancho), 100% - 48px);
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--amarillo);
    color: var(--noche);
    border-radius: var(--borde);
    font-weight: 800;
    text-decoration: none;
}
.skip:focus {
    top: 12px;
}

.ico {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

/* ---------- Títulos: anchos, gruesos e inclinados, como sus publicaciones ---------- */
.h2,
.stage-title,
.calc-title,
.big {
    font-family: var(--familia);
    font-style: italic;
    font-variation-settings: "wdth" 120;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--blanco);
    text-wrap: balance;
}

.h2 {
    margin: 0;
    font-size: clamp(1.75rem, 1rem + 3.2vw, 3.4rem);
    hyphens: manual;
    line-height: 0.98;
}

.lead {
    margin: 12px 0 0;
    max-width: 56ch;
    color: var(--suave);
    font-size: 1.05rem;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 160ms var(--salida),
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}
.btn:active {
    transform: scale(0.97);
}
.btn-yellow {
    background: var(--amarillo);
    color: var(--noche);
}
.btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--blanco);
}
.btn-blue {
    background: var(--rey-claro);
    color: var(--blanco);
}
.btn-block {
    width: 100%;
}
@media (hover: hover) and (pointer: fine) {
    .btn-yellow:hover {
        background: #ffe170;
    }
    .btn-ghost:hover {
        border-color: var(--blanco);
        background: rgba(255, 255, 255, 0.08);
    }
    .btn-blue:hover {
        background: #4a83ec;
    }
}

/* ---------- Encabezado ---------- */
.top {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    background: linear-gradient(180deg, rgba(5, 15, 43, 0.92), rgba(5, 15, 43, 0.7));
    backdrop-filter: saturate(1.3) blur(12px);
    border-bottom: 1px solid var(--linea);
}
.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
}
.top-logo img {
    width: auto;
    height: 40px;
}
.top-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sw-nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--texto);
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
}
.sw-nav-link:hover,
.sw-nav-link.active {
    color: var(--blanco);
    background: rgba(255, 255, 255, 0.08);
}
.top-wa {
    margin-left: 10px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.93rem;
    background: var(--amarillo);
    color: var(--noche);
}
.top-burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.top-burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--blanco);
    transition: transform 200ms var(--salida);
}
.top-burger span:first-child {
    top: 17px;
}
.top-burger span:last-child {
    top: 26px;
}
.top-burger[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
}
.top-burger[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- Escenario ---------- */
.stage {
    position: relative;
    background:
        radial-gradient(120% 80% at 70% 10%, #1d5fd0 0%, rgba(11, 71, 168, 0.55) 35%, transparent 70%),
        linear-gradient(180deg, #0a2a78 0%, var(--noche) 100%);
}
.stage.is-pinned {
    height: calc(var(--escenas) * 100vh);
    height: calc(var(--escenas) * 100svh);
}
.stage-sticky {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 96px 0 40px;
}
.stage.is-pinned .stage-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
}
/* Haces de luz diagonales, como en sus publicaciones */
.stage-light {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 38%, rgba(156, 194, 255, 0.10) 38% 41%, transparent 41% 100%),
        linear-gradient(115deg, transparent 0 46%, rgba(156, 194, 255, 0.07) 46% 52%, transparent 52% 100%),
        linear-gradient(115deg, transparent 0 78%, rgba(156, 194, 255, 0.06) 78% 80%, transparent 80% 100%);
}
.stage-grid > * {
    min-width: 0;
}
.stage-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: center;
}
.stage-places {
    margin: 0 0 14px;
    color: var(--cielo);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.stage-title {
    margin: 0;
    font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.5rem);
    line-height: 0.92;
}
.stage-lead {
    margin: 20px 0 0;
    max-width: 36ch;
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
    color: var(--texto);
}
.stage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.stage-show {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(72vh, 680px);
    min-height: min(72svh, 680px);
}
/* La palabra gigante detrás del instrumento */
.stage-word {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.stage-word span {
    grid-area: 1 / 1;
    font-style: italic;
    font-variation-settings: "wdth" 125;
    font-weight: 900;
    font-size: clamp(2.8rem, 1rem + 6vw, 7rem);
    line-height: 1;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(156, 194, 255, 0.28);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 420ms ease,
        transform 600ms var(--salida);
}
.stage-word span.is-on {
    opacity: 1;
    transform: none;
}
.stage-word span.is-past {
    transform: translateY(-24px);
}
.stage-items {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template: 100% / 100%;
    place-items: center;
    width: 100%;
    height: min(60vh, 580px);
    height: min(60svh, 580px);
    margin-bottom: 40px;
}
.stage-item {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(60px) scale(0.9) rotate(-8deg);
    transition:
        opacity 380ms ease,
        transform 700ms var(--salida);
    pointer-events: none;
}
.stage-item.is-past {
    transform: translateY(-50px) scale(0.92) rotate(6deg);
}
.stage-item.is-on {
    opacity: 1;
    transform: translateY(calc(var(--p, 0) * -18px));
}
.stage-item img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 28px 30px rgba(0, 6, 25, 0.55)) drop-shadow(0 0 40px rgba(122, 170, 255, 0.25));
}
.stage-item.is-wide img {
    width: min(100%, 560px);
    height: auto;
    max-height: 100%;
}
/* El podio iluminado */
.podium {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 0;
    width: min(78%, 460px);
    aspect-ratio: 5 / 1;
    transform: translate(-50%, 45%);
    border-radius: 50%;
    background: radial-gradient(closest-side, #f4f8ff 0%, #b9d1ff 40%, #3a6fd6 75%, rgba(11, 71, 168, 0) 100%);
    box-shadow:
        0 0 60px 10px rgba(122, 170, 255, 0.45),
        0 24px 50px rgba(0, 6, 25, 0.6);
}
.podium::after {
    content: "";
    position: absolute;
    inset: 18% 8% -10%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
}
.stage-foot {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    min-height: 44px;
}
.stage-name {
    margin: 0;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--blanco);
}
.stage-ask {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--amarillo);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.stage-dots {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
}
.stage-dots button {
    width: 44px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.stage-dots button::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
    transform: scaleX(0.7);
    transition: background-color 200ms ease, transform 300ms var(--salida);
}
.stage-dots button.is-on::before {
    transform: none;
    background: var(--amarillo);
}

/* Entrada del escenario: una sola vez al cargar */
@media (prefers-reduced-motion: no-preference) {
    .js [data-enter] {
        animation: entrar 620ms var(--salida) both;
    }
    .js .stage-copy [data-enter]:nth-child(2) { animation-delay: 70ms; }
    .js .stage-copy [data-enter]:nth-child(3) { animation-delay: 140ms; }
    .js .stage-copy [data-enter]:nth-child(4) { animation-delay: 210ms; }
    .js .stage-show[data-enter] {
        animation-name: entrar-escena;
        animation-duration: 900ms;
        animation-delay: 120ms;
    }
}
@keyframes entrar {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}
@keyframes entrar-escena {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
}

/* ---------- Secciones ---------- */
.section {
    position: relative;
    padding: clamp(64px, 8vw, 112px) 0;
}
.section-deep {
    background: linear-gradient(180deg, var(--noche) 0%, var(--noche-2) 100%);
}
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    margin-bottom: 30px;
}

/* ---------- Ofertas ---------- */
.offers-section {
    background:
        radial-gradient(70% 60% at 15% 0%, rgba(47, 111, 224, 0.35), transparent 70%),
        var(--noche);
}
.offers {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 310px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(24px, (100% - var(--ancho)) / 2);
    padding: 6px max(24px, (100% - var(--ancho)) / 2) 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--rey-claro) transparent;
}
.offer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-snap-align: start;
}
.offer img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 6, 25, 0.5);
    transition: transform 300ms var(--salida);
}
@media (hover: hover) and (pointer: fine) {
    .offer:hover img {
        transform: translateY(-4px);
    }
}
.offer .btn {
    min-height: 46px;
    background: var(--amarillo);
    color: var(--noche);
}

/* ---------- Catálogo ---------- */
.catalog-section {
    background: var(--noche-2);
}
.search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(380px, 100%);
}
.search .ico {
    position: absolute;
    left: 16px;
    color: var(--suave);
}
.search input {
    width: 100%;
    min-height: 50px;
    padding: 0 46px;
    border: 1.5px solid var(--linea);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: 1rem;
    color: var(--blanco);
    transition: border-color 150ms ease, background-color 150ms ease;
}
.search input::placeholder {
    color: var(--suave);
}
.search input:focus {
    outline: none;
    border-color: var(--amarillo);
    background: rgba(255, 255, 255, 0.1);
}
.search-clear {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 1.4rem;
    color: var(--suave);
    cursor: pointer;
}

.families {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--rey-claro) transparent;
}
.sw-family,
.chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1.5px solid var(--linea);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--texto);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        transform 160ms var(--salida);
}
.sw-family:active,
.chip:active {
    transform: scale(0.97);
}
.sw-family.is-active,
.chip.is-active {
    background: var(--amarillo);
    border-color: var(--amarillo);
    color: var(--noche);
}
@media (hover: hover) and (pointer: fine) {
    .sw-family:not(.is-active):hover,
    .chip:not(.is-active):hover {
        border-color: var(--cielo);
        color: var(--blanco);
    }
}
.sw-family-count {
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    opacity: 0.7;
}
#swBtnFeatured {
    display: none;
}

.active-filters:not(:empty) {
    margin-top: 12px;
}
.sw-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 14px;
    border-radius: 999px;
    background: rgba(255, 210, 63, 0.15);
    color: var(--amarillo);
    font-size: 0.93rem;
}
.sw-filter-chip button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

.count {
    margin: 16px 0 16px;
    color: var(--suave);
    font-size: 0.93rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: var(--tarjeta);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--linea);
}
.card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    background: radial-gradient(80% 70% at 50% 45%, #ffffff 0%, #e8eef9 100%);
    cursor: pointer;
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 9%;
    mix-blend-mode: multiply;
    transition: transform 320ms var(--salida);
}
@media (hover: hover) and (pointer: fine) {
    .card-media:hover img {
        transform: scale(1.04);
    }
}
/* Mientras la foto llega: nota musical tenue y un brillo que pasa.
   Al cargar (o si falla) la foto aparece suave y el brillo se va. */
.card-media::before,
.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}
.card-media::before {
    content: "♫";
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: rgba(11, 71, 168, 0.22);
}
.card-media::after {
    background: linear-gradient(105deg, transparent 30%, rgba(11, 71, 168, 0.09) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: card-brillo 1.4s ease-in-out infinite;
}
.card-media.is-loaded::before,
.card-media.is-loaded::after {
    opacity: 0;
    animation: none;
}
.card-media img {
    opacity: 0;
    transition: opacity 400ms ease, transform 320ms var(--salida);
}
.card-media.is-loaded img {
    opacity: 1;
}
@keyframes card-brillo {
    to {
        transform: translateX(100%);
    }
}
.card-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: var(--rey);
}
.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}
.card-brand {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cielo);
}
.card-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--blanco);
}
.card-model {
    color: var(--suave);
    font-size: 0.86rem;
}
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}
.card-actions .btn {
    flex: 1;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.93rem;
    background: var(--rey-claro);
    color: var(--blanco);
}
@media (hover: hover) and (pointer: fine) {
    .card-actions .btn:hover {
        background: #4a83ec;
    }
}

.sw-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--noche);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}
.sw-stock-badge.is-in {
    color: var(--verde);
}
.sw-stock-badge.is-out {
    color: var(--naranja);
}

.sw-empty {
    grid-column: 1 / -1;
    padding: 40px 24px;
    border: 1.5px dashed var(--linea);
    border-radius: 14px;
    text-align: center;
}
.sw-empty p {
    margin: 0 0 16px;
    color: var(--suave);
}
.sw-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.sw-empty .sw-btn,
.sw-empty .sw-btn-wa-card {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid var(--amarillo);
    border-radius: 999px;
    background: transparent;
    color: var(--amarillo);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

/* ---------- Apartados ---------- */
.plans-section {
    background:
        radial-gradient(60% 70% at 90% 20%, rgba(47, 111, 224, 0.4), transparent 70%),
        linear-gradient(180deg, var(--noche-2), var(--noche));
}
.plans-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
.big {
    margin: 0;
    font-size: clamp(5rem, 2rem + 12vw, 11rem);
    line-height: 0.85;
    color: var(--amarillo);
}
.plans-title {
    margin-top: 6px;
}
.steps {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: paso;
}
.steps li {
    counter-increment: paso;
    position: relative;
    padding: 16px 0 16px 56px;
    border-top: 1px solid var(--linea);
    font-size: 1.08rem;
}
.steps li:last-child {
    border-bottom: 1px solid var(--linea);
}
.steps li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: 10px;
    font-style: italic;
    font-variation-settings: "wdth" 125;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    color: var(--amarillo);
}
.steps strong {
    color: var(--blanco);
}
.note {
    margin: 20px 0 0;
    max-width: 52ch;
    color: var(--suave);
    font-size: 0.97rem;
}

.calc {
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(47, 111, 224, 0.35), rgba(15, 36, 89, 0.9));
    box-shadow:
        inset 0 0 0 1px rgba(156, 194, 255, 0.25),
        0 30px 60px rgba(0, 6, 25, 0.45);
}
.calc-title {
    margin: 0 0 18px;
    font-size: 1.5rem;
}
.calc-label {
    display: block;
    color: var(--suave);
    font-size: 0.93rem;
}
.calc-total {
    display: block;
    margin: 6px 0 14px;
    font-style: italic;
    font-variation-settings: "wdth" 120;
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--blanco);
    font-variant-numeric: tabular-nums;
}
#swSimSlider {
    width: 100%;
    height: 28px;
    accent-color: var(--amarillo);
}
.calc-presets {
    display: flex;
    gap: 8px;
    margin: 12px 0 20px;
}
.calc-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 20px;
}
.calc-result div {
    padding: 14px;
    border-radius: 12px;
    background: rgba(5, 15, 43, 0.55);
}
.calc-result dt {
    color: var(--suave);
    font-size: 0.86rem;
}
.calc-result dd {
    margin: 4px 0 0;
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--amarillo);
    font-variant-numeric: tabular-nums;
}
.calc .btn {
    background: var(--amarillo);
    color: var(--noche);
}

/* ---------- Marcas: franja blanca para que los logos se lean ---------- */
.brands-section {
    background: var(--blanco);
    color: #121826;
}
.brands-section .h2 {
    color: var(--noche-2);
}
.brands-section .lead {
    color: #4b5672;
}
.brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.sw-brand-item {
    display: grid;
    place-items: center;
    height: 84px;
    padding: 14px 18px;
    border: 1.5px solid #e3e9f3;
    border-radius: 12px;
    background: var(--blanco);
    cursor: pointer;
    transition:
        border-color 150ms ease,
        transform 160ms var(--salida);
}
.sw-brand-item:active {
    transform: scale(0.97);
}
.sw-brand-item.is-active {
    border-color: var(--rey);
}
.sw-brand-logo {
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition:
        filter 200ms ease,
        opacity 200ms ease;
}
.sw-brand-item.is-active .sw-brand-logo {
    filter: none;
    opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
    .sw-brand-item:hover {
        border-color: var(--rey);
    }
    .sw-brand-item:hover .sw-brand-logo {
        filter: none;
        opacity: 1;
    }
}
.sw-brand-text {
    font-weight: 900;
    font-style: italic;
    color: var(--noche-2);
}

/* ---------- Sucursales ---------- */
.branches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    border-top: 1px solid var(--linea);
}
.branch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--linea);
}
.branch-name {
    margin: 0;
    font-style: italic;
    font-variation-settings: "wdth" 120;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--blanco);
}
.branch-tag {
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--amarillo);
    color: var(--noche);
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: 0.75rem;
    font-weight: 800;
    vertical-align: 4px;
}
.branch-info {
    margin: 0;
    color: var(--suave);
    font-size: 0.95rem;
}
.branch-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    gap: 8px;
}
.branch-actions .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.92rem;
}
.branch-actions .btn-line {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--blanco);
}
.branch-actions .btn-solid {
    background: var(--rey-claro);
    color: var(--blanco);
}

/* ---------- Preguntas ---------- */
.faq-section {
    background: var(--noche-2);
}
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
}
.sw-faq-item {
    border-bottom: 1px solid var(--linea);
}
.sw-faq-item:first-child {
    border-top: 1px solid var(--linea);
}
.sw-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 64px;
    padding: 14px 0;
    border: 0;
    background: transparent;
    color: var(--blanco);
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
}
.sw-faq-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--amarillo);
    transition: transform 200ms var(--salida);
}
.sw-faq-icon .sw-ico {
    width: 22px;
    height: 22px;
}
.sw-faq-item.is-open .sw-faq-icon {
    transform: rotate(180deg);
}
.sw-faq-a p {
    margin: 0 0 20px;
    max-width: 62ch;
    color: var(--texto);
}

/* ---------- Pie ---------- */
.foot {
    background: #030a1f;
    color: var(--suave);
    padding: 64px 0 0;
}
.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.foot-logo {
    width: 150px;
}
.foot-h {
    margin: 0 0 12px;
    font-size: 0.97rem;
    font-weight: 800;
    color: var(--blanco);
}
.foot-text {
    margin: 12px 0 0;
    font-size: 0.95rem;
}
.foot-link,
.foot-social a {
    display: block;
    padding: 6px 0;
    color: var(--suave);
    text-decoration: none;
    font-size: 0.95rem;
}
.foot-link:hover,
.foot-social a:hover {
    color: var(--blanco);
}
.foot-base {
    margin-top: 48px;
    padding: 20px 0 96px;
    border-top: 1px solid var(--linea);
    font-size: 0.88rem;
}

/* ---------- Ficha del producto ---------- */
.sw-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 180ms;
}
.sw-modal.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s;
}
.sw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 31, 0.7);
    opacity: 0;
    transition: opacity 180ms ease;
}
.sw-modal.is-open .sw-modal-backdrop {
    opacity: 1;
}
.sw-modal-box {
    position: relative;
    width: min(900px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    border-radius: 18px;
    background: var(--tarjeta);
    box-shadow: inset 0 0 0 1px var(--linea), 0 40px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.96) translateY(8px);
    transition:
        opacity 150ms ease,
        transform 150ms ease;
}
.sw-modal.is-open .sw-modal-box {
    opacity: 1;
    transform: none;
    transition:
        opacity 220ms var(--salida),
        transform 260ms var(--salida);
}
.sw-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--noche);
    color: var(--blanco);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.sw-modal-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.sw-modal-media {
    display: grid;
    place-items: center;
    min-height: 340px;
    background: radial-gradient(80% 70% at 50% 45%, #ffffff 0%, #e8eef9 100%);
}
.sw-modal-media img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    padding: 8%;
    mix-blend-mode: multiply;
}
.sw-modal-info {
    padding: 34px 28px 28px;
}
.sw-modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding-right: 44px;
}
.sw-modal-meta .sw-stock-badge {
    position: static;
}
.sw-product-brand {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cielo);
}
.sw-product-cat-pill {
    font-size: 0.85rem;
    color: var(--suave);
}
.sw-product-feat-badge {
    display: none;
}
.sw-modal-title {
    margin: 10px 0 0;
    font-style: italic;
    font-variation-settings: "wdth" 115;
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1.05;
    color: var(--blanco);
}
.sw-modal-desc {
    margin: 8px 0 0;
    color: var(--suave);
}
.sw-modal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.sw-spec-label {
    display: block;
    color: var(--suave);
    font-size: 0.85rem;
}
.sw-spec-val {
    font-size: 0.93rem;
}
.sw-modal-perks {
    margin: 20px 0 0;
}
.sw-modal-perk-item {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.95rem;
}
.sw-modal-perk-item span:first-child {
    color: var(--amarillo);
    font-weight: 900;
}
.sw-modal-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.sw-btn-modal-wa,
.sw-btn-modal-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.97rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms var(--salida);
}
.sw-btn-modal-wa:active,
.sw-btn-modal-share:active {
    transform: scale(0.97);
}
.sw-btn-modal-wa {
    flex: 1 1 260px;
    border: 0;
    background: var(--amarillo);
    color: var(--noche);
}
.sw-btn-modal-share {
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--blanco);
}
.sw-btn-modal-share.is-copied {
    border-color: var(--verde);
    color: var(--verde);
}
.sw-ico {
    width: 1.15em;
    height: 1.15em;
}
.sw-product-fallback {
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: var(--rey);
}

/* ---------- WhatsApp flotante ---------- */
.wa-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
}
.wa-float {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: #1fa855;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    transition: transform 160ms var(--salida);
}
.wa-float .ico {
    width: 30px;
    height: 30px;
}
.wa-float:active {
    transform: scale(0.95);
}
.wa-popup {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 280px;
    padding: 8px;
    border-radius: 14px;
    background: var(--tarjeta);
    box-shadow:
        inset 0 0 0 1px var(--linea),
        0 20px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transform-origin: bottom right;
    visibility: hidden;
    transition:
        opacity 140ms ease,
        transform 140ms ease,
        visibility 0s linear 140ms;
}
.wa-popup.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition:
        opacity 200ms var(--salida),
        transform 200ms var(--salida),
        visibility 0s;
}
.wa-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px 8px 10px;
    color: var(--blanco);
}
.wa-popup-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--suave);
    font-size: 1.4rem;
    cursor: pointer;
}
.wa-popup a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.97rem;
}
.wa-popup a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--amarillo);
}

/* ---------- Anchos ---------- */
@media (max-width: 1080px) {
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .top-burger {
        display: block;
    }
    .top-nav {
        position: fixed;
        inset: 70px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 24px 24px;
        background: var(--noche);
        border-bottom: 1px solid var(--linea);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
        transition:
            opacity 150ms ease,
            transform 150ms ease,
            visibility 0s linear 150ms;
    }
    .top-nav.is-open {
        opacity: 1;
        transform: none;
        visibility: visible;
        transition:
            opacity 200ms var(--salida),
            transform 200ms var(--salida),
            visibility 0s;
    }
    .sw-nav-link {
        padding: 14px 4px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--linea);
        border-radius: 0;
    }
    .top-wa {
        margin: 14px 0 0;
    }
    .stage-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
    .stage-sticky {
        align-items: flex-start;
        padding: 88px 0 18px;
    }
    .stage-title {
        font-size: clamp(1.8rem, 8.4vw, 3.4rem);
    }
    .stage-lead {
        margin-top: 12px;
        font-size: 1.02rem;
    }
    .stage-actions {
        margin-top: 18px;
    }
    .stage-show {
        min-height: 0;
    }
    .stage-items {
        height: min(32vh, 290px);
        margin-bottom: 28px;
    }
    .stage-word span {
        font-size: clamp(2.4rem, 13vw, 4.6rem);
    }
    .podium {
        width: min(72%, 320px);
    }
    .plans-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .branches {
        grid-template-columns: 1fr;
    }
    .sw-modal-detail-grid {
        grid-template-columns: 1fr;
    }
    .sw-modal-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
    .wrap {
        width: min(var(--ancho), 100% - 32px);
    }
    .top-logo img {
        height: 34px;
    }
    .stage-places {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }
    .stage-actions .btn {
        flex: 1 1 auto;
        min-height: 46px;
        padding: 0 16px;
        font-size: 0.93rem;
    }
    .stage-word span {
        font-size: clamp(2.6rem, 14vw, 4.4rem);
    }
    .offers {
        grid-auto-columns: 78%;
        gap: 12px;
        scroll-padding-inline: 16px;
        padding-inline: 16px;
    }
    .search {
        width: 100%;
    }
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .card-body {
        padding: 10px 10px 12px;
    }
    .card-name {
        font-size: 0.92rem;
    }
    .card-actions .btn {
        font-size: 0.88rem;
        padding: 0 8px;
    }
    .sw-stock-badge {
        top: 6px;
        left: 6px;
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    .brands {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .sw-brand-item {
        height: 64px;
        padding: 10px;
    }
    .sw-brand-logo {
        max-height: 30px;
    }
    .branch {
        grid-template-columns: 1fr;
    }
    .branch-actions {
        grid-column: 1;
        grid-row: auto;
        margin-top: 8px;
    }
    .branch-actions .btn {
        flex: 1;
    }
    .calc {
        padding: 22px;
    }
    .calc-result {
        grid-template-columns: 1fr;
    }
    .foot-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .sw-modal {
        padding: 0;
        place-items: end stretch;
    }
    .sw-modal-box {
        width: 100%;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
    }
    .sw-modal-info {
        padding: 22px 18px 24px;
    }
}

@media (max-height: 700px) and (min-width: 901px) {
    .stage-items {
        height: 40vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 1ms !important;
        animation: none !important;
    }
}

.plans-heading {
    margin: 0;
}
.plans-heading .big,
.plans-heading .h2 {
    display: block;
}

.stage-item.is-amp img {
    width: min(100%, 380px);
}

.faq-section .h2 {
    font-size: clamp(1.75rem, 1rem + 2.2vw, 2.6rem);
}

/* ---------- Secciones que aparecen al bajar (aparecer.js) ----------
   Solo existe con la clase .rv que pone el programa; sin él todo se ve.
   Se anima con «animation» y «translate» (no con transform ni transition)
   para no pisar los efectos propios de cada tarjeta, y con relleno
   «backwards» para que al terminar no quede ningún estilo fijado. */
.rv:not(.is-visible) {
    opacity: 0;
}
.rv.is-visible:not(.rv-quieto) {
    animation: rv-entrar 700ms var(--salida) backwards;
    animation-delay: var(--rv-retraso, 0ms);
}
@keyframes rv-entrar {
    from {
        opacity: 0;
        translate: 0 32px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* ---------- Video de presentación ----------
   Horizontal en la computadora, vertical en el celular. Solo se descarga
   el que se muestra y solo al pulsar play (preload="none"). */
.video-box {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 6, 25, 0.55), inset 0 0 0 1px var(--linea);
    background: #000;
}
.video-box video {
    display: block;
    width: 100%;
    height: auto;
}
.video-v {
    display: none !important;
}
@media (max-width: 700px) {
    .video-h {
        display: none !important;
    }
    .video-v {
        display: block !important;
    }
    .video-box {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ---------- Escenario más corto en el celular ----------
   En la computadora mide una pantalla por instrumento; en el celular eso
   eran 4 pantallas de desliz antes de llegar a lo demás. Aquí: una pantalla
   más un tercio por cada instrumento siguiente (unas 2 pantallas con 4). */
@media (max-width: 700px) {
    .stage.is-pinned {
        height: calc(100vh + (var(--escenas) - 1) * 35vh);
        height: calc(100svh + (var(--escenas) - 1) * 35svh);
    }
}
