/* -------------------------------------------------------------------------- */
/* 1. Ruleta + hero #inicio                                                   */
/* -------------------------------------------------------------------------- */
.ruleta-slide {
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.ruleta-slide.activo {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.ruleta-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.35rem;
    border: none;
    background: transparent;
    color: rgba(200, 200, 200, 0.75);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease;
}

.ruleta-btn .material-symbols-outlined {
    font-size: 2.75rem;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48;
    line-height: 1;
}

.ruleta-btn:hover {
    color: #fff;
}

.ruleta-prev {
    left: 1rem;
}

.ruleta-next {
    right: 1rem;
}

.ruleta-puntos {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    z-index: 3;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.ruleta-puntos button {
    width: 0.65rem;
    height: 0.65rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.ruleta-puntos button.activo,
.ruleta-puntos button:hover {
    background: var(--rojo-footer);
}

/* Hero + categorías: juntos ocupan exactamente la pantalla al abrir la página.
   --u escala todo según la pantalla (16:9 como la maqueta). */
#inicio.hero,
#categorias {
    --u: calc(min(1vw, 1.78vh) * 0.95);
    --cat-h: max(calc(var(--u) * 12.6), 8.5rem);
    --hero-pad: clamp(1.25rem, 3.9vw, 4rem);
}

#inicio.hero {
    --hero-rojo: #e51c21;
    --hero-linea: rgba(255, 255, 255, 0.14);
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--cat-h));
    min-height: 25rem;
    padding: 4.75rem 0 0;
    overflow: hidden;
    color: var(--blanco);
    background: #07090d;
    isolation: isolate;
}

#inicio.hero > .hero-contenido,
#inicio.hero > .hero-buscador,
#inicio.hero > .hero-garantias {
    position: relative;
    z-index: 3;
}

#inicio.hero .ruleta,
#inicio.hero .ruleta-pista,
#inicio.hero .ruleta-slide {
    position: absolute;
    inset: 0;
}

#inicio.hero .ruleta-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Capa oscura fija: el texto se lee igual sin importar la imagen */
#inicio.hero .ruleta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

#inicio.hero .ruleta-btn {
    display: none;
}

#inicio.hero .ruleta-puntos {
    left: auto;
    right: clamp(0.75rem, 1.6vw, 1.5rem);
    bottom: auto;
    top: 42%;
    z-index: 5;
    flex-direction: column;
    transform: translateY(-50%);
}

.hero-contenido {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: flex-start;
    min-height: 0;
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--u) * 0.6) var(--hero-pad) calc(var(--u) * 0.8);
}

.hero-eyebrow {
    margin: 0 0 calc(var(--u) * 0.6);
    color: var(--hero-rojo);
    font-family: var(--fuente);
    font-size: max(0.62rem, calc(var(--u) * 1.05));
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-titulo {
    margin: 0 0 calc(var(--u) * 0.8);
    font-family: "Barlow Condensed", var(--fuente-nav), sans-serif;
    font-size: max(2.2rem, calc(var(--u) * 4.5));
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 0.15rem 1.2rem rgba(0, 0, 0, 0.55);
}

.hero-titulo span {
    display: block;
}

.hero-titulo .hero-titulo-rojo {
    color: var(--hero-rojo);
}

.hero-texto {
    margin: 0 0 calc(var(--u) * 1);
    font-family: var(--fuente);
    font-size: max(0.74rem, calc(var(--u) * 1.15));
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.7);
}

.hero-texto span {
    display: block;
}

.hero-botones {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--u) * 1);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--u) * 0.7);
    padding: calc(var(--u) * 0.62) calc(var(--u) * 1.5);
    border: 1.5px solid transparent;
    border-radius: 0.4rem;
    color: #fff;
    font-family: var(--fuente);
    font-size: max(0.66rem, calc(var(--u) * 0.95));
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-btn .material-symbols-outlined {
    font-size: max(1rem, calc(var(--u) * 1.6));
    line-height: 1;
}

.hero-btn svg {
    width: max(1rem, calc(var(--u) * 1.6));
    height: max(1rem, calc(var(--u) * 1.6));
    flex: 0 0 auto;
}

