/* =============================================================
   Valver - Sistema de diseno "2027" (todo el sitio)
   Cabecera de cristal fija, barra inferior en movil, pie en
   tarjeta, tipografia y movimiento sutil. Solo estilos: los
   componentes existentes se reutilizan.
   Colores: --colorCorporativo (personalizacion.css).
   ============================================================= */
:root {
    --h27-ink: #14262a;
    --h27-muted: #5c6f73;
    --h27-line: rgba(20, 38, 42, .10);
    --h27-glass: rgba(255, 255, 255, .80);
    --h27-tint: #eef6f7;
    --h27-radius: 28px;
    --h27-shadow: 0 10px 30px rgba(20, 50, 55, .12);
    --h27-header-top: 12px;
}

/* ---------- Base global ---------- */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    background: #f4f7f8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: color-mix(in srgb, var(--colorCorporativo, #299BA5) 28%, transparent);
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--colorCorporativo, #299BA5) 45%, transparent) !important;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Transicion suave entre paginas (navegadores que lo soportan) */
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}

/* =============================================================
   CABECERA
   ============================================================= */
.h27-header {
    position: fixed;
    top: var(--h27-header-top);
    left: 16px;
    right: 16px;
    max-width: 1440px;
    margin: 0 auto;
    z-index: 1000;
}

.h27-pill {
    background: var(--h27-glass);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: var(--h27-radius);
    box-shadow: var(--h27-shadow);
    transition: box-shadow .3s ease, background .3s ease;
}

.h27-compact .h27-pill {
    box-shadow: 0 8px 26px rgba(20, 50, 55, .18);
    background: rgba(255, 255, 255, .88);
}

/* Reserva de espacio: .cabecera recibe min-height desde design-2027.js */
.cabecera {
    position: relative;
}

/* ---- Franja superior (redes, usuario, idioma): se pliega al hacer scroll ---- */
.h27-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 22px 0;
    max-height: 56px;
    overflow: visible;
    font-size: 12px;
    color: var(--h27-muted);
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}

.h27-compact .h27-topbar {
    max-height: 0;
    padding-top: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.h27-topbar .follow-text,
.h27-topbar .separator {
    color: var(--h27-muted);
}

.h27-topbar .social-link-small {
    display: inline-flex;
    margin: 0 0 0 8px;
    padding: 0;
    list-style: none;
}

.h27-topbar .social-link-small a {
    color: var(--h27-muted);
}

.h27-topbar .social-link-small a:hover {
    color: var(--colorCorporativo);
}

.h27-topbar-social {
    display: flex;
    align-items: center;
}

.h27-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h27-topbar-user a,
.h27-topbar-user span {
    color: var(--h27-ink);
}

/* Pildora de usuario: sobre cristal claro va tintada, no blanca */
.h27-header #user-options {
    background: var(--h27-tint);
    border-color: transparent;
    padding: 3px 12px 3px 6px !important;
    font-size: 13px;
}

.h27-header #user-options:hover,
.h27-header #user-options.active-menu-open {
    border-color: var(--colorCorporativo);
}

/* El texto heredaba el blanco de la cabecera antigua: sobre cristal claro va en tinta */
.h27-header #user-options,
.h27-header #language-options {
    color: var(--h27-ink) !important;
}

.h27-header #user-options > i:first-child {
    display: none !important;   /* el avatar ya lo dibuja el ::before de la base */
}

.h27-header #user-options .fa-chevron-down,
.h27-header #language-options .fa-chevron-down {
    color: var(--h27-muted) !important;
    font-size: 11px !important;
}

.h27-header #language-options:hover {
    color: var(--colorCorporativo) !important;
}

/* ---- Fila principal ---- */
.h27-main {
    display: grid;
    grid-template-columns: auto auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 6px 18px;
    padding: 10px 14px 10px 18px;
}

.h27-logo {
    display: block;
    line-height: 0;
}

.h27-logo img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    transition: height .3s ease;
}

.h27-compact .h27-logo img {
    height: 40px;
}

/* ---- Menu dentro de la pildora ---- */
.h27-menu .navigation-menu-area {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 0;
}

.h27-menu .navigation-menu-area .container-fluid,
.h27-menu .navigation-menu-area .row,
.h27-menu .navigation-menu-area [class*="col-"] {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none;
}

.h27-menu .main-menu nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
}

.h27-menu .main-menu nav > ul > li > a {
    padding: 0 16px;
    line-height: 38px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;   /* "Todas las categorias" se partia en dos lineas al ser la primera entrada */
    color: var(--h27-ink) !important;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}

.h27-menu .main-menu nav > ul > li:hover > a {
    background: var(--h27-tint);
    color: var(--colorCorporativo) !important;
}

/* "Todos los productos": boton principal */
.h27-menu .main-menu nav > ul > li:first-child > a {
    background: var(--h27-ink);
    color: #fff !important;
}

.h27-menu .main-menu nav > ul > li:first-child:hover > a {
    background: var(--colorCorporativo);
    color: #fff !important;
}

/* Desplegable del menu: tarjeta redondeada */
.h27-menu .main-menu .sub-menu.categorias {
    border-radius: 20px;
    margin-top: 14px;
    box-shadow: 0 18px 44px rgba(20, 50, 55, .22);
}

/* ---- Buscador ---- */
.h27-search.search-bar {
    border: 1px solid var(--h27-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(20, 38, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.h27-search.search-bar:focus-within {
    border-color: var(--colorCorporativo);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--colorCorporativo, #299BA5) 15%, transparent);
}

.h27-search.search-bar form input {
    height: 44px;
    padding: 0 56px 0 22px;
    background: transparent;
    color: var(--h27-ink);
    border-radius: 999px;
}

.h27-search.search-bar form input::placeholder {
    color: #8a9a9d;
}

.h27-search.search-bar form button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 34px;
    height: 34px;
    padding: 0;
    line-height: 34px;
    font-size: 15px;
    text-align: center;
    border-radius: 50%;
    background: var(--colorCorporativo);
    color: #fff;
    transition: transform .2s ease, background .2s ease;
}

.h27-search.search-bar form button:hover {
    background: var(--h27-ink);
    transform: scale(1.06);
}

/* ---- Acciones (telefono + carrito) ---- */
.h27-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h27-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--h27-ink);
}

.h27-phone > i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--h27-tint);
    color: var(--colorCorporativo);
    font-size: 17px;
    transition: background .2s ease, color .2s ease;
}

.h27-phone:hover > i {
    background: var(--colorCorporativo);
    color: #fff;
}

.h27-phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.h27-phone-text small {
    font-size: 11px;
    color: var(--h27-muted);
}

