/**
 * FeedAds - Estilos CSS Livianos de Alto Rendimiento
 *
 * Formatos: Cuadrado, Horizontal y Vertical.
 * Soporta frase promocional (feedads_phrase) y logo de tienda (logo_tienda).
 */

/* ==========================================================================
   1. CONTENEDORES Y PLACEHOLDERS (PREVENCIÓN DE CLS)
   ========================================================================== */
.feedads-slot {
    display: block;
    width: 100%;
    margin: 20px auto;
    position: relative;
    box-sizing: border-box;
    transition: opacity 0.3s ease-in-out;
}

.feedads-slot.feedads-placeholder {
    background: #fcfcfc;
    border-radius: 8px;
    border: 1px dashed #e2e4e7;
}

.feedads-slot.feedads-placeholder.feedads-cuadrado {
    min-height: 290px;
    max-width: 300px;
}

.feedads-slot.feedads-placeholder.feedads-horizontal {
    min-height: 100px;
    max-width: 100%;
}

.feedads-slot.feedads-placeholder.feedads-vertical {
    min-height: 580px;
    max-width: 300px;
}

.feedads-slot.feedads-loaded {
    opacity: 1;
    animation: feedadsFadeIn 0.3s ease-out forwards;
}

@keyframes feedadsFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   2. TARJETA DE BANNER COMÚN
   ========================================================================== */
.feedads-banner {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.feedads-banner:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
   /* transform: translateY(-2px);*/
}

.feedads-banner a {
    display: flex !important;
    text-decoration: none !important;
    color: inherit !important;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    outline: none;
    position: relative;
}

.feedads-banner a:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.feedads-banner img.feedads-product-img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #ffffff;
    width: 100%;
    height: 100%;
}

.feedads-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.feedads-title {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    word-break: break-word;
}

.feedads-banner:hover .feedads-title {
    color: #0f172a;
}

/* Precios y Ofertas (regular_price y sale_price) */
.feedads-price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.feedads-banner.feedads-cuadrado .feedads-price-container {
    justify-content: center;
}

.feedads-banner.feedads-horizontal .feedads-price-container {
    justify-content: flex-start;
}

.feedads-price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.feedads-price {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #e11d48;
    display: inline-block;
    line-height: 1.2;
}

.feedads-price.feedads-sale-price {
    font-size: 16px;
    font-weight: 800;
    color: #e11d48;
}

.feedads-price-regular {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
    display: inline-block;
    line-height: 1.2;
}

/* Badge llamativo "En oferta !" */
.feedads-sale-badge {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    background: #dc2626;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.3;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
    white-space: nowrap;
}

/* Frase promocional (feedads_phrase) */
.feedads-phrase {
    font-family: inherit;
    font-size: 8px;
    font-weight: 700;
    color: #333333;
    background: rgba(255, 230, 133, 0.74);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: inline-block;
    width: fit-content;
}

.feedads-phrase.feedads-phrase-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 230, 133, 0.74);
    color: #333333;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 8px;
    letter-spacing: 0.4px;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Logo de la tienda (logo_tienda) */
.feedads-store-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feedads-store-logo img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
    transition: opacity 0.2s ease;
}


/* ==========================================================================
   3. FORMATO CUADRADO
   ========================================================================== */
.feedads-banner.feedads-cuadrado {
    max-width: 300px;
    margin: 0 auto;
}

.feedads-banner.feedads-cuadrado a {
    flex-direction: column;
}

.feedads-banner.feedads-cuadrado .feedads-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}


.feedads-banner.feedads-cuadrado .feedads-info {
    padding: 12px 14px;
    text-align: center;
}

.feedads-banner.feedads-cuadrado .feedads-store-logo {
    padding: 0 14px 10px;
    justify-content: flex-end;
}

.feedads-banner.feedads-cuadrado .feedads-store-logo img {
    max-height: 26px;
    max-width: 100px;
    opacity: 0.85;
}


/* ==========================================================================
   4. FORMATO HORIZONTAL
   ========================================================================== */
.feedads-banner.feedads-horizontal {
    max-width: 850px;
    margin: 0 auto;
}

.feedads-banner.feedads-horizontal a {
    flex-direction: row;
    align-items: center;
}

.feedads-banner.feedads-horizontal .feedads-img-wrapper {
    width: 120px;
    min-width: 120px;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    border-right: 1px solid #f1f5f9;
    background: #ffffff;
}


/*
.feedads-banner.feedads-horizontal img.feedads-product-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
}*/

.feedads-banner.feedads-horizontal .feedads-info {
    padding: 12px 18px;
    text-align: left;
    flex: 1;
}

.feedads-banner.feedads-horizontal .feedads-store-logo {
    padding: 10px 18px;
    margin-left: auto;
    border-left: 1px dashed #f1f5f9;
}

.feedads-banner.feedads-horizontal .feedads-store-logo img {
    max-height: 42px;
    max-width: 130px;
}

