/* SmartBizy · landing
   Papel claro, tinta negra y el naranja del logo, siempre en colores planos. El lenguaje visual sale del mostrador de
   quien vende: notas adhesivas, etiquetas de precio, sellos, tickets impresos y cinta de embalaje.
   Fuentes de Google Fonts: Archivo (con eje de ancho), IBM Plex Mono (tickets y códigos) y Kalam (notas a mano). */

:root {
    color-scheme: light;

    --papel: #f2ede3;
    --arena: #e8e1d3;
    --blanco: #fffdf8;
    --tinta: #1b1916;
    --tinta-2: #4a443c;
    --tinta-3: #736b5f;
    --linea: #d5ccbc;
    --linea-suave: #e6dfd2;

    --naranja: #f16c20;
    --naranja-texto: #b4460b;
    --naranja-palido: #fce3d0;
    --verde: #1f7a4c;
    --verde-palido: #dcefdf;
    --rojo: #c8372a;
    --rojo-palido: #f6dcd7;

    --nota-amarilla: #f8e07e;
    --nota-rosa: #f6c7b8;
    --nota-celeste: #c7ddec;
    --nota-verde: #cfe6cc;

    --ancho: 1200px;
    --alto-cabecera: 72px;
    --fuente: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --mano: 'Kalam', 'Segoe Print', 'Comic Sans MS', cursive;
    --curva: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--papel);
    color: var(--tinta);
    font-family: var(--fuente);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

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

p {
    text-wrap: pretty;
}

section[id] {
    scroll-margin-top: var(--alto-cabecera);
}

::selection {
    background: var(--naranja);
    color: var(--tinta);
}

:focus-visible {
    outline: 3px solid var(--naranja);
    outline-offset: 3px;
}

.definiciones {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

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

.mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

mark {
    background: var(--naranja);
    color: var(--tinta);
    padding: 0 0.12em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.gris {
    color: var(--tinta-3);
}

.icono {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

kbd {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72em;
    line-height: 1.4;
    padding: 0 5px;
    border-radius: 4px;
    border: 1px solid var(--tinta-3);
    border-bottom-width: 2px;
    background: #fff;
    color: var(--tinta-2);
}

.saltar {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--blanco);
    border: 2px solid var(--tinta);
}

.saltar:focus {
    top: 12px;
}

/* Punto rojo de "en vivo" */
.punto-vivo {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rojo);
    flex-shrink: 0;
}

.punto-vivo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--rojo);
    animation: latido 1.8s ease-out infinite;
}

@keyframes latido {
    from {
        transform: scale(1);
        opacity: 0.8;
    }
    to {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* ---------- Títulos ---------- */

h1,
h2,
.remate {
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.5rem);
    line-height: 1;
}

.bajada {
    max-width: 520px;
    margin-top: 18px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--tinta-2);
}

.bajada a {
    color: var(--tinta);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--naranja);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

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

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 52px;
    padding: 0 22px;
    border-radius: 8px;
    border: 2px solid var(--tinta);
    color: var(--tinta);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: transform 0.12s, box-shadow 0.12s, background-color 0.2s;
}

.boton .icono {
    width: 18px;
    height: 18px;
}

.boton-primario {
    background: var(--naranja);
    box-shadow: 4px 4px 0 var(--tinta);
}

.boton-primario:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--tinta);
}

.boton-primario:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--tinta);
}

.boton-secundario {
    background: transparent;
}

.boton-secundario:hover {
    background: var(--blanco);
}

.boton-tinta {
    background: var(--tinta);
    color: var(--blanco);
    box-shadow: 4px 4px 0 var(--blanco);
}

.boton-tinta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--blanco);
}

.boton-tinta:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--blanco);
}

.boton-chico {
    height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
    box-shadow: 3px 3px 0 var(--tinta);
}

/* ---------- Cabecera ---------- */

.cabecera {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 50;
    background: var(--papel);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.cabecera.con-borde {
    border-bottom-color: var(--tinta);
}

.cabecera-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--alto-cabecera);
}

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

.marca img:first-child {
    height: 32px;
    width: auto;
}

.marca-texto {
    height: 25px;
    width: auto;
}

.navegacion {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navegacion a:not(.boton) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tinta-2);
    background-image: linear-gradient(var(--naranja), var(--naranja));
    background-size: 0 3px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
    transition: background-size 0.2s, color 0.2s;
}

.navegacion a:not(.boton):hover {
    color: var(--tinta);
    background-size: 100% 3px;
}

.navegacion .navegacion-ingresar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-left: 30px;
    border-left: 1.5px solid var(--linea);
    color: var(--tinta);
}

.navegacion-ingresar .icono {
    width: 18px;
    height: 18px;
    color: var(--naranja-texto);
}

.boton-menu {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid var(--tinta);
    background: var(--blanco);
    color: var(--tinta);
    cursor: pointer;
}

.boton-menu .icono {
    width: 22px;
    height: 22px;
}

/* ---------- Portada ---------- */

.portada {
    padding-top: calc(var(--alto-cabecera) + clamp(36px, 5vw, 64px));
    padding-bottom: clamp(96px, 11vw, 140px);
}

.portada-rotulo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--tinta-2);
}

.portada h1 {
    margin-top: 22px;
    font-size: clamp(2.9rem, 7.6vw, 6.2rem);
    line-height: 0.93;
}

.portada-pie {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 2px solid var(--tinta);
}