.hero-btn .hero-btn-flecha {
    margin-left: calc(var(--u) * 0.8);
    font-size: max(0.95rem, calc(var(--u) * 1.4));
}

.hero-btn-rojo {
    background: var(--hero-rojo);
    border-color: var(--hero-rojo);
}

.hero-btn-rojo:hover {
    background: #c40500;
    border-color: #c40500;
}

.hero-btn-borde {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-btn-borde:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Buscador "Encuentra tu inyector" */
.hero-buscador {
    width: calc(100% - 2 * var(--hero-pad));
    margin: 0 auto calc(var(--u) * 0.9);
    padding: calc(var(--u) * 0.7) calc(var(--u) * 1.1) calc(var(--u) * 0.35);
    border: 1px solid var(--hero-linea);
    border-radius: 0.5rem;
    background: rgba(8, 9, 12, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-buscador-fila {
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr)) minmax(8rem, 17%);
    align-items: center;
    gap: calc(var(--u) * 0.9);
}

.hero-buscador-titulo {
    margin: 0 calc(var(--u) * 0.6) 0 calc(var(--u) * 0.1);
    font-family: var(--fuente);
    font-size: max(0.7rem, calc(var(--u) * 1.15));
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-campo {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: max(2rem, calc(var(--u) * 2.7));
    box-sizing: border-box;
    border: 1px solid #2c2f36;
    border-radius: 0.35rem;
    background: #121418;
}

.hero-campo:focus-within {
    border-color: var(--hero-rojo);
}

.hero-campo > .material-symbols-outlined {
    flex: 0 0 auto;
    margin-left: calc(var(--u) * 0.8);
    color: rgba(255, 255, 255, 0.8);
    font-size: max(1rem, calc(var(--u) * 1.3));
    pointer-events: none;
}

.hero-campo select,
.hero-campo input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 calc(var(--u) * 1);
    border: 0;
    outline: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--fuente);
    font-size: max(0.72rem, calc(var(--u) * 1.05));
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.hero-campo input::placeholder {
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

.hero-campo input::-webkit-search-cancel-button {
    display: none;
}

.hero-campo select {
    padding-right: 2rem;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 0.55rem center / 1.2rem;
}

.hero-campo select option {
    background: #121418;
    color: #fff;
}

.hero-campo-lista {
    overflow: visible;
}

.hero-campo-lista.select-abierto,
.hero-campo-lista:focus-within {
    border-color: var(--hero-rojo);
}

.hero-campo-lista select {
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-lista {
    position: fixed;
    z-index: 2000;
    max-height: 12.5rem;
    margin: 0;
    padding: 0.2rem 0;
    overflow-x: auto;
    overflow-y: auto;
    box-sizing: border-box;
    list-style: none;
    border: 1px solid var(--hero-rojo);
    border-radius: 0.35rem;
    background: #121418;
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.45);
    scrollbar-width: thin;
    scrollbar-color: #5c616a #121418;
}

.hero-lista[hidden] {
    display: none;
}

.hero-lista li {
    padding: 0.45rem 0.75rem;
    font-family: var(--fuente);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
}

.hero-lista li:hover,
.hero-lista li[aria-selected="true"] {
    background: #1c222c;
}

.hero-buscador-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--u) * 0.5);
    height: max(2rem, calc(var(--u) * 2.7));
    padding: 0 calc(var(--u) * 1.2);
    border: 0;
    border-radius: 0.35rem;
    background: var(--hero-rojo);
    color: #fff;
    font-family: var(--fuente);
    font-size: max(0.74rem, calc(var(--u) * 1.1));
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-buscador-btn:hover {
    background: #c40500;
}

.hero-buscador-btn .material-symbols-outlined {
    font-size: max(1rem, calc(var(--u) * 1.5));
}

.hero-buscador-nota {
    margin: calc(var(--u) * 0.4) 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--fuente);
    font-size: max(0.58rem, calc(var(--u) * 0.72));
}

/* Barra de garantías */
.hero-garantias {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: calc(var(--u) * 0.9) var(--hero-pad);
    list-style: none;
    border-top: 1px solid var(--hero-linea);
    background: rgba(5, 6, 8, 0.92);
}