.h27-phone-text strong {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.h27-cart {
    display: flex;
    align-items: center;
}

/* =============================================================
   Escritorio medio: se oculta el texto del telefono
   ============================================================= */
@media (min-width: 992px) and (max-width: 1279px) {
    .h27-phone-text { display: none; }
    .h27-main { gap: 6px 12px; }
}

/* =============================================================
   MOVIL / TABLET (< 992px): cabecera de dos filas + barra inferior
   ============================================================= */
@media (max-width: 991px) {
    :root { --h27-header-top: 8px; }

    .h27-header {
        left: 8px;
        right: 8px;
    }

    .h27-pill {
        border-radius: 24px;
    }

    .h27-topbar {
        padding: 6px 14px 0;
    }

    .h27-topbar-social {
        display: none;
    }

    .h27-topbar-user {
        width: 100%;
        justify-content: space-between;
    }

    .h27-main {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu logo actions"
            "search search search";
        padding: 8px 10px 10px;
        gap: 8px 10px;
    }

    .h27-menu { grid-area: menu; }
    .h27-logo { grid-area: logo; justify-self: center; }
    .h27-actions { grid-area: actions; }
    .h27-search { grid-area: search; }

    .h27-logo img { height: 40px; }
    .h27-compact .h27-logo img { height: 34px; }

    .h27-phone-text { display: none; }
    .h27-phone > i { width: 38px; height: 38px; }

    /* en movil el "menu" es el boton hamburguesa del cajon lateral (.mmm-bar) */
    .h27-menu .main-menu { display: none !important; }

    .h27-menu .mmm-bar {
        margin: 0;
        padding: 0 12px;
        height: 40px;
        min-height: 0;
        border-radius: 999px;
        background: var(--h27-ink);
        color: #fff;
    }

    .h27-menu .mmm-bar .mmm-bar__label { display: none; }

    .h27-search.search-bar form input { height: 42px; }
}

/* =============================================================
   BARRA INFERIOR (solo movil): accesos rapidos
   ============================================================= */
.h27-dock {
    display: none;
}

@media (max-width: 991px) {
    .h27-dock {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 1000;
        justify-content: space-around;
        padding: 6px;
        background: rgba(20, 38, 42, .92);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-radius: 26px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    }

    .h27-dock a,
    .h27-dock button {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 8px 4px;
        background: transparent;
        border: 0;
        border-radius: 20px;
        color: rgba(255, 255, 255, .72);
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1.1;
        transition: background .2s ease, color .2s ease, transform .15s ease;
    }

    .h27-dock i {
        font-size: 18px;
    }

    .h27-dock a:active,
    .h27-dock button:active {
        transform: scale(.94);
    }

    .h27-dock a.is-active {
        background: rgba(255, 255, 255, .14);
        color: #fff;
    }

    /* que el contenido y el pie no queden tapados por la barra */
    body {
        padding-bottom: 84px;
    }

    .scroll-top,
    #scroll-top {
        bottom: 96px !important;
    }
}

/* =============================================================
   PIE DE PAGINA: tarjeta oscura redondeada
   ============================================================= */
.footer-area {
    margin: 48px 12px 12px;
    padding: 40px 0 8px;
    background: linear-gradient(160deg, #14262a 0%, #0f1b1e 100%);
    border-radius: 32px;
    border: 0;
    color: rgba(255, 255, 255, .78);
}

.footer-area .footer-content-wrapper {
    border-top: 0 !important;
    padding-top: 8px !important;
}

.footer-area a {
    color: rgba(255, 255, 255, .78);
    transition: color .2s ease;
}

.footer-area a:hover {
    color: #fff;
}

.footer-area .footer-logo img {
    border-radius: 12px;
    max-height: 72px;
    width: auto;
}

.footer-area .footer-text-block__title,
.footer-area .montserrat-footer-widget-title {
    color: #fff;
}

.footer-area .footer-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
}

.footer-area .footer-social-icon-block a {
    transition: transform .2s ease;
}

.footer-area .footer-social-icon-block a:hover {
    transform: translateY(-3px);
}

.footer-area .copyright-text-area {
    margin-top: 12px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-area .payment-logo img {
    border-radius: 8px;
}

@media (max-width: 991px) {
    .footer-area {
        margin: 32px 8px 8px;
        border-radius: 26px;
        padding-top: 28px;
    }
}

/* ---- Boton "subir": mismo lenguaje (circulo con sombra) ---- */
.scroll-top,
#scroll-top {
    border-radius: 50% !important;
    box-shadow: 0 8px 20px rgba(20, 50, 55, .25);
}

/* ---- Cajon de categorias del movil: cabecera en el color de marca ---- */
.mmm-drawer__header {
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoOscuro, #1c7881) 100%) !important;
}

.mmm-drawer {
    border-radius: 0 24px 24px 0;
}

/* =============================================================
   LISTADOS DE PRODUCTO (#listado)
   ============================================================= */
#listado .shop-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 20px !important;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(20, 50, 55, .05);
}

#listado .shop-header__left,
#listado .shop-header__right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    float: none;
    width: auto;
}

#listado .shop-header__left__message {
    color: var(--h27-muted);
    font-size: 13px;
}

/* selector de vista (cuadricula / lista) como control segmentado */
#listado .grid-icons {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-right: 0 !important;
    background: var(--h27-tint);
    border-radius: 14px;
}

#listado .grid-icons button {
    width: 38px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background-color: transparent;
    color: var(--h27-muted);
    transition: background .2s ease, color .2s ease;
}

#listado .grid-icons button.active,
#listado .grid-icons button:hover {
    background-color: #fff;
    color: var(--colorCorporativo);
    box-shadow: 0 1px 4px rgba(20, 50, 55, .12);
}


#listado .shop-header .select-title {
    color: var(--h27-muted);
    font-size: 13px;
}

#listado .shop-header select {
    min-width: 170px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--h27-line);
    border-radius: 999px;
    background-color: #fff;
    color: var(--h27-ink);
    font-size: 14px;
}

#listado .shop-header select:focus {
    outline: 0;
    border-color: var(--colorCorporativo);
}

/* ---- Paginacion en pildoras ---- */
#listado .pagination-section {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin: 18px 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 13px;
    color: var(--h27-muted);
}

#listado .pagination-section .page-current-number {
    color: var(--colorCorporativo);
    font-weight: 700;
}

#listado .pagination {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#listado .pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--h27-line);
    border-radius: 999px;
    background: #fff;
    color: var(--h27-ink);
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

#listado .pagination li a:hover {
    background: var(--colorCorporativo);
    color: #fff;
    border-color: var(--colorCorporativo);
    transform: translateY(-1px);
}

/* ---- Tarjetas de articulo (cuadricula) ---- */
#tablaArticulos .single-slider-product {
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 22px;
    box-shadow: 0 2px 12px rgba(20, 50, 55, .06);
    padding: 14px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#tablaArticulos .single-slider-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(20, 50, 55, .14);
    border-color: color-mix(in srgb, var(--colorCorporativo, #299BA5) 45%, transparent);
}

#tablaArticulos .single-slider-product__image {
    background: #f4f7f8;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}

#tablaArticulos .single-slider-product__image img {
    transition: transform .5s ease;
}

#tablaArticulos .single-slider-product:hover .single-slider-product__image img {
    transform: scale(1.05);
}

#tablaArticulos .product-title {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    max-height: 3.9em;
    overflow: hidden;
}

#tablaArticulos .product-title a {
    color: var(--h27-ink);
}

#tablaArticulos .product-title a:hover {
    color: var(--colorCorporativo);
}

#tablaArticulos .product-price .main-price,
#tablaArticulos .product-price .discounted-price {
    color: var(--colorCorporativo);
    font-weight: 700;
    font-size: 18px;
}

#tablaArticulos .product-price .main-price.discounted {
    color: #9aa7aa;
    font-weight: 400;
    font-size: 13px;
    text-decoration: line-through;
}

