/* DT24 Home V2 — Frontend CSS
   Basado en DESIGN.md de Stitch: "Detodo24 Professional Commerce"
   Fuente de verdad: stitch-mobile-design.md
*/

/* ── Variables ── */
:root {
    --dt24-primary:          #003d9b;
    --dt24-primary-dark:     #0052cc;
    --dt24-accent:           #F26419;
    --dt24-surface:          #f8f9fb;
    --dt24-surface-low:      #f3f4f6;
    --dt24-surface-mid:      #edeef0;
    --dt24-surface-high:     #e7e8ea;
    --dt24-on-surface:       #191c1e;
    --dt24-on-surface-muted: #434654;
    --dt24-outline:          #c3c6d6;
    --dt24-white:            #ffffff;
    --dt24-radius-sm:        0.5rem;
    --dt24-radius-md:        0.75rem;
    --dt24-radius-lg:        1rem;
    --dt24-radius-xl:        1.5rem;
    --dt24-shadow-soft:      0 4px 20px -2px rgba(9,30,66,.05), 0 2px 10px -2px rgba(9,30,66,.03);
    --dt24-shadow-hover:     0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    --dt24-max-width:        1280px;
    --dt24-gutter:           24px;
    --dt24-section-gap:      80px;
    --dt24-section-gap-mob:  48px;
}

/* ── Reset & Base ── */
.dt24-hv2-wrap { background: var(--dt24-surface); font-family: 'Inter', sans-serif; color: var(--dt24-on-surface); }
.dt24-hv2-wrap *, .dt24-hv2-wrap *::before, .dt24-hv2-wrap *::after { box-sizing: border-box; }
.dt24-hv2-wrap a { text-decoration: none; color: inherit; }
.dt24-hv2-wrap img { max-width: 100%; display: block; }