.portada-bajada {
    max-width: 580px;
    font-size: 1.16rem;
    line-height: 1.6;
    color: var(--tinta-2);
}

.portada-lado {
    justify-self: end;
}

.portada-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.portada-ventajas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--tinta-2);
}

.portada-ventajas li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portada-ventajas .icono {
    width: 16px;
    height: 16px;
    color: var(--verde);
    stroke-width: 2.6;
}

/* ---------- Maqueta de la aplicación ---------- */

.escena {
    position: relative;
    margin-top: clamp(64px, 7vw, 92px);
}

.ventana {
    border: 2px solid var(--tinta);
    border-radius: 12px;
    background: var(--blanco);
    box-shadow: 10px 10px 0 var(--tinta);
    overflow: hidden;
}

.ventana-barra {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 2px solid var(--tinta);
    background: var(--papel);
}

.ventana-puntos {
    display: flex;
    gap: 7px;
}

.ventana-puntos i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--tinta);
}

.ventana-titulo {
    flex: 1;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tinta-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insignia-vivo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--rojo);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.insignia-vivo .mono {
    font-weight: 500;
    letter-spacing: 0;
}

.ventana-cuerpo {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 250px;
    min-height: 440px;
}

.app-lateral {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-right: 1.5px solid var(--linea);
    background: var(--papel);
}

.app-lateral img {
    width: 26px;
    height: auto;
    margin-bottom: 12px;
}

.app-lateral span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--tinta-3);
}

.app-lateral span.activo {
    background: var(--naranja);
    color: var(--tinta);
    border: 1.5px solid var(--tinta);
}

.app-lateral .icono {
    width: 18px;
    height: 18px;
}

.app-principal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    min-width: 0;
}

.app-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.app-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--linea-suave);
    background: #fff;
}

.app-kpi span {
    font-size: 0.72rem;
    color: var(--tinta-3);
}

.app-kpi strong {
    font-size: 1.4rem;
    font-weight: 800;
    font-stretch: 105%;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.app-kpi em {
    font-style: normal;
    font-size: 0.7rem;
    color: var(--tinta-3);
}

.app-kpi em.sube {
    color: var(--verde);
    font-weight: 600;
}

.app-kpi-anillo svg {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%) rotate(-90deg);
}

.app-kpi-anillo circle,
.indicador-anillo circle {
    fill: none;
    stroke-width: 5;
    stroke: var(--linea-suave);
}

.app-kpi-anillo circle + circle,
.indicador-anillo circle + circle {
    stroke: var(--naranja);
}

.app-captura {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.4fr) minmax(0, 0.45fr) minmax(0, 0.7fr) auto;
    align-items: end;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    border: 1.5px solid #f0bd97;
    background: var(--naranja-palido);
}

.app-campo {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.app-etiqueta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tinta-2);
}

.app-valor {
    display: block;
    height: 36px;
    padding: 0 10px;
    line-height: 33px;
    border-radius: 6px;
    border: 1.5px solid var(--linea);
    background: #fff;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.app-valor.escribiendo {
    border-color: var(--tinta);
    box-shadow: 0 0 0 3px rgba(241, 108, 32, 0.4);
}

.app-valor.escribiendo::after {
    content: '';
    display: inline-block;
    width: 1.5px;
    height: 1em;
    margin-left: 1px;
    vertical-align: -2px;
    background: var(--tinta);
}

.app-extra {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
    color: var(--tinta-2);
}

.app-extra b {
    font-weight: 800;
}

.app-chip {
    position: absolute;
    top: -2px;
    right: 0;
    padding: 0 7px;
    border-radius: 4px;
    background: var(--verde-palido);
    color: var(--verde);
    font-size: 0.66rem;
    font-weight: 700;
}

.app-boton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1.5px solid var(--tinta);
    background: var(--naranja);
    box-shadow: 2px 2px 0 var(--tinta);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.1s, box-shadow 0.1s;
}

.app-boton kbd {
    border-color: var(--tinta);
    background: rgba(255, 255, 255, 0.55);
    color: var(--tinta);
}

.app-boton.presionado {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--tinta);
}

.app-tabla {
    flex: 1;
    border-radius: 8px;
    border: 1.5px solid var(--linea-suave);
    overflow: hidden;
}

.app-fila {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 0.4fr) minmax(0, 0.6fr) minmax(0, 0.45fr);
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-top: 1px solid var(--linea-suave);
    font-size: 0.82rem;
}

.app-fila span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-fila span:first-child {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.app-fila span:nth-child(n + 3) {
    text-align: right;
}

.app-fila span:nth-child(2),
.app-fila span:nth-child(5) {
    color: var(--tinta-2);
}

.app-fila-cabecera {
    border-top: 0;
    background: var(--papel);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-fila-cabecera span:nth-child(n) {
    color: var(--tinta-3);
    font-weight: 700;
}

#demo-lista li.nueva {
    animation: filaNueva 1.8s ease-out;
}

@keyframes filaNueva {
    0% {
        background: #ffe58a;
    }
    100% {
        background: transparent;
    }
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: hsl(var(--tono) 62% 86%);
    color: hsl(var(--tono) 55% 26%);
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 800;
}

.app-derecha {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
    border-left: 1.5px solid var(--linea);
    background: var(--papel);
}

.app-subtitulo {
    color: var(--tinta-3);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-stock li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    padding: 5px 0;
    font-size: 0.82rem;
}

.app-stock li b {
    font-weight: 600;
    transition: color 0.3s;
}

.app-stock li.cambio b {
    color: var(--naranja-texto);
}

.app-stock li i,
.vi-stock i {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: var(--linea-suave);
    overflow: hidden;
}

.app-stock li i {
    grid-column: 1 / -1;
}

.app-stock li i::after,
.vi-stock i::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--nivel) * 100%);
    border-radius: inherit;
    background: var(--naranja);
    transition: width 0.6s var(--curva);
}