/* boton redondo de "anadir" de la tarjeta */
#tablaArticulos .cart-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--h27-ink);
    color: #fff;
    transition: background .2s ease, transform .2s ease;
}

#tablaArticulos .cart-icon a:hover {
    background: var(--colorCorporativo);
    transform: scale(1.08);
}

/* ---- Vista de lista ---- */
#tablaArticulos.list .single-slider-product--list-view {
    display: flex;
    align-items: center;
    gap: 18px;
}

#tablaArticulos .single-slider-product--list-view__image {
    flex: 0 0 120px;
    width: 120px;
    margin-bottom: 0;
}

#tablaArticulos .single-slider-product--list-view__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
}

#tablaArticulos .single-slider-product--list-view__content__details {
    flex: 1 1 200px;
    min-width: 0;
}

#tablaArticulos .single-slider-product--list-view__content__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

#tablaArticulos .list-cart-button {
    margin: 0 !important;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--h27-ink);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    transition: background .2s ease, transform .2s ease;
}

#tablaArticulos .list-cart-button:hover {
    background: var(--colorCorporativo);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- Lateral de filtros ---- */
.page-sidebar .sidebar-widget-wrapper {
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(20, 50, 55, .05);
}

@media (max-width: 991px) {
    #listado .shop-header {
        border-radius: 18px;
        padding: 10px;
    }

    #tablaArticulos .single-slider-product--list-view {
        gap: 12px;
    }

    #tablaArticulos .single-slider-product--list-view__image {
        flex-basis: 84px;
        width: 84px;
    }

    #tablaArticulos .single-slider-product--list-view__content__actions {
        align-items: flex-start;
        width: 100%;
    }
}

#tablaArticulos .single-slider-product--list-view__image {
    align-self: flex-start;
    height: 120px;
}

#tablaArticulos .single-slider-product__image img {
    color: transparent; /* si falta la imagen, no se pinta el texto alternativo en verde */
}

@media (max-width: 991px) {
    #tablaArticulos .single-slider-product--list-view__image {
        height: 84px;
    }
}

/* Cada modo muestra solo su version de la tarjeta (la base lo resuelve con la clase del contenedor) */
#tablaArticulos.grid .list-view-product,
#tablaArticulos.grid .list-mini-view-product {
    display: none !important;
}

#tablaArticulos.list .grid-view-product {
    display: none !important;
}

#tablaArticulos .grid-view-product .single-slider-product__image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tablaArticulos .grid-view-product .single-slider-product__image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#tablaArticulos .grid-view-product .single-slider-product__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* =============================================================
   FICHA DE PRODUCTO
   ============================================================= */
.quantity-cart-wrapper {
    border-radius: 22px;
}

.quantity-cart-wrapper .product-cart-button {
    border-radius: 999px;
    min-height: 46px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.quantity-cart-wrapper .product-cart-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--colorCorporativo, #299BA5) 35%, transparent);
}

/* Movil: la compra queda siempre a mano, flotando sobre la barra inferior */
@media (max-width: 991px) {
    .quantity-cart-wrapper {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 92px;
        z-index: 999;
        margin: 0 !important;
        padding: 10px 12px;
        background: rgba(255, 255, 255, .92);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border: 1px solid var(--h27-line);
        box-shadow: 0 12px 30px rgba(20, 50, 55, .2);
    }

    .quantity-cart-wrapper > div {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    body:has(.quantity-cart-wrapper) {
        padding-bottom: 170px;
    }

    body:has(.quantity-cart-wrapper) .scroll-top,
    body:has(.quantity-cart-wrapper) #scroll-top {
        bottom: 170px !important;
    }
}

@media (max-width: 991px) {
    /* barra de compra de una sola fila: [ - cantidad + ] [ Anadir al carrito ] */
    .quantity-cart-wrapper > div {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
    }

    .quantity-cart-wrapper .quantity-wrapper {
        flex: 0 0 112px;
        width: 112px !important;
        margin: 0 !important;
    }

    .quantity-cart-wrapper .quantity-title {
        display: none;
    }

    .quantity-cart-wrapper .pro-qty {
        width: 112px !important;
        margin: 0 !important;
    }

    .quantity-cart-wrapper .pro-qty input {
        width: 100% !important;
        height: 46px;
        padding: 0 28px 0 10px;
        text-align: right;
    }

    .quantity-cart-wrapper .pro-qty br {
        display: none;
    }

    .quantity-cart-wrapper .product-cart-button {
        flex: 1 1 auto;
        width: auto !important;
        white-space: nowrap;
        padding: 0 14px;
    }
}

@media (max-width: 991px) {
    .quantity-cart-wrapper > div {
        flex-direction: row !important;
    }

    .quantity-cart-wrapper .product-cart-button {
        margin: 0 !important;
    }
}

/* Contenido editorial (imagenes e iframes fijos) no debe ensanchar la pagina en movil */
.contenido img,
.contenido iframe,
.contenido video {
    max-width: 100%;
}

.contenido img {
    height: auto;
}

.contenido iframe {
    height: auto;
    aspect-ratio: 16 / 9;
}

/* franja verde decorativa de 4 px sobre el pie (queda suelta con el pie en tarjeta) */
.footer-area::before {
    display: none !important;
}

/* =============================================================
   CARRITO (Pedido/Index)
   ============================================================= */
.modern-cart-header-title {
    text-align: center;
    margin-bottom: 24px !important;
}

.cart-main-title {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--h27-ink);
}

.cart-main-title i {
    color: var(--colorCorporativo);
    font-size: .8em;
    margin-right: 10px !important;
}

.cart-subtitle {
    color: var(--h27-muted);
}

/* ---- Tabla de escritorio: cabecera ligera y filas como tarjetas ---- */
.modern-cart-table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
}

.modern-cart-table thead th {
    background: transparent !important;
    color: var(--h27-muted) !important;
    border: 0 !important;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 14px !important;
}

.modern-cart-table tbody tr {
    background: #fff;
    box-shadow: 0 2px 12px rgba(20, 50, 55, .06);
    transition: box-shadow .2s ease;
}

.modern-cart-table tbody tr:hover {
    box-shadow: 0 8px 24px rgba(20, 50, 55, .12);
}

.modern-cart-table tbody td {
    border: 0 !important;
    vertical-align: middle;
    padding: 14px !important;
}

.modern-cart-table tbody td:first-child {
    border-radius: 18px 0 0 18px;
}

.modern-cart-table tbody td:last-child {
    border-radius: 0 18px 18px 0;
}

/* ---- Tarjetas de movil ---- */
.mobile-cart-card {
    position: relative;
    margin-bottom: 14px !important;
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 22px;
    box-shadow: 0 2px 12px rgba(20, 50, 55, .06);
    overflow: hidden;
}

.mobile-cart-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.mobile-cart-card .product-code-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--h27-tint);
    border: 0 !important;
    color: var(--h27-muted);
    font-family: Consolas, monospace;
}

.mobile-cart-card .btn-card-action,
.mobile-cart-card .btn-card-remove {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--h27-tint);
    color: var(--colorCorporativo);
    font-size: 15px;
}

.mobile-cart-card .btn-card-remove {
    background: #fdecec;
    color: #c0392b;
}

.mobile-cart-card .card-body {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 14px 14px !important;
}

