.home-page {
    --home-bg: #f5f7fb;
    --home-card: #ffffff;
    --home-border: #e7ebf3;
    --home-text: #18212f;
    --home-muted: #667085;
    --home-primary: #0d6efd;
    --home-primary-soft: rgba(13, 110, 253, 0.08);
    --home-success-soft: rgba(25, 135, 84, 0.10);
    --home-warning-soft: rgba(255, 193, 7, 0.15);
    --home-info-soft: rgba(13, 202, 240, 0.12);
    --home-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --home-shadow-hover: 0 22px 55px rgba(15, 23, 42, 0.12);
    --home-radius-xl: 24px;
    --home-radius-lg: 18px;
    --home-radius-md: 14px;
    color: var(--home-text);
}

/* =========================
   BASE
========================= */
.home-page a {
    text-decoration: none;
}

.home-page img {
    max-width: 100%;
    display: block;
}

.home-section-card,
.home-hero-panel,
.home-carousel-panel,
.home-benefit-card,
.home-category-card,
.home-product-card {
    background: var(--home-card);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow);
}

/* =========================
   HERO
========================= */
.home-hero-panel {
    border-radius: var(--home-radius-xl);
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.home-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    color: #111827;
}

.home-subtitle {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--home-muted);
    max-width: 48ch;
    margin: 0;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #f3f6fb;
    border: 1px solid #e5eaf3;
    color: #344054;
    font-size: 0.85rem;
    font-weight: 600;
}

.home-chip-success {
    background: #eefbf3;
    border-color: #d3f0dd;
    color: #157347;
}

.home-chip-dark {
    background: #eef2f7;
    border-color: #dde3ec;
    color: #253041;
}

.home-btn-main,
.home-btn-secondary {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 600;
}

.home-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-mini-stat {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 1rem 0.85rem;
}

.home-mini-stat small {
    display: block;
    color: var(--home-muted);
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.home-mini-stat strong {
    display: block;
    font-size: 1rem;
    color: #111827;
}

/* =========================
   CAROUSEL
========================= */
.home-carousel-panel {
    border-radius: var(--home-radius-xl);
    padding: 1rem;
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.home-carousel-card {
    border-radius: 20px;
    overflow: hidden;
    min-height: 100%;
}

.home-carousel-image-wrap {
    height: 100%;
    min-height: 360px;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.home-carousel-image {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
}

.home-carousel-noimage {
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 18px;
}

.home-carousel-content {
    padding: 2rem;
}

.home-carousel-title {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.home-carousel-title a {
    color: #111827;
}

.home-carousel-title a:hover {
    color: var(--home-primary);
}

.home-carousel-text {
    color: var(--home-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.home-carousel-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.home-carousel-price {
    font-size: 1.55rem;
    font-weight: 800;
    color: #111827;
}

.home-stock-badge {
    font-size: 0.8rem;
    padding: 0.55rem 0.8rem;
}

.home-carousel-indicators {
    margin-bottom: 0;
}

.home-carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
}

.home-carousel-control {
    width: 54px;
    opacity: 1;
}

.home-carousel-control .carousel-control-prev-icon,
.home-carousel-control .carousel-control-next-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background-color: rgba(17, 24, 39, 0.65);
    background-size: 50% 50%;
}

.home-carousel-empty {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--home-muted);
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

/* =========================
   BENEFICIOS
========================= */
.home-benefit-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: var(--home-radius-lg);
    padding: 1.15rem 1rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
}

.home-benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.home-benefit-icon-primary {
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

.home-benefit-icon-success {
    background: var(--home-success-soft);
    color: #198754;
}

.home-benefit-icon-warning {
    background: var(--home-warning-soft);
    color: #ad7b00;
}

.home-benefit-icon-info {
    background: var(--home-info-soft);
    color: #0c8599;
}

.home-benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: #111827;
}

.home-benefit-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.92rem;
}

/* =========================
   SECCIONES
========================= */
.home-section-card {
    border-radius: var(--home-radius-xl);
    padding: 1.5rem;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-section-head h2 {
    margin: 0 0 0.2rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.home-section-head p {
    margin: 0;
    color: var(--home-muted);
}

/* =========================
   CATEGORÍAS
========================= */
.home-category-card {
    border-radius: var(--home-radius-lg);
    padding: 1.25rem;
    height: 100%;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
    border-color: #dce4f0;
}

.home-category-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.85rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff4ff;
    color: var(--home-primary);
    font-size: 1.35rem;
}

.home-category-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.home-category-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.9rem;
}

/* =========================
   PRODUCTOS
========================= */
.home-product-card {
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--home-shadow-hover);
}

.home-product-image,
.home-product-noimage {
    width: 100%;
    height: 220px;
}

.home-product-image {
    object-fit: contain;
    background: linear-gradient(180deg, #fafcff 0%, #f3f6fb 100%);
    padding: 1rem;
}

.home-product-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    border-bottom: 1px solid var(--home-border);
}

.home-product-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    min-height: 240px;
}

.home-product-category {
    display: inline-block;
    color: var(--home-primary);
    background: #eef4ff;
    border: 1px solid #dce7ff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.home-product-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.65rem;
    min-height: 2.8em;
}

.home-product-title a {
    color: #111827;
}

.home-product-title a:hover {
    color: var(--home-primary);
}

.home-product-text {
    color: var(--home-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.home-product-footer {
    margin-top: auto;
}

.home-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.home-product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}

/* =========================
   REVEAL
========================= */
.js-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px) {
    .home-hero-panel,
    .home-carousel-panel,
    .home-section-card {
        padding: 1.2rem;
    }

    .home-carousel-content {
        padding: 1.35rem;
    }

    .home-carousel-image-wrap,
    .home-carousel-noimage {
        min-height: 280px;
    }
}

@media (max-width: 767.98px) {
    .home-mini-stats {
        grid-template-columns: 1fr;
    }

    .home-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-carousel-title {
        font-size: 1.35rem;
    }

    .home-carousel-price {
        font-size: 1.25rem;
    }

    .home-product-image,
    .home-product-noimage {
        height: 200px;
    }

    .home-product-body {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .home-title {
        font-size: 1.8rem;
    }

    .home-hero-panel,
    .home-carousel-panel,
    .home-section-card {
        border-radius: 18px;
    }

    .home-carousel-control {
        display: none;
    }

    .home-product-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}