.hexagono-promociones-destacadas,
.hexagono-promociones-popup-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hexagono-promo-card {
    border: 1px solid #e5e5e5;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
}

/* =========================================================
   DISEÑO COMPACTO Y HORIZONTAL (PROMOS DESTACADAS)
   =======================================================*/
.hexagono-promo-card--destacada {
    display: grid;
    grid-template-columns: 35px 1fr; /* Columna 1 fija para el logo, Columna 2 para el texto */
    grid-template-rows: auto auto;   /* Fila 1 para título, Fila 2 para descripción */
    column-gap: 12px;
    row-gap: 2px;
    align-items: center; 
    padding: 10px 14px; /* Más fina (menos relleno arriba y abajo) */
    background: #fdfdfd;
}

/* El logo ocupa las dos filas de la izquierda */
.hexagono-promo-card--destacada .hexagono-promo-card__logo {
    grid-column: 1;
    grid-row: 1 / 3; 
    margin-bottom: 0; /* Le sacamos el margen viejo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagono-promo-card--destacada .hexagono-promo-card__logo img {
    max-height: 24px; /* Logo más chiquito y elegante */
    width: auto;
}

/* Título arriba a la derecha */
.hexagono-promo-card--destacada .hexagono-promo-card__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px; /* Texto más sutil */
    font-weight: 800;
    margin-bottom: 0;
    color: #333;
    line-height: 1.1;
}

/* Descripción abajo a la derecha */
.hexagono-promo-card--destacada .hexagono-promo-card__short {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px; /* Texto secundario más chiquito */
    color: #666;
    line-height: 1.2;
}

/* Achicamos el espacio entre las tarjetas */
.hexagono-promociones-destacadas {
    gap: 8px; /* Antes estaba en 14px */
}

.hexagono-promo-card__logo {
    margin-bottom: 8px;
}

.hexagono-promo-card__logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.hexagono-promo-card__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #111;
}

.hexagono-promo-card__short {
    color: #4c8c3f;
    line-height: 1.5;
}

.hexagono-promociones-bloque__footer {
    margin-top: 14px;
}

.hexagono-promociones-bloque__link {
    border: 0 !important;
    background: transparent !important;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    color: #0a0a0a;
    font-size: 15px;
    box-shadow: none !important;
    outline: none !important;
}

.hexagono-promociones-bloque__link:hover,
.hexagono-promociones-bloque__link:focus,
.hexagono-promociones-bloque__link:active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    color: #0a0a0a;
}

/* Modal */
.hexagono-modal {
    display: none;
}

.hexagono-modal.is-open {
    display: block;
}

.hexagono-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99998;
}

.hexagono-modal__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(820px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 99999;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
}

.hexagono-modal__header {
    margin-bottom: 18px;
    padding-right: 35px;
    flex: 0 0 auto;
}

.hexagono-modal__header h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.hexagono-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}

.hexagono-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0 !important;
    background: transparent !important;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    box-shadow: none !important;
    outline: none !important;
}

.hexagono-modal__close:hover,
.hexagono-modal__close:focus,
.hexagono-modal__close:active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    color: #444;
}

body.hexagono-modal-open {
    overflow: hidden;
}

/* Checkout */
.hexagono-promociones-checkout {
    border: 1px solid #e6e6e6;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
}

.hexagono-promociones-checkout__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hexagono-promociones-checkout__item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.hexagono-promociones-checkout__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hexagono-promociones-checkout__title {
    font-weight: 700;
    margin-bottom: 3px;
}

.hexagono-promociones-checkout__desc {
    color: #4c8c3f;
}

/* Accordion */
.hexagono-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hexagono-accordion__item {
    border-top: 1px solid #dcdcdc;
}

.hexagono-accordion__item:last-child {
    border-bottom: 1px solid #dcdcdc;
}

.hexagono-accordion__trigger {
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    box-shadow: none !important;
    outline: none !important;
}

.hexagono-accordion__trigger:hover,
.hexagono-accordion__trigger:focus,
.hexagono-accordion__trigger:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.hexagono-accordion__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hexagono-accordion__heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 4px;
}

.hexagono-accordion__heading-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.hexagono-accordion__title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.hexagono-accordion__icon {
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
    color: #555;
}

.hexagono-accordion__item.is-open .hexagono-accordion__icon {
    transform: rotate(180deg);
}

.hexagono-accordion__content {
    display: none;
    padding: 4px 0 18px 0;
}

.hexagono-accordion__item.is-open .hexagono-accordion__content {
    display: block;
}

/* Cards dentro del modal */
.hexagono-promo-card--modal {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #efefef;
    border-radius: 0;
    background: transparent;
}

.hexagono-promo-card--modal:last-child {
    border-bottom: 0;
}