.mobile-cart-card .card-image {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: #f4f7f8;
    overflow: hidden;
}

.mobile-cart-card .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    color: transparent;
}

.mobile-cart-card .card-details {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-cart-card .card-product-name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--h27-ink);
}

.mobile-cart-card .card-price-row,
.mobile-cart-card .card-quantity-row,
.mobile-cart-card .card-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 !important;
    padding: 5px 0 !important;
    border: 0 !important;
    font-size: 13px;
    color: var(--h27-muted);
}

.mobile-cart-card .card-total-row {
    border-top: 1px dashed var(--h27-line) !important;
    margin-top: 4px !important;
    padding-top: 8px !important;
}

.mobile-cart-card .card-total-row strong,
.mobile-cart-card .card-total-row .total-value {
    color: var(--colorCorporativo);
    font-size: 16px;
    font-weight: 800;
}

/* ---- Resumen del pedido ---- */
.cart-summary {
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 24px;
    box-shadow: 0 6px 22px rgba(20, 50, 55, .08);
    padding: 22px;
}

.cart-summary-wrap {
    background: transparent !important;
    padding: 0 !important;
}

.cart-summary-wrap h4 {
    font-size: 18px;
    font-weight: 800;
    text-decoration: none !important;
    margin-bottom: 14px;
}

.btn-checkout-primary {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoOscuro, #1c7881) 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--colorCorporativo, #299BA5) 35%, transparent);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-checkout-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--colorCorporativo, #299BA5) 45%, transparent);
}

.cart-secondary-actions a,
.cart-secondary-actions button {
    border-radius: 999px;
}

@media (max-width: 767px) {
    .cart-main-title {
        font-size: 1.5rem;
    }

    .modern-cart-header-title {
        margin-bottom: 16px !important;
    }

    .cart-summary {
        border-radius: 22px;
        padding: 18px;
    }

    .cart-summary-wrap .mb-50,
    .cart-summary-wrap .mt-50 {
        margin: 6px 0 !important;
    }
}

/* Selector de cantidad (ficha, carrito, listados): pildora de 44 px con dos botones circulares y el valor en medio.
   El input llevaba min-height:46px de los formularios globales y desbordaba a los botones (36 px): se anula aqui. */
.modern-qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
    height: 44px;
    padding: 3px;
    border: 1px solid var(--h27-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.modern-qty-control:hover,
.modern-qty-control:focus-within {
    border-color: var(--colorCorporativo);
    box-shadow: none;
}

.modern-qty-control input {
    width: 46px;
    min-width: 0;
    height: 36px;
    min-height: 0;
    padding: 0 2px;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    color: var(--h27-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    box-shadow: none;
}

.modern-qty-control .qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--h27-tint);
    color: var(--h27-ink);
    font-size: 14px;
    line-height: 1;
    transform: none;
    transition: background .15s ease, color .15s ease;
}

.modern-qty-control .qty-minus,
.modern-qty-control .qty-plus {
    border: 0;
}

.modern-qty-control .qty-btn:hover,
.modern-qty-control .qty-btn:focus {
    background: var(--colorCorporativo);
    color: #fff;
    transform: none;
}

.modern-qty-control .qty-btn:active {
    transform: scale(.94);
}

@media (max-width: 768px) {
    .modern-qty-control .qty-btn {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .modern-qty-control input {
        width: 42px;
        height: 36px;
    }
}

/* =============================================================
   FORMULARIOS (toda la web)
   :where() deja la especificidad baja: los estilos propios de cada componente siguen ganando.
   ============================================================= */
.contenido :where(input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
                  input[type="number"], input[type="url"], input[type="search"], input[type="date"],
                  select, textarea, .form-control) {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #cfd8da;
    border-radius: 14px;
    background-color: #fff;
    color: var(--h27-ink);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contenido :where(textarea) {
    min-height: 110px;
    border-radius: 16px;
}

.contenido :where(input, select, textarea):focus {
    outline: 0;
    border-color: var(--colorCorporativo);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--colorCorporativo, #299BA5) 16%, transparent);
}

.contenido :where(input, select, textarea)::placeholder {
    color: #8a9a9d;
}

.contenido :where(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--colorCorporativo);
}

.contenido :where(label) {
    font-weight: 600;
    color: var(--h27-ink);
}

/* =============================================================
   ASISTENTE DE COMPRA (Pedido/Resumen)
   ============================================================= */
.wizard {
    max-width: 960px;
    margin: 0 auto !important;
}

.wizard .head {
    text-align: center;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
}

.wizard .head .title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--h27-ink);
}

/* indicador de pasos */
.wizard .stepsTitles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px auto 24px !important;
    padding: 6px !important;
    max-width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(20, 50, 55, .06);
    scrollbar-width: none;
}

.wizard .stepsTitles::-webkit-scrollbar {
    display: none;
}

.wizard .stepsTitles .title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 6px 14px 6px 6px !important;
    border-radius: 999px;
    color: var(--h27-muted);
    font-size: 13px;
    font-weight: 600;
    background: transparent !important;
    border: 0 !important;
    transition: background .25s ease, color .25s ease;
}

.wizard .stepsTitles .title .order {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 50%;
    background: var(--h27-tint) !important;
    color: var(--h27-muted) !important;
    font-size: 13px;
    font-weight: 700;
    border: 0 !important;
}

.wizard .stepsTitles .title.active {
    background: var(--h27-ink) !important;
    color: #fff;
}

.wizard .stepsTitles .title.active .order,
.wizard .stepsTitles .title .order.active {
    background: var(--colorCorporativo) !important;
    color: #fff !important;
}

/* cada paso es una tarjeta */
.wizard .view {
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 26px;
    box-shadow: 0 8px 28px rgba(20, 50, 55, .08);
    padding: 28px !important;
}

.checkout-title {
    margin: 4px 0 16px !important;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none !important;
    color: var(--h27-ink);
}

.wizard .view label {
    margin-bottom: 6px;
    font-size: 13px;
}

.wizard .view .row > [class*="col-"] {
    margin-bottom: 14px;
}

.wizard .mb-20 { margin-bottom: 14px !important; }

/* totales del paso resumen */
.checkout-cart-total {
    background: var(--h27-tint) !important;
    border: 0 !important;
    border-radius: 20px;
    padding: 20px !important;
}

.checkout-cart-total h4 {
    font-size: 16px;
    font-weight: 800;
}

/* metodos de pago y condiciones */
.single-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--h27-line);
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}

.single-method:hover,
.single-method:has(input:checked) {
    border-color: var(--colorCorporativo);
    background: #f3fafb;
}

.single-method label {
    margin: 0;
    cursor: pointer;
}