.app-utilidad {
    margin-top: auto;
    padding: 14px;
    border-radius: 8px;
    border: 1.5px solid #a9d3b4;
    background: var(--verde-palido);
}

.app-utilidad span {
    display: block;
    font-size: 0.72rem;
    color: var(--tinta-2);
}

.app-utilidad strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--verde);
}

.app-utilidad svg {
    width: 100%;
    height: 34px;
    margin-top: 6px;
}

.app-utilidad path {
    fill: none;
    stroke: var(--verde);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* Etiqueta de precio colgando de la maqueta */
.etiqueta-precio {
    position: absolute;
    z-index: 2;
    right: 5%;
    bottom: -84px;
    filter: drop-shadow(4px 4px 0 var(--tinta));
    transform: rotate(8deg);
    transform-origin: 0 50%;
}

/* El cordel */
.etiqueta-precio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -26px;
    width: 40px;
    height: 2px;
    background: var(--tinta);
    transform: rotate(40deg);
    transform-origin: 100% 50%;
}

.etiqueta-cuerpo {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
    padding: 12px 18px 12px 34px;
    white-space: nowrap;
    background: var(--naranja);
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%);
}

/* El agujero */
.etiqueta-cuerpo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--papel);
    box-shadow: inset 0 0 0 2px var(--tinta);
}

.etiqueta-cuerpo small {
    font-size: 0.72rem;
    font-weight: 500;
}

.etiqueta-cuerpo b {
    font-size: 1.55rem;
    font-weight: 800;
    font-stretch: 110%;
    line-height: 1.1;
}

.etiqueta-precio.balancear {
    animation: balancear 1s var(--curva);
}

@keyframes balancear {
    0% {
        transform: rotate(8deg);
    }
    30% {
        transform: rotate(16deg);
    }
    60% {
        transform: rotate(4deg);
    }
    100% {
        transform: rotate(8deg);
    }
}

/* Pegatina redonda que gira */
.pegatina {
    position: absolute;
    z-index: 2;
    top: -62px;
    left: -52px;
    width: 136px;
    height: 136px;
}

.pegatina-fondo {
    fill: var(--tinta);
}

.pegatina text {
    fill: var(--papel);
    font-family: var(--fuente);
    font-size: 13px;
    font-weight: 800;
    font-stretch: 115%;
    letter-spacing: 1px;
}

