/* ==================================================================
   Home (index.php)
   ================================================================== */
.hp-wrap {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 24px;
}
.hp-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #fac328;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Botones */
.hp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
a.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(20, 21, 24, 0.35);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
a.hp-btn:hover,
a.hp-btn:focus-visible {
    border-color: #fac328;
    transform: translateY(-1px);
}
a.hp-btn.hp-btn-primary {
    background: #fac328;
    border-color: #fac328;
    color: #111 !important;
}
a.hp-btn.hp-btn-primary:hover,
a.hp-btn.hp-btn-primary:focus-visible {
    background: #ffd451;
}

/* ------------------------------------------------------------------
   Portada
   ------------------------------------------------------------------ */
.hp-hero {
    position: relative;
    height: min(78vh, 620px);
    min-height: 460px;
    overflow: hidden;
    background: #0d0e11;
}
.hp-hero .hp-hero-carousel,
.hp-hero .carousel-inner,
.hp-hero .carousel-item {
    height: 100%;
}
.hp-hero .carousel-item {
    margin: 0 !important;
}
.hp-hero .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center 40%;
}
.hp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
    background:
        linear-gradient(90deg, rgba(13, 14, 17, 0.88) 0%, rgba(13, 14, 17, 0.55) 45%, rgba(13, 14, 17, 0.05) 75%),
        linear-gradient(0deg, rgba(13, 14, 17, 0.75) 0%, rgba(13, 14, 17, 0) 45%);
    pointer-events: none;
}
.hp-hero-overlay .hp-wrap {
    width: 100%;
    pointer-events: auto;
}
.hp-hero-title {
    max-width: 640px;
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 48px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    text-align: left !important;
}
.hp-hero-text {
    max-width: 520px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.55;
    text-align: left;
}
.hp-hero .hp-hero-dots {
    z-index: 4;
    right: 24px;
    left: auto;
    bottom: 24px;
    margin: 0;
    justify-content: flex-end;
}
.hp-hero .hp-hero-dots [data-bs-target] {
    width: 28px;
    height: 4px;
    margin: 0 4px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    opacity: 0.35;
}
.hp-hero .hp-hero-dots .active {
    background: #fac328;
    opacity: 1;
}

/* ------------------------------------------------------------------
   Secciones de productos
   ------------------------------------------------------------------ */
.hp-section {
    padding: 80px 0;
}
.hp-section-alt {
    background: #141518;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hp-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}
.hp-title,
.hp-cta-title,
.hp-hero-title {
    display: block !important;
}
.hp-title::before,
.hp-title::after,
.hp-cta-title::before,
.hp-cta-title::after,
.hp-hero-title::before,
.hp-hero-title::after {
    display: none !important;
    content: none !important;
}
.hp-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    text-align: left !important;
}
a.hp-link {
    color: #fac328 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}
a.hp-link:hover {
    color: #ffd451 !important;
}
.hp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
button.hp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 !important;
    padding: 22px 22px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: inherit !important;
    font: inherit;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center;
    box-shadow: none !important;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
button.hp-card:hover,
button.hp-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(250, 195, 40, 0.55) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
.hp-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fac328;
    color: #111;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hp-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 45%, rgba(250, 195, 40, 0.08), transparent 65%);
}
.hp-card-img {
    width: 78% !important;
    height: 78% !important;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s ease;
}
button.hp-card:hover .hp-card-img {
    transform: scale(1.05);
}
.hp-card-name {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.hp-card-cal {
    margin-top: 4px;
    color: #fac328;
    font-size: 14px;
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Numeros
   ------------------------------------------------------------------ */
.hp-stats {
    padding: 56px 0;
}
.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.hp-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 26px;
    border-left: 3px solid #fac328;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 0;
}
.hp-stat-num {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.hp-stat-label {
    color: #9a9ba3;
    font-size: 15px;
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Llamado final
   ------------------------------------------------------------------ */
.hp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 44px;
    border: 1px solid rgba(250, 195, 40, 0.35);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 20%, rgba(250, 195, 40, 0.14), transparent 55%),
        #141518;
}
.hp-cta-title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    text-align: left !important;
}
.hp-cta-text {
    max-width: 560px;
    margin: 0;
    color: #9a9ba3;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}
.hp-cta .hp-actions {
    flex: 0 0 auto;
}

/* Boton flotante de Chile: mas discreto */
#chileButton {
    opacity: 0.85;
}

/* ------------------------------------------------------------------
   Celular y tablet
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .hp-hero-title {
        font-size: 38px !important;
    }
    .hp-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 28px;
    }
}
@media (max-width: 767px) {
    .hp-hero {
        height: 78vh;
        min-height: 480px;
    }
    .hp-hero-overlay {
        padding-bottom: 56px;
        background: linear-gradient(0deg, rgba(13, 14, 17, 0.95) 0%, rgba(13, 14, 17, 0.7) 45%, rgba(13, 14, 17, 0.15) 100%);
    }
    .hp-hero-title {
        font-size: 32px !important;
    }
    .hp-hero-text {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .hp-hero .hp-hero-dots {
        right: 20px;
        bottom: 18px;
    }
    .hp-actions a.hp-btn {
        flex: 1 1 auto;
    }
    .hp-section {
        padding: 56px 0;
    }
    .hp-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 22px;
    }
    .hp-title {
        font-size: 28px !important;
    }
    /* Productos en fila deslizable */
    .hp-grid {
        display: flex;
        gap: 14px;
        margin: 0 -24px !important;
        padding: 4px 24px 12px !important;
        scroll-padding-left: 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .hp-grid::-webkit-scrollbar {
        display: none;
    }
    button.hp-card {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }
    .hp-stats {
        padding: 40px 0;
    }
    .hp-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hp-stat {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        padding: 16px 18px;
    }
    .hp-stat-num {
        font-size: 26px;
    }
    .hp-cta-title {
        font-size: 24px !important;
    }
}