/* botones Anterior / Siguiente */
.wizard .buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.wizard .buttons input {
    min-height: 48px;
    padding: 0 28px;
    border: 1.5px solid var(--h27-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--h27-ink);
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.wizard .buttons input:hover {
    background: var(--h27-ink);
    color: #fff;
    transform: translateY(-1px);
}

.wizard .buttons input:last-child,
.wizard .buttons input:only-child {
    margin-left: auto;
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoOscuro, #1c7881) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--colorCorporativo, #299BA5) 32%, transparent);
}

.wizard .buttons input:last-child:hover,
.wizard .buttons input:only-child:hover {
    background: linear-gradient(135deg, var(--colorCorporativoOscuro, #1c7881) 0%, var(--h27-ink) 100%);
}

@media (max-width: 767px) {
    .wizard .view {
        padding: 18px !important;
        border-radius: 22px;
    }

    /* en movil solo el paso activo muestra su texto; los demas, solo el numero */
    .wizard .stepsTitles .title:not(.active) {
        padding-right: 6px !important;
    }

    .wizard .stepsTitles .title:not(.active) .text {
        display: none;
    }

    .wizard .buttons {
        flex-direction: row;
    }

    .wizard .buttons input {
        flex: 1 1 0;
        padding: 0 12px;
    }
}

/* ---- Asistente de compra: sustituye las reglas antiguas del paso a paso ---- */
.wizard {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.wizard .head {
    margin-bottom: 0;
    padding: 6px 0;
}

.wizard .view {
    margin-top: 0 !important;
}

.wizard .stepsTitles {
    flex-wrap: nowrap;
    justify-content: center;
    height: auto !important;
    width: fit-content !important;
    max-width: 100%;
}

.wizard .stepsTitles .title {
    flex: 0 0 auto !important;
    width: auto !important;
    border: 0 !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}

.wizard .stepsTitles .title .order {
    position: static !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.wizard .stepsTitles .title .text {
    display: block;
    padding-left: 0 !important;
    width: auto !important;
    white-space: nowrap;
    font-size: 13px;
}

@media (max-width: 767px) {
    .wizard .stepsTitles .title:not(.active) .text {
        display: none;
    }
}

@media (max-width: 1000px) {
    .wizard .stepsTitles .title.active .text {
        display: block !important;
    }
}

@media (max-width: 400px) {
    .wizard .stepsTitles {
        display: flex !important;
    }
}

/* campos del asistente (ganan a ".checkout-form input" de la hoja base) */
.checkout-form .view input:not(.form-check-label):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
.checkout-form .view select.form-control,
.checkout-form .view textarea.form-control {
    min-height: 48px;
    margin-bottom: 0 !important;
    padding: 10px 16px;
    border: 1px solid #cfd8da;
    border-radius: 14px;
    background-color: #fff;
    color: var(--h27-ink);
    font-size: 15px;
    line-height: 1.4;
}

.checkout-form .view input:focus,
.checkout-form .view select:focus,
.checkout-form .view textarea:focus {
    border-color: var(--colorCorporativo);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--colorCorporativo, #299BA5) 16%, transparent);
    outline: 0;
}

.checkout-form .nice-select {
    border: 1px solid #cfd8da;
    border-radius: 14px;
    height: 48px;
    margin-bottom: 0;
    background-color: #fff;
}

.checkout-form label {
    margin-bottom: 6px;
}

/* botones del asistente: la hoja base los deja con borde cuadrado */
.checkout-form .buttons input[type="button"],
.checkout-form .buttons input[type="submit"] {
    border-radius: 999px;
}

.wizard .stepsTitles .title.active .text {
    color: #fff !important;
}

/* =============================================================
   CARRITO DE LA CABECERA (boton + desplegable)
   ============================================================= */
.h27-cart .modern-cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--colorCorporativo);
    color: #fff !important;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--colorCorporativo, #299BA5) 35%, transparent);
    transition: transform .2s ease, background .2s ease;
}

.h27-cart .modern-cart-trigger:hover {
    background: var(--h27-ink);
    transform: translateY(-1px);
}

.h27-cart .modern-cart-trigger i {
    color: #fff !important;
    font-size: 19px;
}

.h27-cart .modern-cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--h27-ink);
    color: #fff;
    border: 2px solid #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.h27-cart .modern-cart-dropdown {
    margin: 0 !important;
    border: 1px solid var(--h27-line);
    border-radius: 24px !important;
    box-shadow: 0 22px 54px rgba(20, 50, 55, .24) !important;
    overflow: hidden;
}

@media (max-width: 575px) {
    /* el desplegable del carrito ocupa el ancho de la pantalla, bajo la cabecera */
    .h27-cart .modern-cart-dropdown {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        top: 84px !important;
        width: auto !important;
        max-height: calc(100vh - 190px);
        overflow-y: auto;
    }
}

/* =============================================================
   CONTACTO
   ============================================================= */
.google-map-container {
    max-width: 1280px;
    margin: 0 auto 28px !important;
    padding: 0 12px;
}

.google-map-container iframe {
    width: 100%;
    height: clamp(240px, 38vw, 420px);
    border: 0;
    border-radius: 28px;
    box-shadow: var(--h27-shadow);
}

.contact-page-side-content,
.contact-form-content {
    height: 100%;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 26px;
    box-shadow: 0 8px 28px rgba(20, 50, 55, .07);
}

.contact-page-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--h27-ink);
}

.contact-page-message {
    color: var(--h27-muted);
    line-height: 1.6;
}

.single-contact-block {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--h27-tint);
    border-radius: 18px;
}

.single-contact-block h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

.single-contact-block h4 i {
    color: var(--colorCorporativo);
}

.single-contact-block p {
    margin: 6px 0 0;
    color: var(--h27-muted);
}

.contact-form .submit-button,
.contact-form button[type="submit"],
.contact-form input[type="submit"] {
    min-height: 48px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoOscuro, #1c7881) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--colorCorporativo, #299BA5) 30%, transparent);
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-form .submit-button:hover,
.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .contact-page-side-content,
    .contact-form-content {
        padding: 20px;
        border-radius: 22px;
        margin-bottom: 16px;
    }

    .google-map-container {
        padding: 0 8px;
    }

    .google-map-container iframe {
        border-radius: 22px;
    }
}

/* Movil: el desplegable del carrito se ancla a la pildora de la cabecera y ocupa su ancho
   (un "fixed" dentro de un ancestro con backdrop-filter se calcula respecto a ese ancestro). */
@media (max-width: 767px) {
    .h27-pill {
        position: relative;
    }

    .h27-cart,
    .h27-cart #carroresumen,
    .h27-cart .header-cart-icon {
        position: static !important;
    }

    .h27-cart .modern-cart-dropdown {
        position: absolute !important;
        left: 8px !important;
        right: 8px !important;
        top: calc(100% + 8px) !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        max-height: calc(100vh - 310px);
        overflow-y: auto;
    }
}

/* =============================================================
   MENU DE CATEGORIAS (escritorio)
   La cabecera es fija, asi que la lista debe poder desplazarse por dentro. Los submenus
   laterales pasan a "fixed" (su bloque contenedor es la pildora por el backdrop-filter) y
   design-2027.js les calcula la posicion: asi el scroll de la lista no los recorta.
   ============================================================= */