.pegatina-giro {
    transform-origin: 80px 80px;
    animation: girar 30s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Sellos de tinta ---------- */

.sello {
    --giro: -6deg;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 14px;
    border: 3px solid currentColor;
    border-radius: 6px;
    color: var(--tinta);
    font-family: var(--fuente);
    font-weight: 800;
    font-stretch: 118%;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(var(--giro));
    filter: url(#tinta);
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.sello::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    border-radius: 3px;
    pointer-events: none;
}

.sello small {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.sello-verde {
    color: var(--verde);
}

.sello-naranja {
    color: var(--naranja-texto);
}

.sello-portada {
    --giro: -9deg;
    position: absolute;
    z-index: 2;
    left: 14%;
    bottom: -66px;
    padding: 10px 20px 9px;
    color: var(--verde);
    font-size: 2.1rem;
}

.sello.estampar {
    animation: estampar 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes estampar {
    from {
        transform: rotate(var(--giro)) scale(1.8);
        opacity: 0;
    }
    to {
        transform: rotate(var(--giro)) scale(1);
        opacity: 0.9;
    }
}

/* ---------- Canales: cinta de embalaje ---------- */

.canales {
    padding: 24px 0 16px;
    overflow: hidden;
}

.canales-titulo {
    text-align: center;
    font-weight: 600;
    color: var(--tinta-2);
}

.cinta {
    display: flex;
    width: 120%;
    margin: 30px 0 30px -10%;
    padding: 14px 0;
    overflow: hidden;
    border-block: 2px solid var(--tinta);
    background: var(--naranja);
    transform: rotate(-2deg);
}

.cinta-pista {
    display: flex;
    flex-shrink: 0;
    animation: cinta 42s linear infinite;
}

.cinta-pista li {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-size: 1.5rem;
    font-weight: 800;
    font-stretch: 118%;
    text-transform: uppercase;
    white-space: nowrap;
}

.cinta-pista li::after {
    content: '✶';
    font-size: 1.1rem;
}

@keyframes cinta {
    to {
        transform: translateX(-100%);
    }
}

/* ---------- Secciones ---------- */

.seccion {
    padding-block: clamp(80px, 10vw, 128px);
}

.seccion-arena {
    background: var(--arena);
}

.cabeza {
    margin-bottom: clamp(44px, 6vw, 72px);
}

.cabeza-rotulo {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 2px solid var(--tinta);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cabeza-rotulo span:last-child {
    font-family: var(--mono);
    font-weight: 500;
}

.cabeza-cuerpo {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
    margin-top: 28px;
}

.cabeza-cuerpo > h2:only-child {
    grid-column: 1 / -1;
    max-width: 18ch;
}

.cabeza-cuerpo .bajada {
    margin-top: 0;
}

/* ---------- Problema: notas adhesivas ---------- */

.notas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 12px 6px;
}

.nota {
    --giro: -2deg;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 36px 22px 22px;
    background: var(--color-nota);
    box-shadow: 0 1px 1px rgba(27, 25, 22, 0.1), 0 14px 16px -14px rgba(27, 25, 22, 0.5);
    transform: rotate(var(--giro));
    transition: transform 0.3s var(--curva);
}

/* Trozo de cinta adhesiva */
.nota::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 50%;
    width: 92px;
    height: 26px;
    margin-left: -46px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(27, 25, 22, 0.08);
    transform: rotate(-3deg);
}

.nota:hover {
    transform: rotate(0deg) translateY(-4px);
}

.nota blockquote {
    font-family: var(--mano);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.nota figcaption {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1.5px dashed rgba(27, 25, 22, 0.35);
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--tinta-2);
}

.nota-amarilla {
    --color-nota: var(--nota-amarilla);
    --giro: -2.5deg;
}

.nota-rosa {
    --color-nota: var(--nota-rosa);
    --giro: 1.8deg;
}

.nota-celeste {
    --color-nota: var(--nota-celeste);
    --giro: -1.2deg;
}

.nota-verde {
    --color-nota: var(--nota-verde);
    --giro: 2.6deg;
}

.remate mark {
    white-space: nowrap;
}

.remate {
    max-width: 28ch;
    margin-top: 72px;
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    line-height: 1.1;
}

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

.pasos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 2px solid var(--tinta);
}

.paso {
    display: flex;
    flex-direction: column;
    padding: 30px 24px 32px;
    border-left: 1.5px solid var(--tinta);
}

.paso:first-child {
    padding-left: 0;
    border-left: 0;
}

.paso:last-child {
    padding-right: 0;
}

.paso-numero {
    font-size: 5.6rem;
    font-weight: 800;
    font-stretch: 125%;
    line-height: 0.8;
    color: var(--naranja);
    -webkit-text-stroke: 2px var(--tinta);
}

.paso h3 {
    margin-top: 24px;
    font-size: 1.25rem;
    font-weight: 800;
    font-stretch: 106%;
    line-height: 1.2;
}

.paso p {
    margin-top: 8px;
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--tinta-2);
}

.mini {
    margin-top: auto;
    padding-top: 24px;
}

.mini-catalogo span {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1.5px solid var(--tinta);
    background: var(--blanco);
    font-size: 0.82rem;
}

.mini-catalogo b {
    color: var(--naranja-texto);
    font-weight: 600;
}

.mini-catalogo em {
    font-style: normal;
    font-weight: 600;
}

.etiqueta-vivo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1.5px solid var(--rojo);
    background: var(--blanco);
    color: var(--rojo);
    font-size: 0.8rem;
    font-weight: 700;
}

.avatares {
    display: flex;
    align-items: center;
    margin-top: 14px;
}

.avatares i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: -9px;
    border-radius: 50%;
    border: 2px solid var(--tinta);
    background: hsl(var(--tono) 62% 84%);
    color: hsl(var(--tono) 55% 24%);
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
}

.avatares i:first-child {
    margin-left: 0;
}

.avatares em {
    margin-left: 10px;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tinta-2);
}

.mini-pedido span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1.5px solid var(--tinta);
    background: var(--blanco);
    font-size: 0.82rem;
    white-space: nowrap;
}

.mini-pedido .icono {
    width: 16px;
    height: 16px;
    color: var(--tinta-3);
}

.mini-pedido b {
    color: var(--naranja-texto);
    font-weight: 600;
}

.mini-pedido .mini-pedido-guardado {
    background: var(--naranja);
    font-weight: 700;
}

.mini-pedido .mini-pedido-guardado .icono {
    color: var(--tinta);
    stroke-width: 2.6;
}

.mini-pedido-guardado em {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-style: normal;
    font-weight: 600;
}

.mini-pedido-guardado s {
    opacity: 0.6;
}

.mini-pedido-guardado b {
    color: var(--tinta);
    font-weight: 700;
}

.mini-sellos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 10px;
}

.sello-mini {
    padding: 5px 9px;
    border-width: 2px;
    font-size: 0.82rem;
}

.sello-mini:nth-child(2) {
    --giro: 4deg;
}

.sello-mini:nth-child(3) {
    --giro: -3deg;
}

