.wrap-marca img {
    height: 60px !important
}

.viewAll {
    white-space: normal !important
}

.textoTachado {
    text-decoration: line-through !important
}

.precioRebaja {
    color: #e80000
}

.MHLogo {
    max-height: 60px
}

.MHLogoSmall {
    max-height: 30px
}

.pointer {
    cursor: pointer !important
}

.noWrap {
    white-space: nowrap
}

.sel-variante li svg {
    border-width: 1px !important;
    border: 0
}

.sel-variante li.active svg {
    border: solid
}

.divCollapse {
    flex-basis: auto;
    flex-grow: 1;
    align-items: center
}

.iconosCabecera {
    top: 13px;
    left: auto;
    right: 20px
}

@media (max-width:450px) {
    .quitarPadding {
        padding: 0
    }
}

@media (min-width:768px) {
    .iconosCabecera {
        top: 25px;
        left: auto;
        right: 10px
    }
}

.numeroItems {
    background-color: red;
    border-radius: 50%;
    bottom: 0;
    color: #fff;
    font-size: .8em;
    height: 15px;
    line-height: 15px;
    position: absolute;
    right: -16%;
    text-align: center;
    width: 15px;
    top: 0
}

@media (min-width:993px) {
    .numeroItems {
        background-color: red;
        border-radius: 50%;
        bottom: 0;
        color: #fff;
        font-size: .8em;
        height: 15px;
        line-height: 15px;
        position: absolute;
        right: 8px;
        text-align: center;
        width: 15px;
        top: 25px
    }
}

@media (min-width:1340px) {
    .container {
        max-width: 1280px
    }
}

@media (min-width:1390px) {
    .container {
        max-width: 1330px
    }
}

@media (min-width:1440px) {
    .container {
        max-width: 1380px
    }
}

@media (min-width:1490px) {
    .container {
        max-width: 1430px
    }
}

@media (min-width:1540px) {
    .container {
        max-width: 1480px
    }
}

.img-fluid {
    width: 100%
}

.img-card-megamenu {
    max-height: 150px;
    max-width: 150px
}

#navbar .megamenu {
    overflow-y: auto !important
}

.noClickable {
    cursor: default !important
}

.c-default {
    cursor: default !important
}

.rotar90 {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg)
}

.floatLeft {
    float: left
}

.mr10 {
    margin-right: 10px
}

[v-cloak] {
    display: none;
}

:root {
    --header-offset: 0px; /* la rellenaremos por JS si el header es fijo */
}

/* Contenedor */
.cmp-hero {
    position: relative;
    min-height: var(--hero-min-h, 60vh);
    display: flex; /* para centrar cuando no-upscale */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* por si la imagen se desborda en cover */
    /******/
    position: relative;
    display: flex; /* centrar overlay/contenido */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* recorte del cover */
    flex: 0 0 auto; /* NUEVO: no shrink en el flex padre */
    width: 100%; /* opcional pero útil */
}

.carousel .carousel-item {
    min-height: 240px; /* ajusta a tu diseño */
}

    .carousel .carousel-item img {
        max-height: 300px;
        object-fit: contain;
    }

/* Espaciado entre botones del editor */
.btn-editor-cta {
    margin: .25rem .375rem;
}

/* === Botón “editor” dentro del overlay del hero (mismo look que en Tiny) === */
a.btn-editor-cta {
    display: inline-block;
    padding: .5rem 1rem;
    border: 2px solid currentColor;
    background: transparent;
    color: inherit !important; /* toma el color del overlay (blanco por defecto) */
    text-decoration: none !important;
    border-radius: .25rem;
    line-height: 1.25;
    position: relative;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, padding .2s ease;
}

/* Si además viene con la clase .btn (Bootstrap), forzamos nuestros estilos */
a.btn.btn-editor-cta {
    background-color: transparent !important;
    border-color: currentColor !important;
    color: inherit !important;
    font-size: inherit !important;
}

    /* Hover: fondo grisáceo y “ocultar” el borde; mismo efecto que en el editor */
    a.btn-editor-cta:hover,
    a.btn-editor-cta:focus,
    a.btn.btn-editor-cta:hover,
    a.btn.btn-editor-cta:focus {
        background: #D4D0CF !important;
        border-color: transparent !important;
        outline: none;
    }

        /* Flecha “>” en hover para reforzar CTA */
        a.btn-editor-cta:hover::after,
        a.btn-editor-cta:focus::after {
            content: " >";
            font-weight: 700;
            margin-left: .35rem;
        }

/* Separación entre varios botones del editor */
.btn-editor-cta {
    margin: .25rem .375rem;
}


