/* dc-hero.css — Dormicentro
   Estilos del hero de la home.
   Incluir en app.blade.php:
   <link rel="stylesheet" href="{{ asset('css/dc-hero.css') }}">
*/

/* ===== HERO WRAP ===== */
.hk-hero-wrap { position: relative; }
.hk-hero-wrap .row { align-items: stretch; }

/* ===== IMAGEN BANNER ===== */
.hk-hero-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1477 / 500;
    min-height: 220px;
    max-height: 440px;
}
.hk-hero-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.hk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(15,8,35,.85) 0%,
        rgba(15,8,35,.6) 45%,
        rgba(15,8,35,.15) 100%);
}

/* ===== CONTENIDO SOBRE EL BANNER ===== */
.hk-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}
@media (min-width: 768px) {
    .hk-hero-content {
        left: 40px;
        right: auto;
        max-width: 420px;
    }
}
.hk-hero-addr {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    margin-bottom: 10px;
}
.hk-hero-promos {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hk-promo {
    font-size: 12px;
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    gap: 7px;
}
.hk-promo-dot {
    width: 5px;
    height: 5px;
    background: #dd99ff;
    border-radius: 50%;
    flex-shrink: 0;
}
.hk-hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hk-btn-p {
    background: #8800cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.hk-btn-p:hover { background: #6a009e; color: #fff; text-decoration: none; }
.hk-btn-g {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 0.5px solid rgba(255,255,255,.35);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.hk-btn-g:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }

/* ===== SIDEBAR OFERTAS ===== */
.hk-hero-side {
    background: #fff;
    border-left: 0.5px solid #eee;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    flex: 1;
}

/* ===== CARDS DE OFERTA ===== */
.hk-oferta {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #2d1b69 center/cover no-repeat;
}

/* Card sobre el banner */
.hk-hero-content .hk-oferta {
    flex: 0 0 auto;
    width: 100%;
    min-height: 180px;
    margin-bottom: 14px;
}

/* Card en el sidebar */
.hk-hero-side .hk-oferta {
    flex: 0 0 auto;
    width: 100%;
    min-height: 160px;
    max-height: 45%;
}
.hk-hero-side .hk-o-tag.mt-3 { flex-shrink: 0; }

.hk-oferta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(15,8,35,.92) 0%,
        rgba(15,8,35,.4) 60%,
        transparent 100%);
    border-radius: 12px;
}
.hk-oferta-content { position: relative; z-index: 1; padding: 14px; }

.hk-o-tag {
    font-size: 10px;
    font-weight: 600;
    color: #8800cc;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 5px;
}
.hk-o-name { font-size: 15px; font-weight: 600; color: #1a0a2e; margin: 0 0 2px; }
.hk-o-desc { font-size: 11px; color: #888; margin: 0 0 7px; }
.hk-o-price-row { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; }
.hk-o-price { font-size: 20px; font-weight: 600; color: #8800cc; }
.hk-o-old { font-size: 12px; color: #ccc; text-decoration: line-through; }
.hk-o-badge {
    display: inline-block;
    background: #8800cc;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 9px;
}
.hk-o-btn {
    display: block;
    width: 100%;
    background: #8800cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.hk-o-btn:hover { background: #6a009e; color: #fff; text-decoration: none; }

/* ===== MOBILE ===== */
@media (max-width: 767px) {
    .hk-hero-img {
        min-height: 200px;
        aspect-ratio: auto;
        height: 260px;
    }
    .hk-hero-side {
        display: none !important;
    }
}
