/* /modules/iva-off/assets/css/frontend.css */

/* 1. Checkout Notes & Badges */
.gdos-ivaoff-note {
    margin: .5em 0 0;
    padding: .75em 1em;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.gdos-ivaoff-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    white-space: nowrap;
    margin-left: .5em;
    padding: .25em .6em;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 2. Animaciones */
@keyframes gdosSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes gdosPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes gdosBadgeShine {
    0% {
        left: -100%;
    }

    40%,
    100% {
        left: 200%;
    }
}

/* Badge shimmer overlay */
.gdos-ivaoff-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: gdosBadgeShine 4s ease-in-out infinite;
    pointer-events: none;
}

/* 3. Diseño Banner PDP Moderno (CENTRADO) */
.gdos-ivaoff-topbar {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    display: block;
    font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    background: var(--topbar-bg, #fff);
    color: var(--topbar-fg, #111827);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    animation: gdosSlideIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.gdos-ivaoff-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;

    /* CENTRADO PERFECTO */
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
    text-align: center;
}

.gdos-ivaoff-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.9;
    fill: currentColor;
    animation: gdosPulse 3s infinite ease-in-out;
    display: inline-block;
}

.gdos-ivaoff-content {
    display: inline-block;
}

.gdos-ivaoff-price-tag {
    font-weight: 800 !important;
    font-size: 1.15em;
    margin-left: 5px;
    opacity: 1;
    display: inline-block;
    vertical-align: baseline;
}

.gdos-acento {
    font-weight: 800 !important;
    opacity: 1;
    text-transform: uppercase;
}

/* 4. Blindaje */
#gdos-ivaoff-topbar b,
#gdos-ivaoff-topbar strong,
#gdos-ivaoff-topbar a {
    color: inherit !important;
    text-decoration: none !important;
}

/* 5. Mobile */
@media (max-width: 768px) {
    .gdos-ivaoff-topbar-inner {
        padding: 12px 16px;
        font-size: 13px;
        flex-wrap: wrap;
        line-height: 1.4;
        justify-content: center;
    }

    .gdos-ivaoff-icon {
        width: 18px;
        height: 18px;
    }
}

/* 6. Aviso de Cupón (ESTILO MINIMALISTA) */
p.gdos-ivaoff-avisocupon-final,
.gdos-ivaoff-avisocupon-final {
    display: block;
    width: 100%;
    box-sizing: border-box;

    /* Espaciado reducido (menos relleno) */
    margin: 10px 0;
    padding: 8px 12px;

    /* Alineación */
    text-align: center;

    /* Estilo Visual Sutil */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;

    /* Tipografía NORMAL (sin negrita) */
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    /* Normal */
    line-height: 1.4;
}