/* Inicio landing — mockup industrial negro / rojo / blanco */

.page-home {
    --hp-red: #e31e24;
    --hp-red-deep: #c0181d;
    --hp-ink: #111111;
    --hp-muted: #667085;
    --hp-line: #e8eaef;
    --hp-soft: #f6f7f9;
    --hp-dark: #141414;
}

.page-home .main {
    padding: 0;
    background: #fff;
}

/* Hero — foto limpia + parallax scroll */
.hpage-hero {
    --hero-fade: 1;
    --hero-parallax: 0;
    --hero-content-y: 0;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    background: #0a0a0a;
    overflow: hidden;
}

.hpage-hero__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -12%;
    height: 124%;
    z-index: 0;
    background: #0a0a0a var(--hpage-hero-img) right center / cover no-repeat;
    transform: translate3d(0, calc(var(--hero-parallax) * 1px), 0);
    will-change: transform;
    pointer-events: none;
}

.hpage-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            95deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.78) 30%,
            rgba(0, 0, 0, 0.4) 55%,
            rgba(0, 0, 0, 0.16) 78%,
            rgba(0, 0, 0, 0.08) 100%
        ),
        linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, transparent 26%, transparent 70%, rgba(0, 0, 0, 0.28) 100%);
}

.hpage-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(28vh, 220px);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(246, 247, 249, 0) 35%, #f6f7f9 100%);
    opacity: calc(1 - var(--hero-fade));
}

.hpage-hero__content {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    /* Columna izquierda “centrada” (alineada al contenedor del header, no pegada al borde) */
    width: min(36rem, 48%);
    max-width: 560px;
    margin: 0;
    margin-left: max(1.5rem, calc((100vw - 1280px) / 2 + 1rem));
    margin-right: auto;
    padding: 7.2rem 1.25rem 6.2rem 0;
    opacity: var(--hero-fade);
    transform: translate3d(0, calc(var(--hero-content-y) * -1px), 0);
    will-change: opacity, transform;
}