/* ---------- Funciones ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.tarjeta {
    padding: 28px;
    border: 2px solid var(--tinta);
    border-radius: 10px;
    background: var(--blanco);
    transition: transform 0.15s, box-shadow 0.15s;
}

.tarjeta:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--tinta);
}

.tarjeta h3 {
    font-size: 1.35rem;
    font-weight: 800;
    font-stretch: 108%;
    line-height: 1.15;
}

.tarjeta p {
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--tinta-2);
}

.tarjeta-naranja {
    background: var(--naranja);
}

.tarjeta-naranja p {
    color: var(--tinta);
}

.tarjeta-tinta {
    background: var(--tinta);
    color: var(--blanco);
}

.tarjeta-tinta p {
    color: #d3cbbd;
}

.tarjeta-tinta:hover {
    box-shadow: 6px 6px 0 var(--naranja);
}

.bento-a {
    grid-column: span 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 32px;
}

.bento-b,
.bento-c,
.bento-d,
.bento-e {
    grid-column: span 2;
}

.bento-f,
.bento-g {
    grid-column: span 3;
}

.visual-inventario {
    overflow: hidden;
    border: 1.5px solid var(--tinta);
    border-radius: 8px;
    background: #fff;
    font-size: 0.84rem;
}

.vi-fila {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-top: 1px solid var(--linea-suave);
}

.vi-fila span:first-child b {
    display: block;
    color: var(--naranja-texto);
    font-size: 0.72rem;
    font-weight: 600;
}

.vi-cabecera {
    border-top: 0;
    background: var(--papel);
    color: var(--tinta-3);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.vi-stock i {
    flex: 1;
}

.vi-stock b {
    font-weight: 600;
}

.vi-bajo i::after {
    background: var(--rojo);
}

.vi-bajo b {
    color: var(--rojo);
}

.vi-acciones {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--linea-suave);
}

.vi-acciones span {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.vi-mas {
    border: 1.5px solid var(--verde);
    background: var(--verde-palido);
    color: var(--verde);
}

.vi-menos {
    border: 1.5px solid var(--linea);
    background: var(--papel);
    color: var(--tinta-2);
}

.teclado {
    display: grid;
    gap: 5px;
    margin-top: 24px;
    padding: 10px;
    border-radius: 10px;
    background: var(--tinta);
    box-shadow: 4px 4px 0 rgba(27, 25, 22, 0.35);
}

.teclado-fila {
    display: flex;
    gap: 5px;
}

.teclado i {
    flex: 1;
    height: 22px;
    border-radius: 4px;
    border-bottom: 3px solid #b8ad9c;
    background: var(--blanco);
}

.teclado-funciones i {
    height: 14px;
}

.teclado i.ancha {
    flex: 1.8;
}

.teclado i.espacio {
    flex: 6;
}

/* Las teclas de acceso rápido, en naranja, se presionan por turnos */
.teclado i.pulsa {
    border-bottom-color: #9c3d08;
    background: var(--naranja);
    animation: pulsar 2.4s calc(var(--turno) * 0.35s) infinite;
}

@keyframes pulsar {
    0%,
    14%,
    100% {
        transform: none;
        border-bottom-width: 3px;
    }
    6% {
        transform: translateY(2px);
        border-bottom-width: 1px;
    }
}

.ficha,
.perfil,
.indicadores > div {
    border: 1.5px solid var(--linea);
    border-radius: 8px;
    background: var(--papel);
}

.ficha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px;
}

.ficha .avatar {
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 0.8rem;
}

.ficha b {
    display: block;
    font-size: 0.92rem;
}

.ficha small {
    color: var(--tinta-3);
    font-size: 0.76rem;
}

.ficha .estado {
    margin-left: auto;
}

.estado {
    padding: 2px 9px;
    border-radius: 4px;
    border: 1.5px solid var(--verde);
    background: var(--verde-palido);
    color: var(--verde);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.saldo {
    margin-top: 20px;
    padding: 4px 14px;
    border: 1.5px dashed var(--tinta-3);
    background: var(--papel);
    font-size: 0.84rem;
}

.saldo div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.saldo div + div {
    border-top: 1px dashed var(--linea);
}

.saldo b {
    font-weight: 500;
}

.saldo .saldo-total {
    font-weight: 600;
}

.saldo .saldo-total b {
    color: var(--naranja-texto);
    font-weight: 600;
}

.pdf {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 14px;
    border: 1.5px solid #3d3832;
    border-radius: 8px;
}

.pdf-hoja {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 58px;
    padding: 10px 7px;
    border-radius: 3px;
    background: var(--blanco);
    flex-shrink: 0;
    transform: rotate(-4deg);
}

.pdf-hoja i {
    height: 3px;
    border-radius: 2px;
    background: var(--linea);
}

.pdf-hoja i.corta {
    width: 60%;
}

.pdf-hoja b {
    position: absolute;
    right: -10px;
    bottom: -6px;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--naranja);
    color: var(--tinta);
    font-size: 0.6rem;
    font-weight: 600;
}

.pdf-texto b {
    display: block;
    font-size: 0.92rem;
}

.pdf-texto small {
    color: #a39b8e;
    font-size: 0.78rem;
}

.perfiles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.perfil {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
}

.perfil b {
    min-width: 116px;
    font-size: 0.9rem;
}

.permiso {
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
}

.permiso.si {
    background: var(--verde-palido);
    color: var(--verde);
}

.permiso.no {
    background: var(--rojo-palido);
    color: #9b2c20;
    text-decoration: line-through;
}

.indicadores {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 10px;
    margin-top: 20px;
}

.indicadores > div {
    padding: 14px;
}

.indicadores small {
    display: block;
    color: var(--tinta-3);
    font-size: 0.76rem;
}

.indicadores b {
    font-size: 1.9rem;
    font-weight: 800;
    font-stretch: 110%;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.indicadores .indicador-anillo {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
}

.indicador-anillo svg {
    grid-row: span 2;
    width: 50px;
    height: 50px;
    transform: rotate(-90deg);
}

.indicador-anillo b {
    font-size: 1.4rem;
}

/* ---------- No es un ERP: formulario contra formulario ---------- */

.comparacion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 40px;
}

.comparacion-titulo {
    display: flex;
    align-items: center;
    height: 32px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    font-stretch: 108%;
    color: var(--tinta-3);
}

.comparacion-titulo img {
    height: 28px;
    width: auto;
}