/* Responsivo en móviles (< 600px) */
@media screen and (max-width: 600px) {
    .feedads-banner.feedads-horizontal a {
        flex-direction: column;
        text-align: center;
    }

    .feedads-banner.feedads-horizontal .feedads-img-wrapper {
        width: 100%;
        min-width: 100%;
        height: 160px;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .feedads-banner.feedads-horizontal .feedads-info {
        padding: 12px 14px;
        text-align: center;
    }

    .feedads-banner.feedads-horizontal .feedads-price-container {
        justify-content: center;
    }

    .feedads-banner.feedads-horizontal .feedads-store-logo {
        border-left: none;
        border-top: 1px dashed #f1f5f9;
        margin: 0 auto;
        padding: 8px 12px;
        width: 100%;
    }
}


/* ==========================================================================
   5. FORMATO VERTICAL (BLOQUES CUADRADOS APILADOS)
   ========================================================================== */
.feedads-vertical-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.feedads-vertical-container .feedads-banner.feedads-cuadrado {
    margin: 0;
    width: 100%;
}


/* ==========================================================================
   6. INTEGRACIÓN GENERATEPRESS: MENÚ STICKY (SOLO ESCRITORIO)
   ========================================================================== */
.main-navigation:not(.navigation-stick):not(.is_stuck) .feedads-gp-sticky-wrap {
    display: none;
}


.feedads-gp-sticky-wrap {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 24px;
    max-height: 46px;
    box-sizing: border-box;
}

.feedads-gp-sticky-slot.feedads-slot {
    margin: 0 !important;
    min-height: 42px !important;
    width: auto;
    /*max-width: 600px;*/
}

.feedads-gp-sticky-slot.feedads-placeholder {
    min-width: 260px;
    height: 42px;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal {
    height: 44px;
    max-height: 44px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin: 0;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-img-wrapper {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 3px;
    border-right: 1px solid #f1f5f9;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-info {
    padding: 2px 10px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-phrase {
    display: none;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
   /* max-width: 212px;*/
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-price-container {
    margin-top: 0;
    gap: 5px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-price,
.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-price.feedads-sale-price {
    font-size: 12.5px;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-price-regular {
    font-size: 11px;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-sale-badge {
    font-size: 9px;
    padding: 1px 5px;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-store-logo {
    padding: 2px 8px;
    border-left: 1px dashed #e2e8f0;
}

.feedads-gp-sticky-slot .feedads-banner.feedads-horizontal .feedads-store-logo img {
    max-height: 22px;
    /*max-width: 65px;*/
}

@media screen and (max-width: 768px) {
    .feedads-gp-sticky-wrap {
        display: none !important;
    }
}


/* ==========================================================================
   7. INTEGRACIÓN GENERATEPRESS: BARRA FLOTANTE INFERIOR (SOLO MÓVIL)
   ========================================================================== */
@media screen and (min-width: 769px) {
    .feedads-mobile-fixed-bar {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .feedads-mobile-fixed-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99990;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
        transform: translateY(120%);
        opacity: 0;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    }

    .feedads-mobile-fixed-bar.is-visible {
        transform: translateY(0);
        opacity: 1;
    }

    .feedads-mobile-fixed-bar.is-dismissed {
        transform: translateY(120%);
        opacity: 0;
    }

    .feedads-mobile-fixed-inner {
        position: relative;
        max-width: 420px;
        margin: 0 auto;
        pointer-events: auto;
    }

    .feedads-mobile-close {
        position: absolute;
        top: -9px;
        right: -5px;
        z-index: 5;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #1e293b;
        color: #ffffff;
        border: 2px solid #ffffff;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    }

    .feedads-mobile-fixed-slot.feedads-slot {
        margin: 0 !important;
        min-height: 0 !important;
    }

    .feedads-mobile-fixed-slot.feedads-placeholder {
        border: none;
        background: transparent;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal {
        height: 64px;
        max-height: 64px;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
        background: #ffffff;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal a {
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-img-wrapper {
        width: 58px !important;
        min-width: 58px !important;
        height: 58px !important;
        padding: 4px !important;
        border-bottom: none !important;
        border-right: 1px solid #f1f5f9 !important;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-info {
        padding: 5px !important;
        text-align: left !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-phrase {
        font-size: 8px !important;
        margin-bottom: 1px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-title {
        font-size: 12px !important;
        line-height: 1.25 !important;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-price-container {
        justify-content: flex-start !important;
        margin-top: 2px !important;
        gap: 5px !important;
        flex-wrap: nowrap !important;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-price,
    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-price.feedads-sale-price {
        font-size: 13px !important;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-price-regular {
        font-size: 11px !important;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-sale-badge {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-store-logo {
        width: auto !important;
        padding: 4px 10px !important;
        margin: 0 !important;
        border-top: none !important;
        border-left: 1px dashed #f1f5f9 !important;
    }

    .feedads-mobile-fixed-slot .feedads-banner.feedads-horizontal .feedads-store-logo img {
        max-height: 24px !important;
        max-width: 60px !important;
    }
}


/*Fix Theme Generatepress*/
/*Importante, estos estilos están centrados específicamente en el hedar sticky, donde obviamente el theme mete muchos estilos. Estos ajustes sirven bien para GeneratePress*/


div.feedads-img-wrapper img.feedads-product-img, div.feedads-store-logo img{
    padding: unset ;
}



#sticky-navigation .inside-navigation {
  flex-wrap: nowrap !important;
}

.navigation-branding {
  min-width: 0 !important;
}

.sticky-navigation-logo img.is-logo-image {
  min-width: fit-content !important;
}
/* ACÁ*/

.feedads-gp-sticky-wrap {
  overflow: hidden !important;
}

.feedads-gp-sticky-wrap .feedads-slot,
.feedads-gp-sticky-wrap .feedads-banner,
.feedads-gp-sticky-wrap .feedads-banner > a {
  overflow: hidden !important;
}

#primary-menu,
#menu-menu-principal,
.menu-bar-items,
.menu-bar-items .boton-principal {
  flex-wrap: nowrap !important;
}

#menu-menu-principal > li.menu-item,
#menu-menu-principal > li.menu-item > a,
.youzify-primary-nav-settings,
.menu-bar-items a.gb-button {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}


.feedads-gp-sticky-wrap {
  padding-right: 1px;
}