@media (min-width: 992px) {
    .h27-menu .main-menu .sub-menu.categorias {
        max-height: calc(100vh - var(--h27-menu-top, 150px) - 20px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(20, 38, 42, .25) transparent;
    }

    .h27-menu .main-menu .sub-menu.categorias > li {
        width: 100%;
    }

    .h27-menu .main-menu .sub-menu.categorias > li > a {
        padding: 8px 12px;
        border-radius: 12px;
        line-height: 1.3;
        font-size: 13px;
        transition: background .15s ease, color .15s ease;
    }

    .h27-menu .main-menu .sub-menu.categorias > li:hover > a {
        background: var(--colorCorporativo) !important;
        color: #fff !important;
    }

    .h27-menu .main-menu .sub-menu.categorias .mega-menu.four-column {
        position: fixed !important;
        top: var(--h27-fly-top, 0px) !important;
        left: var(--h27-fly-left, 100%) !important;
        width: min(620px, calc(100vw - var(--h27-fly-left, 340px) - 28px)) !important;
        max-height: calc(100vh - var(--h27-menu-top, 150px) - 20px);
        overflow-y: auto;
        border-radius: 20px;
        box-shadow: 0 18px 44px rgba(20, 50, 55, .22);
        background: #fff;
    }
}

/* puente invisible entre el boton y la lista: sin el, al cruzar el hueco se pierde el hover */
@media (min-width: 992px) {
    .h27-menu .main-menu .sub-menu.categorias::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -18px;
        height: 18px;
    }
}

/* ---- Submenu lateral como panel flotante (ver design-2027.js) ---- */
@media (min-width: 992px) {
    /* los submenus originales viven dentro de la lista desplazable y quedarian recortados */
    .h27-menu .main-menu .sub-menu.categorias .mega-menu {
        display: none !important;
    }

    /* mientras el raton esta en el panel, la lista de categorias sigue abierta */
    .h27-menu .main-menu li.menu-item-has-children.h27-keep-open > .sub-menu {
        visibility: visible;
        opacity: 1;
    }
}

.h27-fly {
    position: fixed;
    z-index: 1002;
    width: max-content;
    min-width: 300px;
    max-width: min(660px, calc(100vw - 340px));
    padding: 16px 18px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(20, 50, 55, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.h27-fly.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.h27-fly-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 2px 16px;
}

.h27-fly-list > li {
    margin: 0;
    padding: 0;
}

.h27-fly-list > li.title {
    grid-column: 1 / -1;
    margin-bottom: 6px;
}

.h27-fly-list h3 {
    margin: 0 !important;
    padding: 0 0 10px !important;
    font-size: 15px;
    font-weight: 800;
    color: var(--h27-ink) !important;
    background: none !important;
    border-bottom: 1px solid var(--h27-line);
}

.h27-fly-list > li > a {
    display: block;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--h27-ink);
    transition: background .15s ease, color .15s ease;
}

.h27-fly-list > li > a:hover {
    background: var(--h27-tint);
    color: var(--colorCorporativo);
}

/* =============================================================
   DESCARGAS: el modulo base usa azul marino; aqui va en la paleta de Valver
   ============================================================= */
.downloads-hero {
    border-bottom-color: var(--h27-line);
}

.downloads-hero-icon,
.cover-icon-fallback {
    color: var(--colorCorporativo);
}

.downloads-hero-title,
.download-card-body ul.jqueryFileTree a {
    color: var(--h27-ink);
}

.download-card {
    border: 1px solid var(--h27-line);
    border-radius: 24px !important;
    box-shadow: 0 6px 22px rgba(20, 50, 55, .08);
}

.download-card:hover {
    box-shadow: 0 16px 38px rgba(20, 50, 55, .16);
}

.download-card-header {
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoOscuro, #1c7881) 100%);
}

.download-card-body ul.jqueryFileTree a:hover {
    background: var(--h27-tint);
    color: var(--colorCorporativo);
}

.download-card-cover {
    background: var(--h27-tint);
    border-bottom-color: var(--h27-line);
}

.pdf-file-thumb-wrap {
    border-color: var(--h27-line);
    background: #f4f7f8;
}

/* =============================================================
   MI CUENTA
   ============================================================= */
.myaccount-tab-menu {
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(20, 50, 55, .06);
    overflow: hidden;
}

.myaccount-tab-menu a {
    transition: background .2s ease, color .2s ease;
}

.myaccount-content {
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 24px;
    box-shadow: 0 4px 18px rgba(20, 50, 55, .06);
    padding: 24px;
}

.myaccount-content > h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--h27-line);
}

/* ---- Tablas (DataTables) ---- */
.myaccount-content table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--h27-line);
    border-radius: 18px;
    overflow: hidden;
}

.myaccount-content table.dataTable thead th {
    background: var(--h27-tint);
    color: var(--h27-muted);
    border: 0 !important;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 12px 14px;
}

.myaccount-content table.dataTable tbody td {
    border-top: 1px solid var(--h27-line);
    padding: 12px 14px;
    vertical-align: middle;
}

.myaccount-content table.dataTable tbody tr:hover {
    background: #f6fbfb;
}

/* ---- Barra de acciones de tabla: Exportar / Filtrar / Buscar ---- */
.myaccount-content .dt-buttons .dt-button,
.myaccount-content .dt-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    background: var(--h27-ink);
    color: #fff;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.myaccount-content .dt-buttons .dt-button:hover,
.myaccount-content .dt-buttons button:hover {
    background: var(--colorCorporativo);
    transform: translateY(-1px);
}

.myaccount-content .dataTables_filter {
    float: right;
    margin: 0 0 14px;
}

.myaccount-content .dataTables_filter label {
    position: relative;
    display: block;
    height: 40px;
    margin: 0;
    font-size: 0;
    line-height: 0;
}

.myaccount-content .dataTables_filter input[type="search"] {
    display: block;
    width: 260px;
    max-width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 42px 0 16px;
    font-size: 14px;
    line-height: 40px;
    border: 1px solid #cfd8da;
    border-radius: 999px;
    background: #fff;
}

.myaccount-content .dataTables_filter label > i.fa-search {
    position: absolute;
    right: 15px;
    top: 0;
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 14px !important;
    color: var(--colorCorporativo) !important;
}