/* ── Full width breakout ── */
.dt24-hv2-wrap--fullwidth {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

/* ── Container ── */
.dt24-hv2-container {
    max-width: var(--dt24-max-width);
    margin: 0 auto;
    padding: 0 var(--dt24-gutter);
}

/* ── Section spacing ── */
.dt24-hv2-section { padding: var(--dt24-section-gap) 0; }
.dt24-hv2-section--sm { padding: 32px 0; }

/* ── Section header ── */
.dt24-hv2-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.dt24-hv2-section-title { font-size: 24px; font-weight: 600; line-height: 32px; color: #00063D; }
.dt24-hv2-section-link { font-size: 14px; font-weight: 700; color: var(--dt24-primary); }
.dt24-hv2-section-link:hover { text-decoration: underline; }

/* ── Scrollbar hide ── */
.dt24-hv2-scroll-x { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.dt24-hv2-scroll-x::-webkit-scrollbar { display: none; }

/* ── Brand Cards ── */
.dt24-hv2-brands { display: flex; gap: 16px; padding: 24px 0 16px; }
.dt24-hv2-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.dt24-hv2-brand__img-wrap {
    width: 100px; height: 70px;
    background: var(--dt24-white);
    border: 1px solid var(--dt24-outline);
    border-radius: var(--dt24-radius-sm);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: box-shadow .2s;
}
.dt24-hv2-brand:hover .dt24-hv2-brand__img-wrap { box-shadow: var(--dt24-shadow-soft); }
.dt24-hv2-brand__img-wrap img { width: 48px; height: 48px; object-fit: contain; }
.dt24-hv2-brand__label { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dt24-on-surface-muted); }
.dt24-hv2-brand:hover .dt24-hv2-brand__label { color: var(--dt24-primary); }

/* ── Hero Banner ── */
.dt24-hv2-hero {
    position: relative; width: 100%; height: 500px;
    border-radius: var(--dt24-radius-xl); overflow: hidden;
    background: var(--dt24-surface-low);
}
.dt24-hv2-hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .7s;
}
.dt24-hv2-hero:hover .dt24-hv2-hero__bg { transform: scale(1.05); }
.dt24-hv2-hero__content {
    position: absolute; inset-y: 0; left: 0;
    display: flex; align-items: center;
    padding-left: 48px;
}
.dt24-hv2-hero__card {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    padding: 48px; max-width: 420px;
    border-radius: var(--dt24-radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.2);
}
.dt24-hv2-hero__title { font-size: 48px; font-weight: 600; line-height: 56px; letter-spacing: -.02em; margin-bottom: 16px; }
.dt24-hv2-hero__subtitle { font-size: 16px; color: var(--dt24-on-surface-muted); margin-bottom: 32px; }
.dt24-hv2-hero__cta {
    display: inline-block;
    background: var(--dt24-primary); color: var(--dt24-white);
    padding: 16px 32px; border-radius: var(--dt24-radius-sm);
    font-weight: 700; font-size: 16px;
    transition: background .2s, transform .1s;
}
.dt24-hv2-hero__cta:hover { background: var(--dt24-primary-dark); }
.dt24-hv2-hero__cta:active { transform: scale(.95); }

/* ── Product Card ── */
.dt24-hv2-product-grid { display: grid; gap: 32px; grid-template-columns: repeat(5, 1fr); }
.dt24-hv2-product-card {
    background: var(--dt24-white);
    border-radius: var(--dt24-radius-xl);
    box-shadow: var(--dt24-shadow-soft);
    display: flex; flex-direction: column;
    transition: transform .3s, box-shadow .3s;
    overflow: hidden;
}
.dt24-hv2-product-card:hover { transform: translateY(-4px); box-shadow: var(--dt24-shadow-hover); }
.dt24-hv2-product-card__img-wrap {
    aspect-ratio: 1; position: relative;
    padding: 32px; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.dt24-hv2-product-card__img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.dt24-hv2-product-card:hover .dt24-hv2-product-card__img-wrap img { transform: scale(1.05); }
.dt24-hv2-product-card__badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--dt24-accent); color: var(--dt24-white);
    font-size: 12px; font-weight: 700;
    padding: 4px 8px; border-radius: 9999px; z-index: 1;
}
.dt24-hv2-product-card__body {
    padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px;
    border-top: 1px solid rgba(195,198,214,.3);
}
.dt24-hv2-product-card__name { font-size: 16px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.dt24-hv2-product-card__footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.dt24-hv2-product-card__price { font-size: 20px; font-weight: 700; color: var(--dt24-accent); }
.dt24-hv2-product-card__price-old { font-size: 14px; color: var(--dt24-on-surface-muted); text-decoration: line-through; }
.dt24-hv2-product-card__cart {
    background: var(--dt24-surface-mid); color: var(--dt24-primary);
    border: none; cursor: pointer;
    width: 40px; height: 40px; border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.dt24-hv2-product-card__cart:hover { background: var(--dt24-primary); color: var(--dt24-white); }

/* ── Horizontal scroll carousel ── */
.dt24-hv2-carousel { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.dt24-hv2-carousel::-webkit-scrollbar { display: none; }
.dt24-hv2-carousel .dt24-hv2-product-card { flex-shrink: 0; width: 288px; scroll-snap-align: start; }

/* ── Responsive ── */
@media (max-width: 1024px) { .dt24-hv2-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .dt24-hv2-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .dt24-hv2-hero { height: auto; aspect-ratio: 4/5; }
    .dt24-hv2-hero__content { padding: 24px; align-items: flex-end; }
    .dt24-hv2-hero__card { padding: 24px; }
    .dt24-hv2-hero__title { font-size: 32px; line-height: 40px; }
    .dt24-hv2-section { padding: var(--dt24-section-gap-mob) 0; }
    .dt24-hv2-brands .dt24-hv2-brand__img-wrap { width: 80px; height: 64px; }
}
@media (max-width: 480px) { .dt24-hv2-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