/* Un formulario de software de oficina de los de antes: chico, gris y lleno de campos */
.form-erp {
    border: 1px solid #9e998f;
    border-radius: 3px;
    background: #ebe9e4;
    font-family: Tahoma, Verdana, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #333;
    box-shadow: 0 1px 0 #fff inset;
}

.form-erp-barra {
    padding: 5px 8px;
    background: #d5dae2;
    border-bottom: 1px solid #9e998f;
    color: #2c3644;
    font-weight: 700;
}

.form-erp-pestanas {
    display: flex;
    gap: 2px;
    padding: 6px 6px 0;
    border-bottom: 1px solid #9e998f;
}

.form-erp-pestanas span {
    padding: 3px 7px;
    border: 1px solid #b4afa5;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
    background: #dcd9d2;
    color: #555;
    white-space: nowrap;
}

.form-erp-pestanas span.activa {
    background: #f7f6f3;
    color: #222;
}

.form-erp-campos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px 8px;
    padding: 10px 8px;
    background: #f7f6f3;
}

.form-erp-campos span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.form-erp-campos i {
    font-style: normal;
    font-size: 9.5px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-erp-campos b {
    height: 17px;
    border: 1px solid #b4afa5;
    border-top-color: #8f8a80;
    background: #fff;
}

.form-erp-pie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-top: 1px solid #9e998f;
    color: #555;
}

.form-erp-botones {
    display: flex;
    gap: 4px;
}

.form-erp-botones i {
    padding: 2px 7px;
    border: 1px solid #8f8a80;
    border-radius: 2px;
    background: #e2dfd8;
    font-style: normal;
    color: #222;
    white-space: nowrap;
}

.form-sb {
    padding: 24px;
    border: 2px solid var(--tinta);
    border-radius: 10px;
    background: var(--blanco);
    box-shadow: 6px 6px 0 var(--tinta);
}

.form-sb-titulo {
    font-size: 1.2rem;
    font-weight: 800;
    font-stretch: 108%;
}

.form-sb-campos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.form-sb-campos span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-sb-campos .form-sb-ancho {
    grid-column: span 2;
}

.form-sb-campos i {
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tinta-2);
}

.form-sb-campos b {
    height: 44px;
    padding: 0 12px;
    line-height: 41px;
    border: 1.5px solid var(--linea);
    border-radius: 6px;
    background: #fff;
    font-weight: 500;
}

.form-sb-pie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.form-sb-pie span {
    font-family: var(--mano);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--naranja-texto);
    transform: rotate(-3deg);
}

.boton-falso {
    padding: 9px 20px;
    border: 1.5px solid var(--tinta);
    border-radius: 6px;
    background: var(--naranja);
    box-shadow: 2px 2px 0 var(--tinta);
    font-style: normal;
    font-weight: 800;
}

.lista-comparacion {
    margin-top: 28px;
}

.lista-comparacion li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-top: 1.5px solid var(--linea);
    line-height: 1.45;
}

.lista-comparacion .icono {
    margin-top: 1px;
    stroke-width: 2.6;
}

.lista-no li {
    color: var(--tinta-2);
}

.lista-no .icono {
    color: var(--rojo);
}

.lista-si li {
    font-weight: 600;
}

.lista-si .icono {
    color: var(--verde);
}

/* ---------- Ciclo del pedido ---------- */

.ciclo {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(40px, 6vw, 96px);
    margin-top: 28px;
}

.linea-tiempo {
    margin-top: 40px;
}

.linea-tiempo li {
    position: relative;
    margin-left: 17px;
    padding: 0 0 28px 34px;
    border-left: 2px solid var(--tinta);
}

.linea-tiempo li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.lt-marca {
    position: absolute;
    top: -4px;
    left: -19px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--tinta);
    background: var(--papel);
    font-size: 0.92rem;
    font-weight: 800;
}

.lt-marca-final {
    border-color: var(--verde);
    background: var(--verde);
    color: #fff;
}

.linea-tiempo h3 {
    font-size: 1.18rem;
    font-weight: 800;
    font-stretch: 106%;
}

.linea-tiempo p {
    margin-top: 4px;
    color: var(--tinta-2);
}

