/* ============================================================
   FWP NOVEDADES
   ============================================================ */
.fwp-novedades {
    position: relative;
    padding: 64px 0 72px;
    overflow: hidden;
    background-color: #000;
    background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* ── Orbs decorativos ─────────────────────────────────────── */
.fwp-nov-bg-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fwp-nov-deco-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: fwpNovFloat 10s ease-in-out infinite alternate;
}
.fwp-nov-deco-orb--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, .22) 0%, rgba(79, 70, 229, .10) 60%, transparent 100%);
    top: -160px; left: -100px;
    animation-duration: 11s;
}
.fwp-nov-deco-orb--2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(255, 103, 0, .16) 0%, rgba(234, 88, 12, .07) 60%, transparent 100%);
    bottom: -100px; right: -80px;
    animation-duration: 13s;
    animation-delay: -5s;
}
@keyframes fwpNovFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(35px, 25px) scale(1.12); }
}

.fwp-novedades .container { position: relative; z-index: 1; padding: 0 40px; max-width: 1500px; margin: 0 auto; }

/* ── Header ──────────────────────────────────────────────── */
.fwp-nov-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
    flex-wrap: wrap;
}
.fwp-nov-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #eddb85;
    margin-bottom: 10px;
}
.fwp-nov-pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #eddb85;
    display: inline-block;
    animation: fwpNovPulse 1.6s ease-in-out infinite;
}
@keyframes fwpNovPulse {
    0%, 100% { transform: scale(1);   opacity: 1; box-shadow: 0 0 0 0 rgba(237,219,133,.6); }
    50%       { transform: scale(1.3); opacity: .8; box-shadow: 0 0 0 6px rgba(237,219,133,0); }
}
.fwp-nov-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,.55) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fwp-nov-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Arrows ─────────────────────────────────────────────── */
.fwp-nov-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #f9e9aa;
    border: 1.5px solid #f9e9aa;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background .25s, border-color .25s, transform .25s;
    flex-shrink: 0;
}
.fwp-nov-arrow svg { width: 18px; height: 18px; }
.fwp-nov-arrow.fwp-nov-next,
.fwp-nov-arrow.fwp-nov-prev {
    background: #eddb85;
    border-color: #eddb85;
}
.fwp-nov-arrow:hover {
    background: #eddb85;
    border-color: #eddb85;
    color: #fff !important;
    transform: scale(1.08);
}

/* ── "Ver todos" link ────────────────────────────────────── */
.fwp-nov-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    background: #f9e9aa;
    border: 1.5px solid #f9e9aa;
    transition: background .25s, border-color .25s, color .25s;
    white-space: nowrap;
}
.fwp-nov-all-link svg { width: 15px; height: 15px; transition: transform .25s; }
.fwp-nov-all-link:hover {
    background: #eddb85;
    border-color: #eddb85;
    color: #fff !important;
}
.fwp-nov-all-link:hover svg { transform: translateX(3px); }

/* ── Viewport + Track ────────────────────────────────────── */
.fwp-nov-viewport {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-image:         linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}
.fwp-nov-viewport:active { cursor: grabbing; }

.fwp-nov-track {
    display: flex;
    gap: 20px;
    padding: 8px 4px 20px;
    will-change: transform;
}

/* ── Cards ───────────────────────────────────────────────── */
.fwp-nov-card {
    flex: 0 0 calc(20% - 16px);
    max-width: 260px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    /* Entrance animation (triggered by JS adding .fwp-nov-visible) */
    opacity: 0;
    transform: translateY(36px) scale(.97);
    transition:
        opacity .55s ease,
        transform .55s ease,
        box-shadow .35s ease;
}
.fwp-nov-card.fwp-nov-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.fwp-nov-card:hover {
    box-shadow:
        0 0 0 2px #eddb85,
        0 20px 50px rgba(237,219,133,.25),
        0 8px 20px rgba(0,0,0,.35);
    transform: translateY(-10px) scale(1.01);
}

/* ── Image ───────────────────────────────────────────────── */
.fwp-nov-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #dddbd9;
}
.fwp-nov-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.fwp-nov-card:hover .fwp-nov-img { transform: scale(1.09); }

/* ── Badge ───────────────────────────────────────────────── */
.fwp-nov-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    background: #eddb85;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(237,219,133,.5);
}
.fwp-nov-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #000;
    flex-shrink: 0;
    animation: fwpNovPulse 1.6s ease-in-out infinite;
}

/* ── Overlay ─────────────────────────────────────────────── */
.fwp-nov-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,39,68,.75) 0%, rgba(12,39,68,.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity .35s;
    z-index: 2;
}
.fwp-nov-card:hover .fwp-nov-overlay { opacity: 1; }

.fwp-nov-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eddb85;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 50px;
    transform: translateY(12px);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .25s;
    box-shadow: 0 4px 16px rgba(237,219,133,.5);
}
.fwp-nov-view-btn svg { width: 14px; height: 14px; }
.fwp-nov-card:hover .fwp-nov-view-btn { transform: translateY(0); }
.fwp-nov-view-btn:hover { background: #f9e9aa; color: #fff !important; }

/* ── Card info ───────────────────────────────────────────── */
.fwp-nov-info {
    padding: 14px 16px 16px;
    position: relative;
}
.fwp-nov-name {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fwp-nov-price .woocommerce-Price-amount,
.fwp-nov-price .amount {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #c9ab2e !important;
}
/* Barra dorada inferior — crece en hover */
.fwp-nov-card-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #eddb85, #f9e9aa);
    border-radius: 0 0 18px 18px;
    transition: width .4s ease;
}
.fwp-nov-card:hover .fwp-nov-card-bar { width: 100%; }

/* ── Add to cart button ──────────────────────────────────── */
.fwp-nov-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1.5px solid #eddb85;
    background: #eddb85;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, border-color .25s, color .25s, transform .2s;
    width: 100%;
    justify-content: center;
}
.fwp-nov-add-btn:hover {
    background: #000;
    border-color: #eddb85;
    color: #fff !important;
    transform: translateY(-1px);
}
.fwp-nov-add-btn--cart:hover {
    background: #000;
    border-color: #eddb85;
    color: #fff !important;
}

/* ── Progress bar + counter ──────────────────────────────── */
.fwp-nov-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}
.fwp-nov-progress {
    flex: 1;
    height: 3px;
    background: rgba(221,217,217,.25);
    border-radius: 2px;
    overflow: hidden;
}
.fwp-nov-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #eddb85, #f9e9aa);
    border-radius: 2px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
}
.fwp-nov-counter {
    color: rgba(255,255,255,.45);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .fwp-nov-card { flex: 0 0 calc(33.33% - 14px); }
}
@media (max-width: 768px) {
    .fwp-novedades { padding: 44px 0 52px; }
    .fwp-novedades .container { padding: 0 20px; }
    .fwp-nov-card { flex: 0 0 calc(50% - 10px); }
    .fwp-nov-title { font-size: 28px; }
    .fwp-nov-all-link span { display: none; }
}
@media (max-width: 480px) {
    .fwp-novedades .container { padding: 0 16px; }
    .fwp-nov-card { flex: 0 0 calc(75vw); }
    .fwp-nov-all-link { display: none; }
}