.hero-garantias li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--u) * 0.9);
    padding: 0 calc(var(--u) * 0.7);
    border-left: 1px solid var(--hero-linea);
}

.hero-garantias li:first-child {
    border-left: 0;
}

.hero-garantias .material-symbols-outlined {
    flex: 0 0 auto;
    color: var(--hero-rojo);
    font-size: max(1.6rem, calc(var(--u) * 2.7));
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48;
}

.hero-garantias p {
    margin: 0;
    font-family: var(--fuente);
    text-transform: uppercase;
    line-height: 1.35;
}

.hero-garantias strong,
.hero-garantias p span {
    display: block;
}

.hero-garantias strong {
    font-size: max(0.6rem, calc(var(--u) * 0.88));
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-garantias p span {
    color: rgba(255, 255, 255, 0.62);
    font-size: max(0.54rem, calc(var(--u) * 0.74));
    font-weight: 500;
}

/* Categorías */
#categorias {
    display: flex;
    flex-direction: column;
    height: var(--cat-h);
    padding: calc(var(--u) * 1.3) var(--hero-pad) calc(var(--u) * 1.1);
    overflow: hidden;
    background: #f5f6f8;
    color: #111;
    font-family: var(--fuente);
}

.cat-cabecera,
.cat-grid {
    width: 100%;
    margin: 0 auto;
}

.cat-cabecera {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: calc(var(--u) * 0.9);
}

.cat-titulo {
    display: flex;
    align-items: center;
    gap: calc(var(--u) * 1.2);
    margin: 0;
    font-family: var(--fuente-nav);
    font-size: max(0.85rem, calc(var(--u) * 1.65));
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cat-titulo::after {
    content: "";
    width: calc(var(--u) * 3.2);
    height: 2px;
    background: var(--rojo-footer);
}

.cat-ver-todas {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--rojo-footer);
    font-size: max(0.62rem, calc(var(--u) * 0.95));
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
}

.cat-ver-todas .material-symbols-outlined {
    font-size: max(0.95rem, calc(var(--u) * 1.3));
}

.cat-ver-todas:hover {
    text-decoration: underline;
}

.cat-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(var(--u) * 0.9);
}

.cat-card {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #15171b;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover,
.cat-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.28);
    outline: none;
}

.cat-card > img,
.cat-multi {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cat-card > img {
    object-fit: cover;
}

.cat-multi {
    display: flex;
    background: #fff;
}

.cat-multi img {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    padding: 0.35rem;
    object-fit: contain;
    background: #fff;
}

.cat-multi img[src*="denso"] {
    background: #fff;
}

.cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85));
}

.cat-nombre {
    position: absolute;
    left: calc(var(--u) * 0.9);
    bottom: calc(var(--u) * 0.7);
    z-index: 1;
    font-size: max(0.64rem, calc(var(--u) * 0.95));
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cat-flecha {
    position: absolute;
    right: calc(var(--u) * 0.7);
    bottom: calc(var(--u) * 0.6);
    z-index: 1;
    color: var(--rojo-footer);
    font-size: max(1rem, calc(var(--u) * 1.4));
}

/* Tablet / pantallas angostas: flujo normal, sin altura fija */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
    #inicio.hero,
    #categorias {
        --u: 1rem;
        --cat-h: auto;
    }

    #inicio.hero {
        height: auto;
        min-height: 0;
    }

    #categorias {
        height: auto;
        padding-top: 1.75rem;
        padding-bottom: 2rem;
    }

    .hero-contenido {
        padding-top: 1.75rem;
        padding-bottom: 1.5rem;
    }

    .hero-buscador-fila {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-buscador-titulo,
    .hero-buscador-btn {
        grid-column: 1 / -1;
    }

    .hero-garantias {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem;
        padding-top: 1.1rem;
        padding-bottom: 1.4rem;
    }

    .hero-garantias li,
    .hero-garantias li:first-child {
        justify-content: flex-start;
        gap: 0.7rem;
        padding: 0.8rem 0.9rem;
        border: 1px solid var(--hero-linea);
        border-radius: 0.6rem;
        background: rgba(255, 255, 255, 0.04);
    }

    .hero-garantias li:nth-child(5) {
        grid-column: auto;
    }

    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .cat-card {
        aspect-ratio: 1.9 / 1;
    }

    /* Sin puntitos del carrusel (la imagen sigue rotando sola) */
    #inicio.hero .ruleta-puntos {
        display: none;
    }

    /* Sin flechas en tarjetas ni en "Ver todas" */
    .cat-card > .cat-flecha,
    .cat-ver-todas .material-symbols-outlined {
        display: none;
    }
}