/* ---- Mi cuenta en movil: el menu pasa a una fila de chips desplazable ---- */
@media (max-width: 991px) {
    .myaccount-tab-menu {
        display: flex !important;
        flex-direction: row;
        gap: 6px;
        padding: 6px;
        border-radius: 999px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .myaccount-tab-menu::-webkit-scrollbar {
        display: none;
    }

    .myaccount-tab-menu a {
        flex: 0 0 auto;
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        width: auto !important;
        padding: 9px 16px !important;
        border: 0 !important;
        border-radius: 999px;
        white-space: nowrap;
        font-size: 13px;
    }

    .myaccount-tab-menu a.active {
        background: var(--h27-ink) !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    .myaccount-tab-menu a.active i {
        color: #fff !important;
    }

    .myaccount-content {
        padding: 16px;
        border-radius: 22px;
    }

    .myaccount-content .dataTables_filter {
        float: none;
    }

    .myaccount-content .dataTables_filter input[type="search"] {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .myaccount-tab-menu {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
}

.myaccount-content .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.myaccount-content .dt-buttons .dt-button,
.myaccount-content .dt-buttons button {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    height: 40px;
    margin: 0 !important;
    padding: 0 20px;
    font-size: 14px;
    line-height: 40px;
}

/* Los botones de la tabla son <button> exteriores con un <button.register-button> dentro:
   el contenedor queda neutro y el estilo va al boton interior. */
.myaccount-content .dt-buttons > .dt-button,
.myaccount-content .dt-buttons > button {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto;
    line-height: 1;
    color: inherit;
}

.myaccount-content .dt-buttons > button:hover {
    background: transparent !important;
    transform: none;
}

.myaccount-content .dt-buttons .register-button {
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--h27-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 40px;
    margin: 0 !important;
    transition: background .2s ease, transform .2s ease;
}

.myaccount-content .dt-buttons .register-button:hover {
    background: var(--colorCorporativo);
    transform: translateY(-1px);
}

.myaccount-content .dt-buttons > .fkImportar {
    width: auto !important;
}

@media (max-width: 991px) {
    .myaccount-tab-menu a::before,
    .myaccount-tab-menu a::after {
        display: none !important;
    }
}

/* =============================================================
   REGISTRO / ACCESO CLASICOS Y BOTON PRIMARIO GENERICO
   ============================================================= */
.login-form {
    padding: 28px !important;
    background: #fff;
    border: 1px solid var(--h27-line) !important;
    border-radius: 26px;
    box-shadow: 0 8px 28px rgba(20, 50, 55, .08);
}

.login-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-decoration: none !important;
    margin-bottom: 18px;
}

.register-button {
    min-height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoOscuro, #1c7881) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--colorCorporativo, #299BA5) 28%, transparent);
    transition: transform .2s ease, box-shadow .2s ease;
}

.register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--colorCorporativo, #299BA5) 38%, transparent);
    color: #fff;
}

@media (max-width: 767px) {
    .login-form {
        padding: 20px !important;
        border-radius: 22px;
    }
}

/* Movil: tarjeta de lista en rejilla (imagen | titulo y precio | boton a todo el ancho) */
@media (max-width: 767px) {
    #tablaArticulos.list .single-slider-product--list-view {
        display: grid !important;
        grid-template-columns: 88px minmax(0, 1fr) auto;
        grid-template-areas:
            "img title title"
            "img price icons"
            "btn btn btn";
        align-items: center;
        gap: 8px 12px;
        min-height: 0 !important;
        height: auto;
    }

    #tablaArticulos.list .single-slider-product--list-view__content,
    #tablaArticulos.list .single-slider-product--list-view__content__details,
    #tablaArticulos.list .single-slider-product--list-view__content__actions {
        display: contents;
    }

    #tablaArticulos.list .single-slider-product--list-view__image {
        grid-area: img;
        width: 88px;
        height: 88px;
        align-self: start;
    }

    #tablaArticulos.list .single-slider-product--list-view .product-title {
        grid-area: title;
        max-height: none;
        overflow: visible;
        margin: 0;
        font-size: 14px;
        line-height: 1.35;
        align-self: start;
    }

    #tablaArticulos.list .single-slider-product--list-view .product-price {
        grid-area: price;
        margin: 0;
        text-align: left;
    }

    #tablaArticulos.list .single-slider-product--list-view .hover-icons {
        grid-area: icons;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
    }

    #tablaArticulos.list .single-slider-product--list-view .hover-icons ul {
        display: flex;
        gap: 6px;
        margin: 0;
        padding: 0;
    }

    #tablaArticulos.list .single-slider-product--list-view .list-cart-button {
        grid-area: btn;
        width: 100%;
        margin: 4px 0 0 !important;
        text-align: center;
    }
}

@media (max-width: 767px) {
    #tablaArticulos.list .single-slider-product--list-view__image {
        height: 88px !important;
        min-height: 0 !important;
        max-height: 88px !important;
        align-self: start !important;
    }

    #tablaArticulos.list .single-slider-product--list-view .product-title {
        min-height: 0 !important;
    }

    #tablaArticulos.list .single-slider-product--list-view .product-price {
        padding: 0 !important;
        min-height: 0 !important;
    }

    #tablaArticulos.list .single-slider-product--list-view .hover-icons {
        padding: 0 !important;
        height: auto !important;
    }

    #tablaArticulos.list .single-slider-product--list-view {
        grid-template-rows: auto auto auto;
        align-content: start;
    }
}

/* =============================================================
   AVISO DE COOKIES (gdpr-cookie-message)
   ============================================================= */
#gdpr-cookie-message {
    left: 16px !important;
    bottom: 16px !important;
    max-width: 380px;
    padding: 20px !important;
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 24px !important;
    box-shadow: 0 22px 54px rgba(20, 50, 55, .26) !important;
    font-size: 14px;
    color: var(--h27-muted);
}

#gdpr-cookie-message h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--h27-ink) !important;
}

#gdpr-cookie-message a {
    color: var(--colorCorporativo) !important;
    text-decoration: underline;
}

#gdpr-cookie-message button {
    min-height: 40px;
    padding: 0 18px;
    border: 1.5px solid var(--h27-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--h27-ink);
    font-weight: 700;
    font-size: 13px;
    transition: background .2s ease, color .2s ease;
}

#gdpr-cookie-message button:hover {
    background: var(--h27-ink);
    color: #fff;
}

#gdpr-cookie-message #gdpr-cookie-accept {
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoOscuro, #1c7881) 100%);
    border-color: transparent;
    color: #fff;
}

#gdpr-cookie-message #gdpr-cookie-advanced {
    border-color: transparent;
    text-decoration: underline;
}

@media (max-width: 991px) {
    /* sobre la barra inferior, no encima */
    #gdpr-cookie-message {
        left: 10px !important;
        right: 10px !important;
        bottom: 98px !important;
        max-width: none;
    }
}

/* ---- Desplegables de usuario e idioma ---- */
.h27-topbar {
    position: relative;
    z-index: 30;
}

.h27-header .header-top-single-dropdown__dropdown-menu-items {
    min-width: 190px;
    margin-top: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--h27-line);
    border-radius: 18px !important;
    box-shadow: 0 18px 44px rgba(20, 50, 55, .22);
}

.h27-header .header-top-single-dropdown__dropdown-menu-items ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.h27-header .header-top-single-dropdown__dropdown-menu-items a {
    display: block;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--h27-ink) !important;
    font-size: 14px;
    transition: background .15s ease, color .15s ease;
}

.h27-header .header-top-single-dropdown__dropdown-menu-items a:hover {
    background: var(--h27-tint);
    color: var(--colorCorporativo) !important;
}

.h27-topbar-user .header-top-single-dropdown {
    position: relative;
}

.h27-topbar-user .header-top-single-dropdown__dropdown-menu-items {
    left: 0 !important;
    right: auto !important;
}

.h27-topbar-user .header-top-single-dropdown:last-child .header-top-single-dropdown__dropdown-menu-items {
    left: auto !important;
    right: 0 !important;
}

.modern-cart-table thead,
.modern-cart-table thead tr,
.modern-cart-table thead th {
    background: transparent !important;
    background-image: none !important;
}

.modern-cart-table thead th,
.modern-cart-table thead th * {
    color: var(--h27-muted) !important;
}

.modern-cart-table thead th.pro-subtotal {
    color: var(--colorCorporativo) !important;
}

/* Boton del menu movil (hamburguesa): el boton es oscuro, asi que las rayas y el texto van en blanco.
   Algunos clientes (Seauto) les ponen el color corporativo en su personalizacion.css para su boton blanco. */
.h27-menu .mmm-bar,
.h27-menu .mmm-bar .mmm-bar__label {
    color: #fff !important;
}

.h27-menu .mmm-bar .mmm-bar__icon span,
.h27-menu .mmm-bar .mmm-bar__icon span::before,
.h27-menu .mmm-bar .mmm-bar__icon span::after {
    background: #fff !important;
}