/* Base */
.cmp-hero__bg {
    display: block;
}

    /* Modo COVER (rellenar contenedor) */
    .cmp-hero__bg.cover {
        position: absolute;
        inset: 0; /* top/right/bottom/left: 0 */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Modo NO UPSCALE (respetar tamaño natural, sin estirar) */
    .cmp-hero__bg.no-upscale {
        position: relative; /* que participe en el flujo del flex container */
        width: auto; /* ancho natural */
        max-width: 100%; /* pero que reduzca si el contenedor es estrecho */
        height: auto; /* mantiene proporción */
    }

/* Overlay que centra el contenido */
.cmp-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
    /* Truco: deja que el enlace “stretched” se pulse fuera del texto,
     pero permite clics dentro del bloque de texto/botones */
    pointer-events: none;
}

    /* Título como link: siempre blanco, también en :hover / :visited / :focus */
    .cmp-hero__overlay .cmp-hero__link,
    .cmp-hero__overlay .cmp-hero__link:hover,
    .cmp-hero__overlay .cmp-hero__link:focus,
    .cmp-hero__overlay .cmp-hero__link:focus-visible,
    .cmp-hero__overlay .cmp-hero__link:visited {
        color: #fff !important;
        text-decoration: none;
    }

    .cmp-hero__overlay .text-muted {
        color: #fff !important;
    }

/* Sombra opcional sobre el texto */
.cmp-hero__overlay--shadow {
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* Enlace que hace clic toda la tarjeta/hero por detrás */
.cmp-hero .stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ----- BLOQUE INTERIOR (el que se centra) ----- */
.cmp-hero__overlay__inner {
    display: inline-block; /* permite centrar el bloque con justify-content */
    max-width: 960px;
    width: auto; /* NO 100%: así el bloque “encoge” a su contenido */
    margin: 0 auto; /* redundante con justify-center, pero OK */
    pointer-events: auto; /* reactiva clics en botones/enlaces */
    text-align: left; /* base: izquierda */
}

    /* Normaliza márgenes de bloques de texto */
    .cmp-hero__overlay__inner h1,
    .cmp-hero__overlay__inner h2,
    .cmp-hero__overlay__inner h3,
    .cmp-hero__overlay__inner p {
        display: block;
        margin: .25rem 0;
    }

    .cmp-hero__overlay__inner h1 {
        margin: 0 0 .5rem;
    }

    /* Espaciado entre botones del editor */
    .cmp-hero__overlay__inner .btn-editor-cta {
        margin: .25rem .375rem;
    }

    /* Si tu HTML trae clases del editor (p.ej. Divi) que fuerzan centrado,
   hereda del contenedor para que respete tu elección (izq por defecto)
   y SÓLO si esas clases te pisan el alineado. */
    .cmp-hero__overlay__inner .et_pb_module_header,
    .cmp-hero__overlay__inner .et_pb_fullwidth_header_subhead {
        text-align: inherit !important;
    }

    /* === Botón “editor” dentro del overlay del hero (mismo look que en Tiny) === */
    .cmp-hero__overlay__inner a.btn-editor-cta {
        display: inline-block;
        padding: .5rem 1rem;
        border: 2px solid currentColor;
        background: transparent;
        color: inherit !important; /* toma el color del overlay (blanco por defecto) */
        text-decoration: none !important;
        border-radius: .25rem;
        line-height: 1.25;
        position: relative;
        transition: background-color .2s ease, color .2s ease, border-color .2s ease, padding .2s ease;
    }

    /* Si además viene con la clase .btn (Bootstrap), forzamos nuestros estilos */
    .cmp-hero__overlay__inner a.btn.btn-editor-cta {
        background-color: transparent !important;
        border-color: currentColor !important;
        color: inherit !important;
        font-size: inherit !important;
    }

        /* Hover: fondo grisáceo y “ocultar” el borde; mismo efecto que en el editor */
        .cmp-hero__overlay__inner a.btn-editor-cta:hover,
        .cmp-hero__overlay__inner a.btn-editor-cta:focus,
        .cmp-hero__overlay__inner a.btn.btn-editor-cta:hover,
        .cmp-hero__overlay__inner a.btn.btn-editor-cta:focus {
            background: #D4D0CF !important;
            border-color: transparent !important;
            outline: none;
        }

            /* Flecha “>” en hover para reforzar CTA */
            .cmp-hero__overlay__inner a.btn-editor-cta:hover::after,
            .cmp-hero__overlay__inner a.btn-editor-cta:focus::after {
                content: " >";
                font-weight: 700;
                margin-left: .35rem;
            }    

    /* Separación entre varios botones del editor */
    .cmp-hero__overlay__inner .btn-editor-cta {
        margin: .25rem .375rem;
    }

/* el link del título se ve como texto */
.cmp-hero__link {
    color: inherit;
    text-decoration: none;
}

    /* opcional: subrayado solo cuando se navega con teclado */
    .cmp-hero__link:hover,
    .cmp-hero__link:focus-visible {
        text-decoration: underline;
        outline: none;
    }

.cmp-hero__overlay__inner table {
    direction: ltr !important;
}

    .cmp-hero__overlay__inner table,
    .cmp-hero__overlay__inner table tbody,
    .cmp-hero__overlay__inner table tr,
    .cmp-hero__overlay__inner table td {
        direction: ltr !important;
    }