/* ═══════════════════════════════════════════════════════════════
   Refrigeración VC — Ofertas Landing
   Diseño: Dark premium, glassmorphism, micro-animaciones
═══════════════════════════════════════════════════════════════ */

/* ── Variables locales ── */
.ofertas-landing {
    --ol-ink:          #060f1c;
    --ol-panel:        rgba(255, 255, 255, 0.04);
    --ol-border:       rgba(255, 255, 255, 0.09);
    --ol-border-hover: rgba(226, 45, 27, 0.38);
    --ol-amber:        #E22D1B;
    --ol-amber-dk:     #e5a620;
    --ol-red:          #e53935;
    --ol-green:        #16936b;
    --ol-text:         rgba(255, 255, 255, 0.82);
    --ol-muted:        rgba(255, 255, 255, 0.44);
    --ol-radius-sm:    10px;
    --ol-radius-md:    16px;
    --ol-radius-lg:    24px;
    --ol-trans:        0.2s ease;
    background: var(--ol-ink);
    min-height: 100vh;
    color: var(--ol-text);
}

.ol-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

/* ════════════════════════════════════════
   HERO BRUTALISTA / INDUSTRIAL
════════════════════════════════════════ */
.ol-hero {
    position: relative;
    overflow: hidden;
    background: #040911;
    border-bottom: 4px solid var(--ol-amber);
    padding: 60px 0 0; /* marquee at bottom */
}

/* Textura grilla industrial */
.ol-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

.ol-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding-bottom: 60px;
}

/* ── Typografía ── */
.ol-hero-content {
    display: flex;
    flex-direction: column;
}

.ol-hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin: 0 0 24px 0;
}

.ol-title-line {
    color: #fff;
}

.ol-title-amber {
    color: var(--ol-amber);
    text-shadow: 4px 4px 0px rgba(226, 45, 27, 0.2);
}

.ol-hero-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--ol-text);
    max-width: 42ch;
    margin-bottom: 24px;
    font-weight: 500;
}

/* ── Countdown Brutal ── */
.ol-countdown-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    background: #000;
    border: 2px solid #fff;
    padding: 16px 20px;
    width: fit-content;
    box-shadow: 6px 6px 0 var(--ol-red);
    transform: rotate(-1deg);
}

.ol-cd-lbl {
    color: var(--ol-red);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ol-countdown {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ol-cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ol-cd-box span {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.ol-cd-box small {
    font-size: 0.65rem;
    color: var(--ol-muted);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.ol-cd-sep {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ol-red);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Stats ── */
.ol-industrial-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.ol-istat {
    display: flex;
    flex-direction: column;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--ol-amber);
}

.ol-istat-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.ol-istat-lbl {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--ol-muted);
    letter-spacing: 0.1em;
}

/* ── Botón Brutal ── */
.ol-btn-brutal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ol-amber);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 18px 36px;
    text-decoration: none;
    border: 3px solid #000;
    box-shadow: 6px 6px 0px rgba(255,255,255,0.1);
    transition: all 0.15s ease;
    width: fit-content;
}

.ol-btn-brutal:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px rgba(226, 45, 27, 0.28);
    background: #fff;
    color: var(--ink);
}

/* ── Spotlight flotante ── */
.ol-hero-spotlight {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ol-spot-link {
    position: relative;
    display: block;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ol-spot-link:hover {
    transform: scale(1.05) rotate(-2deg);
}

.ol-spot-img {
    max-width: 100%;
    width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.8));
    position: relative;
    z-index: 2;
}

.ol-sticker-discount {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--ol-red);
    color: #fff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    z-index: 3;
    transform: rotate(15deg);
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.4);
    border: 4px dashed #fff;
}

.ol-spot-meta {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: #fff;
    padding: 16px 24px;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 rgba(226, 45, 27, 1);
    z-index: 3;
    transform: rotate(-3deg);
    min-width: 260px;
}