/* Botones de vista lista/cuadricula del listado: el PNG verde fijo (list-hover.png) se sustituye por un glifo
   que toma el color corporativo cuando esta activo */
button.list-view,
button.grid-view,
button.three-column,
button.four-column {
    background-image: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--h27-muted, #5a6b7d);
}

button.list-view::before,
button.grid-view::before,
button.three-column::before,
button.four-column::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}

button.list-view::before { content: "\f0c9"; }
button.grid-view::before { content: "\f00a"; }
button.three-column::before { content: "\f009"; }
button.four-column::before { content: "\f00a"; }

button.list-view.active,
button.grid-view.active,
button.three-column.active,
button.four-column.active {
    color: var(--colorCorporativo);
}

/* Tarjetas en cuadricula: el precio iba centrado y el boton del carrito (absoluto a la derecha) lo rozaba con
   precios largos. El precio se alinea a la izquierda y el boton queda libre a la derecha. */
#tablaArticulos .grid-view-product .product-price {
    text-align: left;
}

/* Botones de guardado de Mi cuenta (.save-change-btn): salian como rectangulo gris plano (#999, 3px). El de eliminar
   lleva su rojo en linea y lo conserva. */
.save-change-btn {
    padding: 9px 26px;
    border: 0;
    border-radius: 999px;
    background-color: var(--colorCorporativo);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.save-change-btn:hover,
.save-change-btn:focus {
    background-color: var(--colorCorporativoOscuro, #14262a);
    color: #fff;
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--colorCorporativo) 70%, transparent);
}

.save-change-btn[style*="background"]:hover,
.save-change-btn[style*="background"]:focus {
    filter: brightness(.9);
}

/* Pie base: el hover de los enlaces venia en azul Bootstrap (#0d6efd) desde un <style> en linea de _Pie.cshtml;
   en 2027 toma un tono claro del color corporativo, legible sobre el fondo oscuro. */
footer.footer a:hover,
footer.footer a:focus {
    color: color-mix(in srgb, var(--colorCorporativo) 45%, #fff);
}

/* Marcador "Cargando..." de los componentes asincronos (carrito): el JS lo escribe con colores en linea de Bootstrap
   (#007bff, #111c88, #555). Se pasan a la paleta del diseno sin tocar el script. */
[data-role="ComponentAsync"] > div[style*="min-height"] {
    color: var(--h27-ink, #14262a) !important;
}

[data-role="ComponentAsync"] > div[style*="min-height"] i.fa-cart-shopping {
    color: var(--colorCorporativo) !important;
}

[data-role="ComponentAsync"] > div[style*="min-height"] .text-sm {
    color: var(--h27-muted, #5a6b7d) !important;
    font-size: 13px;
}

/* ---------- Estados hover/focus: coherencia de paleta ----------
   Rojos de accion destructiva: style.css usaba #dc3545 y modern-cart.css #e74c3c; el carrito desplegable ya usaba
   #d32f2f. Todo al mismo rojo. */
.btn-cart-secondary.btn-cancel:hover,
.btn-cart-secondary.btn-cancel:focus,
.btn-action.btn-remove:hover,
.btn-action.btn-remove:focus,
.modern-cart-table tbody td a[onclick*="eliminarArticulo"]:hover,
.btn-outline-danger:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
}

/* Enlaces-boton (btn-link): el hover venia en azul Bootstrap oscuro (#0056b3) */
.btn-link:hover,
.btn-link:focus {
    color: color-mix(in srgb, var(--colorCorporativo) 70%, #000);
}

/* Gris claro de Bootstrap (#f8f9fa) en hover de listas y menus: pasa al tinte del diseno */
.myaccount-tab-menu a:hover,
.myaccount-tab-menu a.active,
.client-label:hover,
.modern-checkbox:hover,
.check-box:hover,
.modern-tree li:hover,
.dropdown-item:hover,
.dropdown-item:focus,
.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--h27-tint, #eef6f7);
}

.dropdown-item:hover,
.dropdown-item:focus,
.list-group-item-action:hover,
.list-group-item-action:focus {
    color: var(--colorCorporativo);
}

/* Boton del carrito de la cabecera: en hover el icono tomaba el color corporativo (el mismo que el circulo) y
   desaparecia. Se queda blanco y el fondo oscurece un poco. */
.h27-cart .small-cart-trigger:hover,
.h27-cart .small-cart-trigger:focus {
    background: color-mix(in srgb, var(--colorCorporativo) 80%, #000);
    color: #fff;
}

.h27-cart .small-cart-trigger:hover i,
.h27-cart .small-cart-trigger:focus i {
    color: #fff !important;
}

/* Desplegables de la franja superior (cuenta, idioma): la regla base .headertop-dropdown-container ... a:hover pone el
   fondo en color corporativo y el texto tambien lo era, asi que el elemento desaparecia al pasar el raton. */
.h27-header .headertop-dropdown-container .header-top-single-dropdown__dropdown-menu-items ul li a:hover,
.h27-header .headertop-dropdown-container .header-top-single-dropdown__dropdown-menu-items ul li a:focus {
    background: var(--h27-tint, #eef6f7) !important;
    color: var(--colorCorporativo) !important;
}

/* Tarjeta de carrito en movil: style.css fija el input a 80 px (.mobile-cart-card ...) y el control (156 px) no cabe junto a
   la etiqueta "Cantidad:" (183 px utiles): el boton + quedaba fuera. Control de 116 px con el input flexible. */
@media (max-width: 575px) {
    .card-quantity-row {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .card-quantity-row .modern-qty-control,
    .mobile-cart-card .modern-qty-control {
        width: 116px;
        flex: 0 0 116px;
        margin-left: auto;
    }

    .card-quantity-row .modern-qty-control input,
    .mobile-cart-card .modern-qty-control input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}

/* Control de cantidad antiguo (.pro-qty: input + botones .inc/.dec apilados a la derecha) en Favoritos, Para despues,
   listados y vista rapida. Mismo aspecto que .modern-qty-control sin tocar el HTML ni el JS: el DOM es
   input, .inc, <br>, .dec y con flex + order queda "-  valor  +". Las barras de compra que ya tienen su regla
   (.quantity-cart-wrapper) y el stepper de Seauto (.cantidad-compra) quedan fuera. */
.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty),
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: auto;
    height: 44px;
    padding: 3px;
    border: 1px solid var(--h27-line);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty):focus-within,
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty):focus-within {
    border-color: var(--colorCorporativo);
}

.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) br,
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) br {
    display: none;
}

.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) input,
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) input {
    order: 2;
    width: 46px;
    min-width: 0;
    height: 36px;
    min-height: 0;
    padding: 0 2px;
    border: 0 !important;
    background: transparent;
    color: var(--h27-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    box-shadow: none;
}

.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button,
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--h27-tint);
    color: var(--h27-ink);
    font-size: 16px;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
}

.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button.dec,
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button.dec {
    order: 1;
}

.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button.inc,
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button.inc {
    order: 3;
}

.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button:hover,
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button:hover,
.contenido .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button:focus,
.modal .pro-qty:not(.cantidad-compra):not(.quantity-cart-wrapper .pro-qty) button:focus {
    background: var(--colorCorporativo);
    color: #fff;
}