/* Sin flechas rojas en las tarjetas cuando la ventana no es muy ancha.
   (Selector reforzado: la fuente de íconos de Google se carga después y pisaba el display.) */
@media (max-width: 1280px) {
    .cat-card > .cat-flecha {
        display: none;
    }
}

/* Celular */
@media (max-width: 768px) {
    #inicio.hero {
        padding-top: 3.75rem;
    }

    #inicio.hero .ruleta::after {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.75));
    }

    #inicio.hero .ruleta-puntos {
        top: 9rem;
    }

    .hero-contenido {
        padding-top: 1.5rem;
        padding-bottom: 1.25rem;
    }

    .hero-eyebrow {
        margin-bottom: 0.7rem;
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .hero-titulo {
        margin-bottom: 0.9rem;
        font-size: clamp(2.5rem, 12.5vw, 3.4rem);
    }

    .hero-texto {
        margin-bottom: 1.3rem;
        font-size: 0.88rem;
    }

    .hero-botones {
        width: 100%;
        flex-direction: column;
        gap: 0.6rem;
    }

    .hero-btn {
        justify-content: flex-start;
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.78rem;
    }

    .hero-btn .hero-btn-flecha {
        margin-left: auto;
    }

    /* Buscador "Encuentra tu inyector": tarjeta compacta */
    .hero-buscador {
        padding: 1rem;
        border-radius: 0.7rem;
        margin-bottom: 1.25rem;
    }

    .hero-buscador-fila {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .hero-buscador-titulo {
        margin: 0 0 0.15rem;
        font-size: 0.85rem;
    }

    .hero-campo:last-of-type {
        grid-column: 1 / -1;
    }

    .hero-campo {
        height: 2.6rem;
    }

    .hero-campo select,
    .hero-campo input {
        padding-left: 0.6rem;
        font-size: 0.8rem;
    }

    .hero-campo > .material-symbols-outlined {
        margin-left: 0.7rem;
        font-size: 1.1rem;
    }

    .hero-buscador-btn {
        height: 2.7rem;
        font-size: 0.85rem;
    }

    .hero-buscador-nota {
        margin-top: 0.7rem;
        font-size: 0.68rem;
        line-height: 1.4;
    }

    /* Garantías: tarjetas en 2 columnas, la última a todo el ancho */
    .hero-garantias {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .hero-garantias li,
    .hero-garantias li:first-child {
        padding: 0.7rem 0.75rem;
        gap: 0.6rem;
    }

    .hero-garantias li:nth-child(5) {
        grid-column: 1 / -1;
    }

    .hero-garantias .material-symbols-outlined {
        font-size: 1.7rem;
    }

    .hero-garantias strong {
        font-size: 0.7rem;
    }

    .hero-garantias p span {
        font-size: 0.62rem;
    }

    /* Categorías: 2 x 2 */
    #categorias {
        padding-top: 1.5rem;
        padding-bottom: 1.75rem;
    }

    .cat-cabecera {
        margin-bottom: 0.9rem;
    }

    .cat-titulo {
        gap: 0.7rem;
        font-size: 0.95rem;
    }

    .cat-titulo::after {
        width: 1.6rem;
    }

    .cat-ver-todas {
        font-size: 0.62rem;
    }

    .cat-grid {
        gap: 0.7rem;
    }

    .cat-card {
        aspect-ratio: 1.35 / 1;
    }

    .cat-nombre {
        left: 0.7rem;
        bottom: 0.65rem;
        font-size: 0.72rem;
    }

    .cat-flecha {
        right: 0.55rem;
        bottom: 0.55rem;
        font-size: 1.1rem;
    }
}

/* -------------------------------------------------------------------------- */
/* 2. Ventas — lo más vendido (3 ruletas compactas)                          */
/* -------------------------------------------------------------------------- */
#ventas {
    background: #000;
    color: #fff;
    padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
    text-align: center;
}

