﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* =========================
   ARCUS - HOME VENTAS 
   TEST TIPOGRAFÍA:
   Titles: Plus Jakarta Sans
   Body: Inter
========================= */

.hv-page {
    --hv-font-heading: 'Plus Jakarta Sans', sans-serif;
    --hv-font-body: 'Inter', sans-serif;
    font-family: var(--hv-font-body);
    padding: 2.75rem 2rem 4rem;
}

.hv-shell {
    max-width: 1380px;
    margin: 0 auto;
}

.hv-header {
    margin-bottom: 1.75rem;
}

.hv-header__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.hv-title {
    margin: 0 0 .35rem 0;
    font-family: var(--hv-font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--arcus-text);
}

.hv-subtitle {
    margin: 0;
    font-family: var(--hv-font-body);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(46,46,46,0.68);
}

/* =========================
   HEADER ACTIONS
========================= */

.hv-actions {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.hv-action-link {
    text-decoration: none;
    font-family: var(--hv-font-heading);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgba(46,46,46,0.88);
    padding: .65rem .95rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(46,46,46,0.10);
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .hv-action-link:hover {
        transform: translateY(-1px);
        border-color: rgba(255,107,90,0.22);
        box-shadow: 0 18px 42px rgba(0,0,0,0.08);
    }

/* =========================
   CARRITO
========================= */

.arcus-cart {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(46,46,46,0.10);
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    color: rgba(46,46,46,0.88) !important;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    flex: 0 0 auto;
    font-family: var(--hv-font-body);
}

    .arcus-cart:hover {
        transform: translateY(-1px);
        border-color: rgba(255,107,90,0.22);
        box-shadow: 0 18px 42px rgba(0,0,0,0.08);
        color: rgba(46,46,46,0.88) !important;
    }

.arcus-cart__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .arcus-cart__icon svg {
        width: 22px;
        height: 22px;
        display: block;
        stroke: currentColor;
        fill: none;
    }

.arcus-cart__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.78);
    color: #fff !important;
    font-family: var(--hv-font-body);
    font-weight: 800;
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    border: 2px solid rgba(248,245,241,0.98);
    z-index: 2;
}

.hv-section--hidden {
    display: none;
}

/* =========================
   WIDGET HERO 
========================= */

.hv-hero-widget {
    min-height: clamp(320px, 42vw, 470px);
    border-radius: 28px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}

.hv-hero-widget__content {
    max-width: 640px;
    color: #fff;
}

.hv-hero-widget__title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    margin: 0 0 .75rem;
    font-weight: 700;
    color: #fff;
}

.hv-hero-widget__text {
    font-size: clamp(.98rem, 1.2vw, 1.08rem);
    line-height: 1.6;
    margin: 0 0 1.25rem;
    color: rgba(255,255,255,.92);
    max-width: 560px;
}

.hv-hero-widget__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.08);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

    .hv-hero-widget__cta:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.14);
        border-color: rgba(255,255,255,.6);
        color: #fff;
    }

/* =========================
   SECCIONES
========================= */

.hv-section,
.hv-primary-block {
    margin-bottom: 2.8rem;
}

.hv-primary-block__head {
    margin-bottom: 1.25rem;
}

.hv-primary-block__title {
    margin: 0;
    font-family: var(--hv-font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.hv-group-label {
    margin: 1.15rem 0 .8rem;
    color: rgba(46,46,46,0.54);
    font-family: var(--hv-font-body);
    font-size: .94rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hv-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hv-section__title {
    margin: 0;
    font-family: var(--hv-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.hv-section__title--small {
    font-size: 1.35rem;
}

.hv-section__more {
    text-decoration: none;
    font-family: var(--hv-font-body);
    font-size: .96rem;
    font-weight: 700;
    color: #111;
    transition: opacity .18s ease;
}

    .hv-section__more:hover {
        opacity: .7;
    }

.hv-primary-divider {
    height: 2px;
    background: rgba(0,0,0,0.86);
    margin-top: 1.3rem;
}

/* =========================
   RAIL
========================= */

.hv-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (1.35rem * 5)) / 6);
    gap: 1.35rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: .35rem;
    scrollbar-width: none;
}

    .hv-rail::-webkit-scrollbar {
        display: none;
    }

/* =========================
   CARD
========================= */

.hv-card {
    min-width: 0;
}

.hv-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #f0f0f0;
    aspect-ratio: 1 / 1.18;
    margin-bottom: .9rem;
}

.hv-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

    .hv-card__image-link img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        padding: 1.2rem;
        transition: transform .28s ease;
    }

.hv-card:hover .hv-card__image-link img,
.hv-card:focus-within .hv-card__image-link img {
    transform: scale(1.03);
}

.hv-card__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .hv-card__favorite svg {
        width: 22px;
        height: 22px;
        fill: transparent;
        stroke: #111;
        stroke-width: 1.8;
        transition: transform .18s ease, fill .18s ease, stroke .18s ease;
    }

    .hv-card__favorite:hover svg {
        transform: scale(1.08);
    }

    .hv-card__favorite.is-active svg {
        fill: #ff6b5a;
        stroke: #ff6b5a;
    }

.hv-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: rgba(0,0,0,0.82);
    color: #fff;
    font-family: var(--hv-font-body);
    font-size: .86rem;
    font-weight: 800;
    padding: .33rem .58rem;
    line-height: 1;
}

.hv-card__quick-add {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    border: 0;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-family: var(--hv-font-body);
    font-size: .95rem;
    font-weight: 700;
    padding: .95rem 1rem;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform .26s ease, background .18s ease;
}

.hv-card:hover .hv-card__quick-add,
.hv-card:focus-within .hv-card__quick-add {
    transform: translateY(0);
}

.hv-card__quick-add:hover {
    background: #111;
}

.hv-card__meta {
    display: flex;
    flex-direction: column;
    gap: .32rem;
}

.hv-card__name {
    margin: 0;
    font-family: var(--hv-font-heading);
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: rgba(46,46,46,0.92);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .hv-card__name a {
        color: inherit;
        text-decoration: none;
    }

.hv-card__price {
    font-family: var(--hv-font-body);
    font-size: 1rem;
    font-weight: 800;
    color: rgba(46,46,46,0.92);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .hv-rail {
        grid-auto-columns: calc((100% - (1.1rem * 3)) / 4);
        gap: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hv-page {
        padding: 2rem 1rem 3rem;
    }

    .hv-header__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hv-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .hv-hero__placeholder {
        min-height: 250px;
        border-radius: 26px;
    }

    .hv-section__title {
        font-size: 1.45rem;
    }

    .hv-primary-block__title {
        font-size: 1.65rem;
    }

    .hv-rail {
        grid-auto-columns: calc((100% - 1rem) / 2);
        gap: 1rem;
    }

    .hv-card__quick-add {
        transform: translateY(0);
        font-size: .95rem;
        padding: .85rem .9rem;
    }
}