/* Ticket impreso con el resumen del evento */
.ticket-zona {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.ticket-sombra {
    width: min(100%, 370px);
    filter: drop-shadow(0 16px 18px rgba(27, 25, 22, 0.2)) drop-shadow(0 2px 2px rgba(27, 25, 22, 0.12));
    transform: rotate(1.5deg);
}

.ticket {
    padding: 30px 26px 44px;
    background: #fffefa;
    color: #26231f;
    font-size: 0.86rem;
    line-height: 1.75;
    /* Borde inferior dentado */
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}

.ticket-centro {
    text-align: center;
}

.ticket-marca {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.ticket-tenue {
    color: #7a7268;
}

.ticket-linea {
    height: 0;
    margin: 12px 0;
    border-top: 1.5px dashed #26231f;
}

.ticket-linea-doble {
    border-top: 4px double #26231f;
}

.ticket-fila {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ticket-total {
    font-size: 1.12rem;
    font-weight: 600;
}

.ticket-barras {
    width: 82%;
    height: 46px;
    margin: 18px auto 0;
    background: repeating-linear-gradient(90deg, #26231f 0 2px, transparent 2px 4px, #26231f 4px 5px, transparent 5px 8px, #26231f 8px 11px, transparent 11px 13px);
}

.sello-ticket {
    --giro: -14deg;
    position: absolute;
    bottom: 64px;
    right: 2%;
    padding: 9px 16px;
    color: var(--rojo);
    font-size: 1.9rem;
}

/* ---------- Cifras ---------- */

.cifras {
    padding-block: clamp(56px, 7vw, 80px);
    background: var(--tinta);
    color: var(--blanco);
}

.cifras-rejilla {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cifras-rejilla > div {
    padding: 6px 28px;
    border-left: 1.5px solid #3d3832;
}

.cifras-rejilla > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.cifras-rejilla b {
    display: block;
    font-size: clamp(4rem, 8vw, 6.6rem);
    font-weight: 800;
    font-stretch: 125%;
    line-height: 0.9;
    color: var(--naranja);
}

.cifras-rejilla span {
    display: block;
    max-width: 18ch;
    margin-top: 14px;
    color: #d3cbbd;
}

/* ---------- Confianza ---------- */

.pilares {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.pilar {
    padding-top: 20px;
    border-top: 2px solid var(--tinta);
}

.pilar .icono {
    width: 30px;
    height: 30px;
    color: var(--naranja-texto);
}

.pilar h3 {
    margin-top: 18px;
    font-size: 1.18rem;
    font-weight: 800;
    font-stretch: 106%;
}

.pilar p {
    margin-top: 8px;
    color: var(--tinta-2);
}

/* ---------- Preguntas ---------- */

.preguntas {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 64px;
    margin-top: 28px;
}

.acordeon details {
    border-bottom: 2px solid var(--tinta);
}

.acordeon details:first-child {
    border-top: 2px solid var(--tinta);
}

.acordeon summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    font-size: 1.12rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

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

/* Signo + que gira a × al abrir */
.acordeon summary::after {
    content: '';
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 2px solid var(--tinta);
    border-radius: 50%;
    background:
        linear-gradient(var(--tinta), var(--tinta)) center / 12px 2px no-repeat,
        linear-gradient(var(--tinta), var(--tinta)) center / 2px 12px no-repeat;
    transition: transform 0.25s var(--curva), background-color 0.2s;
}

.acordeon summary:hover::after {
    background-color: var(--naranja);
}

.acordeon details[open] summary::after {
    transform: rotate(45deg);
    background-color: var(--naranja);
}

.acordeon details p {
    padding: 0 48px 24px 0;
    color: var(--tinta-2);
    line-height: 1.65;
}

/* ---------- Llamado final ---------- */

.llamado {
    padding-block: clamp(72px, 9vw, 120px);
    border-top: 2px solid var(--tinta);
    background: var(--naranja);
}

.llamado-fila {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: end;
    gap: 48px;
}

.llamado h2 {
    max-width: 13ch;
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    line-height: 0.95;
}

.llamado p {
    max-width: 520px;
    margin-top: 22px;
    font-size: 1.15rem;
}

.llamado-acciones {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.llamado .boton-secundario:hover {
    background: var(--blanco);
}

.llamado .llamado-cuenta {
    margin-top: 28px;
    font-size: 1rem;
    font-weight: 600;
}

.llamado-cuenta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.llamado-cuenta .icono {
    width: 18px;
    height: 18px;
    transition: transform 0.15s;
}

.llamado-cuenta a:hover .icono {
    transform: translateX(3px);
}

.llamado-datos {
    margin-top: 6px;
    font-size: 0.92rem;
}

.llamado-datos li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-top: 1.5px dashed rgba(27, 25, 22, 0.45);
}

.llamado-datos span {
    font-weight: 600;
}

.llamado-datos a {
    font-weight: 600;
}

.llamado-datos a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Pie ---------- */

.pie {
    padding: 56px 0 32px;
    background: var(--tinta);
    color: var(--blanco);
}

.pie-fila {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.pie-marca p {
    margin-top: 14px;
    color: #a39b8e;
    font-size: 0.94rem;
}

.pie-marca .pie-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-top: 10px;
}

.pie-contacto a {
    color: #d3cbbd;
    font-weight: 600;
}

.pie-contacto a:hover {
    color: var(--naranja);
}

.pie-enlaces {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
}

.pie-enlaces a {
    color: #d3cbbd;
    font-size: 0.94rem;
    font-weight: 600;
}

.pie-enlaces a:hover {
    color: var(--naranja);
}

.pie-legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #3d3832;
    color: #a39b8e;
    font-size: 0.84rem;
}

/* ---------- Piezas que se animan al llegar a la vista (solo con JavaScript) ---------- */

/* Las notas caen y se pegan */
.js .nota.animar {
    opacity: 0;
    transform: rotate(calc(var(--giro) * 3)) translateY(-36px) scale(1.04);
    transition: opacity 0.45s, transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.js .nota.animar:nth-child(2) {
    transition-delay: 0.12s;
}

.js .nota.animar:nth-child(3) {
    transition-delay: 0.24s;
}

.js .nota.animar:nth-child(4) {
    transition-delay: 0.36s;
}

.js .nota.animar.visible {
    opacity: 1;
    transform: rotate(var(--giro));
}

.js .nota.animar.visible:hover {
    transform: rotate(0deg) translateY(-4px);
    transition-delay: 0s;
}

/* El ticket sale de la impresora y después lo sellan. Se observa el contenedor: Chrome no da por visible un elemento
   recortado del todo con clip-path. */
.js .ticket-zona.animar .ticket {
    clip-path: inset(0 0 100% 0);
}

.js .ticket-zona.animar.visible .ticket {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.6s steps(22, end);
}

.js .ticket-zona.animar .sello {
    opacity: 0;
}

.js .ticket-zona.animar.visible .sello {
    animation: estampar 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 1.7s both;
}

/* ---------- Pantallas medianas y chicas ---------- */

@media (max-width: 1320px) {
    .pegatina {
        left: -16px;
    }
}

@media (max-width: 1100px) {
    .ventana-cuerpo {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .app-derecha {
        display: none;
    }

    .notas,
    .pilares,
    .cifras-rejilla {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 36px;
    }

    .cifras-rejilla > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .pasos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .paso:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .paso:nth-child(2) {
        padding-right: 0;
    }

    .paso:nth-child(n + 3) {
        border-top: 1.5px solid var(--tinta);
    }

    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento-a {
        grid-column: span 2;
    }

    .bento-b,
    .bento-c,
    .bento-d,
    .bento-e,
    .bento-f,
    .bento-g {
        grid-column: span 1;
    }
}

/* Desde 1100 px la cabecera no tiene espacio para todos los enlaces: van en el menú desplegable */
@media (max-width: 1100px) {
    /* El menú desplegable necesita JavaScript para abrirse. Sin él, no hay botón de menú: los enlaces van en una
       segunda fila de la cabecera, que se desplaza de costado si no entran. */
    html:not(.js) {
        --alto-cabecera: 120px;
    }

    html:not(.js) .cabecera-fila {
        flex-wrap: wrap;
        align-content: center;
        row-gap: 10px;
    }

    html:not(.js) .navegacion {
        width: 100%;
        gap: 22px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }

    .js .boton-menu {
        display: grid;
    }

    .js .navegacion {
        position: fixed;
        top: var(--alto-cabecera);
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 20px;
        border-bottom: 2px solid var(--tinta);
        background: var(--papel);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s var(--curva), visibility 0.2s;
    }

    .js .navegacion.abierta {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .js .navegacion a:not(.boton) {
        padding: 14px 2px;
        border-bottom: 1.5px solid var(--linea);
        font-size: 1.05rem;
        background: none;
    }

    .js .navegacion .boton {
        margin-top: 16px;
        height: 50px;
    }

    .js .navegacion .navegacion-ingresar {
        padding-left: 2px;
        border-left: 0;
    }

    html:not(.js) .navegacion .navegacion-ingresar {
        padding-left: 0;
        border-left: 0;
    }

    .cabecera:has(.navegacion.abierta) {
        border-bottom-color: var(--tinta);
    }
}

@media (max-width: 900px) {
    .portada-pie,
    .cabeza-cuerpo,
    .comparacion,
    .ciclo,
    .preguntas,
    .llamado-fila {
        grid-template-columns: minmax(0, 1fr);
    }

    .portada-pie,
    .cabeza-cuerpo {
        gap: 24px;
    }

    .portada-lado {
        justify-self: start;
    }

    .bento-a {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-zona {
        margin-top: 16px;
    }
}

@media (max-width: 720px) {
    .ventana-titulo {
        visibility: hidden;
    }

    .ventana-cuerpo {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .app-lateral {
        display: none;
    }

    .app-principal {
        padding: 14px;
    }

    .app-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-captura {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-campo-ancho,
    .app-boton {
        grid-column: span 2;
    }

    .app-boton {
        justify-content: center;
    }

    .app-fila {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 0.6fr);
    }

    .app-fila span:nth-child(3),
    .app-fila span:nth-child(5),
    #demo-lista .app-fila:nth-child(n + 4) {
        display: none;
    }

    .etiqueta-precio,
    .sello-portada {
        display: none;
    }

    .pegatina {
        top: -50px;
        left: -10px;
        width: 96px;
        height: 96px;
    }

    .ventana {
        box-shadow: 6px 6px 0 var(--tinta);
    }

    .portada {
        padding-bottom: 72px;
    }

    .cinta-pista li {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .notas,
    .pilares,
    .pasos,
    .bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .notas {
        gap: 36px;
        padding-inline: 12px;
    }

    .nota {
        min-height: 0;
    }

    .nota figcaption {
        margin-top: 18px;
    }

    .paso,
    .paso:nth-child(n) {
        padding: 28px 0;
        border-left: 0;
    }

    .paso:nth-child(n + 2) {
        border-top: 1.5px solid var(--tinta);
    }

    .bento-a {
        grid-column: span 1;
    }

    .tarjeta,
    .form-sb {
        padding: 22px;
    }

    .boton {
        width: 100%;
    }

    .portada-acciones {
        flex-direction: column;
    }

    .navegacion .boton {
        width: auto;
    }

    .indicadores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .indicadores .indicador-anillo {
        grid-column: span 2;
    }

    .form-erp-campos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-erp-pestanas span:nth-child(n + 5),
    .form-erp-botones i:first-child {
        display: none;
    }

    .cifras-rejilla > div {
        padding-inline: 16px;
    }

    .acordeon details p {
        padding-right: 0;
    }

    .pie-legal {
        flex-direction: column;
    }
}

/* ---------- Movimiento reducido ---------- */

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

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

    .cinta-pista,
    .pegatina-giro,
    .teclado i.pulsa {
        animation: none !important;
    }

    .js .nota.animar {
        opacity: 1;
        transform: rotate(var(--giro));
    }

    .js .ticket-zona.animar .ticket {
        clip-path: none;
    }

    .js .ticket-zona.animar .sello {
        opacity: 0.9;
        animation: none;
    }
}
