/* Secciones del home. Colores y tipografía salen de los tokens --hovi-* de styles.css. */

.home-section { padding: 64px 0 0; }

/* ---------- Encabezados de sección ---------- */
.home-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.home-heading h2 {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 600;
    color: var(--hovi-charcoal);
}
.home-heading-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--hovi-bronze);
    border-bottom: 1px solid currentColor;
}
.home-heading-link:hover { color: var(--hovi-charcoal); }
/* ---------- Beneficios ---------- */
.home-benefits {
    background: var(--hovi-cream);
    border-bottom: 1px solid rgba(198, 157, 111, 0.35);
}
.home-benefits-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 24px;
    margin: 0;
    padding: 26px 0;
    list-style: none;
}
.home-benefits-list li { display: flex; align-items: center; gap: 16px; }
.home-benefits-list svg {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    color: #A67C52;
}
.home-benefits-list .home-benefit-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.home-benefits-list b { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 500; color: var(--hovi-charcoal); }
.home-benefits-list span { display: block; font-size: 12.5px; color: #6d6764; line-height: 1.4; }

/* ---------- Categorías (círculos) ---------- */
.home-cats { padding-top: 40px; }
.home-cat-list {
    display: flex;
    justify-content: center;
    gap: 22px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.home-cat { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 150px; text-align: center; }
.home-cat-img {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--hovi-gold);
    transition: box-shadow 0.25s, transform 0.25s;
}
.home-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.home-cat:hover .home-cat-img { box-shadow: 0 0 0 2px var(--hovi-charcoal); transform: translateY(-3px); }
.home-cat:hover .home-cat-img img { transform: scale(1.08); }
.home-cat-name { font-weight: 600; color: var(--hovi-charcoal); }

/* ---------- Productos ---------- */
.card-product-info .card-brand {
    display: block;
    margin-bottom: 2px;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hovi-bronze);
}

/* ---------- Compra por espacio ---------- */
.home-area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.home-area {
    position: relative;
    display: block;
    min-height: 340px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--hovi-charcoal);
}
.home-area img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.home-area::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(40, 38, 39, 0) 30%, rgba(40, 38, 39, 0.85) 100%);
}
.home-area:hover img { transform: scale(1.06); }
.home-area-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    color: #fff;
}
.home-area-name { font-size: 22px; font-weight: 600; }
.home-area-desc { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.home-area-cta { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--hovi-gold); }
.home-area-cta .icon { font-size: 10px; margin-left: 4px; }

/* ---------- Redes sociales ---------- */
.home-redes { padding-bottom: 70px; }

/* Botones de cada red: borde bronce y, al pasar el cursor, se llenan con el color de la red */
.red-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
.red-pill {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    overflow: hidden;
    border: 2px solid var(--hovi-bronze);
    border-radius: 999px;
    font-weight: 600;
    color: var(--hovi-charcoal);
    transition: color 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.red-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--pill-fondo);
    transform: translateY(101%);
    transition: transform 0.35s ease;
}
.red-pill .icon,
.red-pill svg {
    width: 22px;
    height: 22px;
    font-size: 20px;
    line-height: 22px;
    fill: currentColor;
    color: var(--pill-color);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}
.red-pill:hover,
.red-pill:focus-visible {
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(40, 38, 39, 0.28);
}
.red-pill:hover::before,
.red-pill:focus-visible::before { transform: translateY(0); }
.red-pill:hover .icon,
.red-pill:hover svg,
.red-pill:focus-visible .icon { color: #fff; transform: rotate(-14deg) scale(1.3); }
.red-pill:active { transform: translateY(-1px) scale(0.97); }
.red-pill--instagram { --pill-fondo: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); --pill-color: #d6249f; }
.red-pill--tiktok { --pill-fondo: #111111; --pill-color: #111111; }
.red-pill--tiktok .icon { filter: drop-shadow(1px 1px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee); }
.red-pill--facebook { --pill-fondo: #1877f2; --pill-color: #1877f2; }
.red-pill--whatsapp { --pill-fondo: #25d366; --pill-color: #25d366; }

/* Tarjetas de publicaciones: cuadradas, con la red en una insignia de su color */
.home-insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.home-insta-item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; background: #ece7e0; }
.home-insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.home-insta-item:hover img { transform: scale(1.1); }
.home-insta-over {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55, 53, 54, 0.55);
    color: #fff;
    font-size: 34px;
    opacity: 0;
    transition: opacity 0.3s;
}
.home-insta-over .icon { transform: scale(0.6); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.home-insta-item:hover .home-insta-over,
.home-insta-item:focus-visible .home-insta-over { opacity: 1; }
.home-insta-item:hover .home-insta-over .icon { transform: scale(1); }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 991px) {
    .home-benefits-list { grid-template-columns: repeat(2, 1fr); }
    .home-insta-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
    .home-section { padding-top: 46px; }
    .home-benefits-list { gap: 14px 12px; padding: 18px 0; }
    .home-benefits-list li { gap: 10px; }
    .home-benefits-list svg { width: 34px; height: 34px; }
    .home-benefits-list b { font-size: 13.5px; }
    .home-benefits-list span { font-size: 11.5px; }
    .home-cat-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 16px; padding: 4px 2px 12px; scrollbar-width: none; }
    .home-cat-list::-webkit-scrollbar { display: none; }
    .home-cat { width: 104px; flex-shrink: 0; }
    .home-cat-img { width: 104px; height: 104px; }
    .home-cat-name { font-size: 13px; }
    .home-area { min-height: 240px; }
}