.ol-spot-name {
    font-size: 1rem;
    color: #000;
    font-weight: 900;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.ol-spot-prices {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ol-price-sale {
    color: var(--ol-red);
    font-size: 1.4rem;
    font-weight: 900;
}

.ol-price-sale .woocommerce-Price-amount { font-size: inherit; color: inherit; }

.ol-price-reg {
    color: #666;
    font-size: 0.9rem;
    text-decoration: line-through;
    font-weight: 700;
}

.ol-price-reg .woocommerce-Price-amount { font-size: inherit; color: inherit; }

/* ── Cinta de peligro (Marquee) ── */
.ol-marquee {
    background: var(--ol-amber);
    color: #000;
    overflow: hidden;
    padding: 12px 0;
    border-top: 2px solid #000;
    display: flex;
    width: 100%;
}

.ol-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
}

.ol-marquee-track span {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0 30px;
}

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

/* ════════════════════════════════════════
   SECCIÓN GRILLA
════════════════════════════════════════ */
.ol-section {
    padding: 72px 0 96px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ol-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.ol-section-kicker {
    display: block;
    color: var(--ol-amber);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.ol-section-title {
    color: #fff;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
}

.ol-link-shop {
    color: var(--ol-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--ol-trans);
}

.ol-link-shop:hover {
    color: var(--ol-amber);
}

/* ── Grid de products ── */
.ol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* ── Product card ── */
.ol-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--ol-radius-md);
    border: 1px solid var(--ol-border);
    background: var(--ol-panel);
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: border-color var(--ol-trans), transform var(--ol-trans), box-shadow var(--ol-trans);
}

.ol-product-card:hover {
    border-color: var(--ol-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
}

/* Badge porcentaje */
.ol-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ol-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

/* Imagen */
.ol-card-image-link {
    display: block;
}

.ol-card-image {
    display: grid;
    place-items: center;
    min-height: 185px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--ol-border);
    overflow: hidden;
}

.ol-card-image img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    padding: 18px;
    transition: transform 0.26s ease;
}

.ol-product-card:hover .ol-card-image img {
    transform: scale(1.06);
}

/* Body */
.ol-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
    gap: 5px;
}

.ol-card-cat {
    color: rgba(226, 45, 27, 0.7);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ol-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ol-card-name a {
    color: #fff;
    text-decoration: none;
}

.ol-card-name a:hover {
    color: var(--ol-amber);
}

/* Precios */
.ol-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}

.ol-card-price-sale {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
}

.ol-card-price-sale .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

.ol-card-price-reg {
    color: var(--ol-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: line-through;
}

.ol-card-price-reg .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

/* Pill ahorro */
.ol-card-savings {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(22, 147, 107, 0.1);
    border: 1px solid rgba(22, 147, 107, 0.22);
    color: #4ade9e;
    font-size: 0.6rem;
    font-weight: 800;
    margin-top: 4px;
}

.ol-card-savings .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

/* CTA card */
.ol-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 12px;
    padding-bottom: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 12px;
    color: var(--ol-amber);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color var(--ol-trans), letter-spacing var(--ol-trans);
}

.ol-card-btn::after {
    content: " →";
}

.ol-card-btn:hover {
    color: var(--ol-amber-dk);
    letter-spacing: 0.09em;
}

/* ════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════ */
.ol-empty-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.ol-empty {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 0;
}

.ol-empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.ol-empty h2 {
    color: #fff;
    margin-bottom: 10px;
}

.ol-empty p {
    color: var(--ol-muted);
    margin-bottom: 28px;
    max-width: 36ch;
    margin-inline: auto;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ol-hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .ol-hero-spotlight {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ol-hero-title {
        font-size: 13vw;
    }
    
    .ol-hero-desc {
        font-size: 1rem;
    }
    
    .ol-industrial-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .ol-istat-val {
        font-size: 1.5rem;
    }
    
    .ol-spot-meta {
        left: 0;
        bottom: -20px;
        width: 90%;
        max-width: 320px;
    }
    
    .ol-sticker-discount {
        width: 80px;
        height: 80px;
        font-size: 1.4rem;
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 640px) {
    .ol-hero {
        padding: 40px 0 0;
    }
    
    .ol-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ol-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ol-section {
        padding: 52px 0 72px;
    }
}

@media (max-width: 400px) {
    .ol-grid {
        grid-template-columns: 1fr;
    }
}

/* Brand scale correction */
:root {
    --ol-border-hover: rgba(226, 45, 27, 0.38);
    --ol-amber: #E22D1B;
    --ol-amber-dk: #ff6f61;
}

.ol-hero-title {
    text-shadow: 3px 3px 0 rgba(226, 45, 27, 0.18);
}

.ol-card-btn {
    color: #ff6f61;
    font-size: 0.72rem;
    letter-spacing: 0.035em;
}

.ol-card-btn:hover {
    color: #fff;
    letter-spacing: 0.045em;
}