.hexagono-promo-card__detail-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.hexagono-promo-card__extra-image {
    margin-bottom: 12px;
}

.hexagono-promo-card__extra-image img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 110px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

.hexagono-promo-card__long {
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    white-space: normal;
}

/* Responsive */
@media (max-width: 767px) {
    .hexagono-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 18px;
    }

    .hexagono-modal__header h2 {
        font-size: 24px;
    }

    .hexagono-promo-card__title {
        font-size: 17px;
    }

    .hexagono-promo-card__extra-image img {
        max-width: 140px;
        max-height: 90px;
    }
}


/* =========================================================
   DISEÑO DE PROMOS SIEMPRE VISIBLES EN CHECKOUT
   =======================================================*/

/* 1. Fila principal: Alineamos el circulito con la tarjeta */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    display: flex !important;
    flex-wrap: wrap !important; /* LA CLAVE: Permite que el contenido extra baje de renglón */
    align-items: center !important; 
    margin-bottom: 12px !important; 
}

/* 2. El circulito (radio button) firme a la izquierda */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"] {
    position: static !important;
    margin: 0 15px 0 0 !important; /* Margen a la derecha para separar de la tarjeta */
    float: none !important;
    flex-shrink: 0 !important; /* Evita que el circulito se deforme */
}

/* 3. El contenedor general ocupa todo lo demás (en la misma línea) */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label {
    display: block !important;
    flex: 1 !important; /* LA CLAVE: Toma el espacio restante sin empujar al circulito */
    width: auto !important; /* Anulamos el 100% viejo */
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

.hexagono-pago-titulo-wrap {
    display: block;
}

.hexagono-pago-promos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 4. Tu tarjeta de promo, ahora ancha y cómoda */
.hexagono-pago-etiqueta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%; /* LA CLAVE: Ocupa todo el espacio horizontal sin apretarse */
    box-sizing: border-box;
    transition: border-color 0.2s;
}

/* Efecto hover al pasar el mouse por la opción */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label:hover .hexagono-pago-etiqueta {
    border-color: #ccc;
}

.hexagono-pago-logo {
    max-height: 28px !important;
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.hexagono-pago-textos {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.hexagono-pago-textos strong {
    font-size: 14px;
    color: #111;
    font-weight: 800;
}

.hexagono-pago-textos span {
    font-size: 13px;
    color: #ef2f60; /* Tu rosa característico */
    font-weight: 600;
    margin-top: 2px;
}

/* 5. La caja de descripción extra que se abre al clickear */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box {
    width: 100% !important; /* Obliga a la caja a usar todo el ancho y bajar de línea */
    margin: 10px 0 0 0 !important; /* Un poco de aire arriba */
    padding-left: 28px !important; /* Para que quede alineada con la tarjeta y no con el circulito */
}

/* 6. Ocultar los logos por defecto de los plugins de pago (para no duplicar con el nuestro) */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label img:not(.hexagono-pago-logo) {
    display: none !important;
}


/* =========================================================
   CARRUSEL INFINITO DE PROMOCIONES (CON ENCABEZADO Y TEXTOS)
   =======================================================*/
.hexagono-carrusel-general {
    margin: 30px 0;
    width: 100%;
}

.hexagono-carrusel-encabezado {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    flex-direction: column;
}

.hexagono-carrusel-titulo-gral {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.hexagono-carrusel-ver-todas {
    background: transparent !important;
    border: none !important;
    color: #ef2f60;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    box-shadow: none !important;
}

.hexagono-carrusel-container {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    display: flex;
    background: transparent;
}

.hexagono-carrusel-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: hexagono-scroll-anim 35s linear infinite; 
}

.hexagono-carrusel-container:hover .hexagono-carrusel-track {
    animation-play-state: paused;
}

/* Modificado para que parezca un botón clickeable y sea INMUNE a los temas */
.hexagono-carrusel-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 8px 24px !important; 
    border-radius: 50px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04) !important;
    transition: transform 0.2s !important;
    text-align: left !important;
    
    /* BLINDAJE CONTRA PLANTILLAS EXTERNAS */
    flex-shrink: 0 !important; /* Evita que el botón se aplaste */
    width: max-content !important; /* Obliga al fondo a envolver todo el texto */
    max-width: none !important; /* Anula los límites de los temas */
    min-width: fit-content !important;
}

.hexagono-carrusel-card:hover {
    transform: scale(1.03);
}

.hexagono-carrusel-card img {
    max-height: 32px;
    width: auto;
}

.hexagono-carrusel-textos {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.hexagono-carrusel-textos strong {
    font-size: 15px;
    font-weight: 800;
}

.hexagono-carrusel-textos span {
    font-size: 12.5px;
    opacity: 0.85;
    margin-top: 2px;
}

@keyframes hexagono-scroll-anim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}