#ventas h1 {
    margin: 0 0 2.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ventas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.productos-principales {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
}

.ruleta-sm {
    position: relative;
    width: 100%;
    max-width: 18rem;
    margin-inline: auto;
    padding-bottom: 1.75rem;
}

.ruleta-sm .ruleta-pista {
    position: relative;
    width: 100%;
}

.ruleta-sm .ruleta-slide {
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.ruleta-sm .ruleta-slide.activo {
    position: relative;
}

.producto-media {
    width: 100%;
    aspect-ratio: 1;
    max-width: 18rem;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.producto-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ruleta-sm .ruleta-btn {
    top: calc((100% - 1.75rem) / 2);
    transform: translateY(-50%);
    padding: 0.15rem;
    color: #9a9a9a;
}

.ruleta-sm .ruleta-btn:hover {
    color: #6b6b6b;
}

.ruleta-sm .ruleta-btn .material-symbols-outlined {
    font-size: 1.65rem;
}

.ruleta-sm .ruleta-prev {
    left: 0.45rem;
}

.ruleta-sm .ruleta-next {
    right: 0.45rem;
}

.ruleta-sm .ruleta-puntos {
    bottom: 0;
    gap: 0.4rem;
}

.ruleta-sm .ruleta-puntos button {
    width: 0.42rem;
    height: 0.42rem;
}

.producto-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    min-height: 2.35rem;
    margin: 0;
    padding: 0.55rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: var(--rojo-footer);
    color: #fff;
    font-family: var(--fuente);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.producto-cat:hover {
    filter: brightness(1.08);
}

.ventas-tagline {
    margin: 2.75rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* 3. Maquinaria — visor 3D + barra de despiece                              */
/* -------------------------------------------------------------------------- */
#maquinaria {
    --maq-radius: 0.9rem;
    background: #fff;
    color: #111;
    padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 3.25rem;
    text-align: center;
}

#maquinaria h2 {
    margin: 0 0 2rem;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maq-visor {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: min(100%, 960px);
    margin: 0 auto;
}

.maq-visor-escena {
    position: relative;
    height: min(56vw, 500px);
    overflow: hidden;
    border-radius: var(--maq-radius);
    background: radial-gradient(ellipse at 50% 58%, #f2f2f2 0%, #fff 72%);
}

.maq-visor-escena canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}

.maq-visor-escena canvas:active {
    cursor: grabbing;
}

.maq-visor-escena canvas:focus-visible {
    outline: 2px solid var(--rojo);
    outline-offset: -4px;
}

.maq-visor-estado {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    margin: 0;
    pointer-events: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.maq-visor-estado[hidden] {
    display: none;
}

.maq-explode {
    width: min(100%, 28rem);
    margin: 0 auto;
}

.maq-explode-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.maq-explode-label output {
    color: var(--rojo);
    font-variant-numeric: tabular-nums;
}

.maq-explode input[type="range"] {
    width: 100%;
    margin: 0.7rem 0 0.45rem;
    accent-color: var(--rojo);
    cursor: pointer;
}

.maq-explode-ticks {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maq-tagline {
    margin: 2rem auto 0;
    max-width: 52rem;
    color: #111;
    font-size: clamp(0.72rem, 1.35vw, 0.9rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.55;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* 4. Información — grid 2x2 sobre escabadora.png                            */
/* -------------------------------------------------------------------------- */
#informacion {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, 640px);
    padding: 3.5rem clamp(0.75rem, 3vw, 2rem);
    background:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)),
        url("src/imagenesPrueba/nuevasimagenes/escabadora_2560x1440.jpg") center / cover no-repeat;
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
    width: min(100%, 920px);
}

.info-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 5.5rem;
    padding-left: 2.75rem;
}

.info-ico {
    position: absolute;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.1rem;
    height: 5.1rem;
    border: 0.28rem solid #fff;
    border-radius: 50%;
    background: var(--rojo-footer);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.info-ico .material-symbols-outlined {
    font-size: 2.15rem;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48;
    color: #111;
}

.info-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 5.1rem;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border-radius: 0.85rem;
    background: rgba(20, 20, 20, 0.78);
    text-align: left;
    text-transform: uppercase;
}

.info-texto h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.info-texto p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.58rem, 1vw, 0.68rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

/* -------------------------------------------------------------------------- */
/* Media queries — páginas de inicio                                     */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .ventas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .producto-cat {
        min-width: 9rem;
        font-size: 0.7rem;
    }

    #informacion {
        min-height: 560px;
        padding: 2.75rem 1rem;
    }

    .info-grid {
        gap: 1.35rem 1.25rem;
    }

    .info-ico {
        width: 4.4rem;
        height: 4.4rem;
    }

    .info-ico .material-symbols-outlined {
        font-size: 1.85rem;
    }

    .info-card {
        padding-left: 2.35rem;
    }

    .info-texto {
        min-height: 4.4rem;
        padding: 0.7rem 0.85rem 0.7rem 2.55rem;
    }

    #maquinaria {
        --maq-radius: 0.8rem;
        padding: 3rem clamp(1.1rem, 3vw, 2rem) 2.75rem;
    }

    .maq-visor-escena {
        height: min(62vw, 420px);
    }

    #maquinaria h2 {
        margin-bottom: 1.6rem;
    }

    .maq-tagline {
        margin-top: 1.75rem;
    }
}