.hpage-hero__eyebrow {
    margin: 0 0 0.95rem;
    color: var(--hp-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hpage-hero__content h1 {
    margin: 0 0 1.05rem;
    max-width: 14ch;
    font-size: clamp(1.95rem, 3.2vw, 2.85rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hpage-hero__content h1 em {
    display: block;
    margin-top: 0.12em;
    font-style: normal;
    color: var(--hp-red);
}

.hpage-hero__lead {
    margin: 0 0 1.7rem;
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.55;
}

.hpage-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hpage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.05rem;
    padding: 0.75rem 1.45rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hpage-btn--primary {
    background: var(--hp-red);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 12px 28px rgba(227, 30, 36, 0.4);
}

.hpage-btn--primary:hover {
    background: var(--hp-red-deep);
    color: #fff;
    transform: translateY(-2px);
}

.hpage-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.hpage-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.hpage-btn i {
    font-size: 1.05rem;
}

.hpage-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translate3d(-50%, calc(var(--hero-content-y) * -0.6px), 0);
    z-index: 4;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    opacity: var(--hero-fade);
    pointer-events: auto;
    will-change: opacity, transform;
}

.hpage-hero__mouse {
    width: 1.35rem;
    height: 2.1rem;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    position: relative;
}

.hpage-hero__mouse::after {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: 50%;
    width: 0.22rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #fff;
    transform: translateX(-50%);
    animation: hpageScroll 1.4s ease-in-out infinite;
}

@keyframes hpageScroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* Shared heads */
.hpage-head {
    text-align: center;
    margin: 0 auto 2.2rem;
    max-width: 40rem;
}

.hpage-head h2 {
    margin: 0;
    color: var(--hp-ink);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hpage-head__lead {
    margin: 0.45rem 0 0;
    color: var(--hp-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

.hpage-kicker {
    margin: 0 0 0.55rem;
    color: var(--hp-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hpage-head--light .hpage-kicker {
    color: #ff8a80;
}

.hpage-head--light h2 {
    color: #fff;
}

/* Services */
.hpage-services {
    padding: 4.5rem 0 4rem;
    background: var(--hp-soft);
}

.hpage-services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.hpage-service {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    padding: 1.45rem 1.25rem 1.35rem;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hpage-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.09);
}

.hpage-service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1rem;
    color: var(--hp-red);
    font-size: 1.2rem;
}

.hpage-service h3 {
    margin: 0 0 0.55rem;
    color: var(--hp-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.hpage-service p {
    margin: 0 0 1rem;
    color: var(--hp-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 4.2em;
}

.hpage-service a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--hp-red);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.hpage-service a:hover {
    gap: 0.55rem;
}

/* Brands */
.hpage-brands {
    background: var(--hp-dark);
    padding: 2rem 0;
}

.hpage-brands__label {
    margin: 0 0 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hpage-brands__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem 2.2rem;
}

.hpage-brands__list li {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Why */
.hpage-why {
    padding: 4.25rem 0 4rem;
    background: #fff;
}

/* Productos en inicio */
.hpage-products {
    padding: 4.25rem 0 3.5rem;
    background: var(--hp-soft);
}

.hpage-products--soft {
    background: #fff;
}

.hpage-products__more {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.hpage-btn--catalog {
    background: var(--hp-ink);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
}

.hpage-btn--catalog:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.hpage-why__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

.hpage-why__item {
    text-align: center;
    padding: 0.5rem 0.4rem;
}

.hpage-why__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 0.9rem;
    border: 1.5px solid rgba(227, 30, 36, 0.35);
    border-radius: 999px;
    color: var(--hp-red);
    font-size: 1.05rem;
}

.hpage-why__item h3 {
    margin: 0 0 0.4rem;
    color: var(--hp-ink);
    font-size: 0.98rem;
    font-weight: 800;
}

.hpage-why__item p {
    margin: 0;
    color: var(--hp-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

/* Stats */
.hpage-stats {
    position: relative;
    padding: 3.75rem 0 3.5rem;
    color: #fff;
    background:
        linear-gradient(0deg, rgba(120, 10, 14, 0.78), rgba(40, 8, 10, 0.78)),
        var(--hpage-stats-img) center center / cover no-repeat;
}

.hpage-stats .hpage-head {
    margin-bottom: 2rem;
}

.hpage-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.hpage-stat {
    text-align: center;
    padding: 0.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hpage-stat:last-child {
    border-right: 0;
}

.hpage-stat i {
    display: block;
    margin-bottom: 0.7rem;
    color: #ffb4b4;
    font-size: 1.2rem;
}

.hpage-stat strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.hpage-stat span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

/* CTA final */
.hpage-cta {
    background: var(--hp-red);
    padding: 0;
    overflow: hidden;
}

.hpage-cta__inner {
    display: grid;
    grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.4fr) auto;
    gap: 1.5rem;
    align-items: center;
    min-height: 170px;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
}

.hpage-cta__media {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.95;
}

.hpage-cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
    filter: grayscale(0.15) contrast(1.05);
}

.hpage-cta__copy h2 {
    margin: 0 0 0.4rem;
    color: #fff;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hpage-cta__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.45;
}

.hpage-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.1rem;
    padding: 0.8rem 1.45rem;
    border-radius: 999px;
    background: #fff;
    color: var(--hp-red);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hpage-cta__btn:hover {
    transform: translateY(-2px);
    background: #fff5f5;
    color: var(--hp-red-deep);
}

.hpage-cta__btn i {
    font-size: 1.15rem;
    color: #25d366;
}

@media (prefers-reduced-motion: reduce) {
    .hpage-hero__bg,
    .hpage-hero__content,
    .hpage-hero__scroll {
        transform: none !important;
    }
}

@media (max-width: 1100px) {
    .hpage-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hpage-why__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hpage-cta__inner {
        grid-template-columns: 1fr auto;
    }

    .hpage-cta__media {
        display: none;
    }
}

@media (max-width: 800px) {
    .hpage-hero {
        min-height: 92vh;
    }

    .hpage-hero__content {
        width: min(100%, 34rem);
        max-width: none;
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        padding-top: 6.5rem;
        padding-bottom: 5rem;
        padding-right: 0.5rem;
    }

    .hpage-hero__content h1 {
        max-width: 100%;
        font-size: clamp(1.85rem, 7vw, 2.4rem);
    }

    .hpage-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem 0.5rem;
    }

    .hpage-stat {
        border-right: 0;
    }

    .hpage-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hpage-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hpage-btn {
        width: 100%;
    }

    .hpage-hero__scroll {
        display: none;
    }

    .hpage-services,
    .hpage-why {
        padding: 3rem 0 2.5rem;
    }

    .hpage-services__grid,
    .hpage-why__grid,
    .hpage-stats__grid {
        grid-template-columns: 1fr;
    }

    .hpage-service p {
        min-height: 0;
    }

    .hpage-cta__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
    }

    .hpage-cta__btn {
        width: 100%;
    }
}

[data-theme="dark"] .page-home .main,
[data-theme="dark"] .hpage-services,
[data-theme="dark"] .hpage-why {
    background: #0b1121;
}

[data-theme="dark"] .hpage-head h2,
[data-theme="dark"] .hpage-service h3,
[data-theme="dark"] .hpage-why__item h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .hpage-service {
    background: #121826;
    border-color: #1e2a3f;
    box-shadow: none;
}

[data-theme="dark"] .hpage-service p,
[data-theme="dark"] .hpage-why__item p {
    color: #94a3b8;
}