@media (max-width: 768px) {
    .ruleta-btn .material-symbols-outlined {
        font-size: 2.25rem;
    }

    .ventas-grid {
        grid-template-columns: 1fr;
        max-width: 22rem;
        gap: 2.5rem;
    }

    #maquinaria {
        --maq-radius: 0.75rem;
        padding: 2.75rem 1.1rem 2.5rem;
    }

    .maq-visor-escena {
        height: 340px;
    }

    #maquinaria h2 {
        margin-bottom: 1.35rem;
        letter-spacing: 0.1em;
    }

    .maq-tagline {
        margin-top: 1.5rem;
        letter-spacing: 0.08em;
    }

    .producto-media {
        max-width: 16rem;
    }

    .ruleta-sm .ruleta-btn .material-symbols-outlined {
        font-size: 1.45rem;
    }

    #informacion {
        min-height: auto;
        padding: 2.5rem 0.85rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        width: min(100%, 26rem);
        gap: 1.35rem;
    }
}

@media (max-width: 480px) {
    .ruleta-btn .material-symbols-outlined {
        font-size: 2rem;
    }

    .ruleta-sm .ruleta-btn .material-symbols-outlined {
        font-size: 1.3rem;
    }

    #maquinaria {
        --maq-radius: 0.65rem;
        padding: 2.25rem 0.85rem 2rem;
    }

    .maq-visor-escena {
        height: 300px;
    }

    #maquinaria h2 {
        margin-bottom: 1.1rem;
        font-size: 1.1rem;
    }

    .maq-tagline {
        margin-top: 1.25rem;
        letter-spacing: 0.06em;
        line-height: 1.5;
    }
}

#recommended-products .ventas-loading,
#recommended-products .ventas-error {
    grid-column: 1/-1;
    padding: 2rem;
    color: rgba(255, 255, 255, .8)
}

.recommended-product-card {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border-radius: 1rem;
    padding: .8rem;
    transition: transform .18s ease, background .18s ease
}

.recommended-product-card:hover,
.recommended-product-card:focus-visible {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .06);
    outline: none
}

.recommended-product-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35)
}

.recommended-product-card .producto-media {
    border-radius: .75rem
}

.recommended-product-info {
    width: 100%;
    display: grid;
    gap: .35rem;
    text-align: left
}

.recommended-product-name {
    font-size: 1rem;
    line-height: 1.3;
    color: #fff
}

.recommended-product-meta {
    font-size: .76rem;
    color: rgba(255, 255, 255, .65)
}

.recommended-product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff
}

.recommended-product-regular {
    margin-left: .45rem;
    font-size: .78rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, .55)
}

.recommended-product-card .producto-cat {
    align-self: flex-start;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    cursor: pointer
}