* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    margin: 0;
    color: #172033;
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.header__top {
    background: #111827;
    color: #ffffff;
    font-size: 13px;
}

.header__top .container {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__top nav {
    display: flex;
    gap: 24px;
}

.header__main {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header__grid {
    min-height: 84px;
    display: grid;
    grid-template-columns:
        auto auto minmax(280px, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
}

.categories-button {
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.search {
    display: flex;
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
}

.search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 18px;
}

.search button {
    border: 0;
    padding: 0 24px;
    cursor: pointer;
    font-weight: 700;
}

.header__actions {
    display: flex;
    gap: 18px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav {
    border-bottom: 1px solid #e5e7eb;
}

.main-nav .container {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
    font-weight: 600;
}


/* HERO */

.hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            115deg,
            #111827 0%,
            #1f2937 55%,
            #374151 100%
        );
    color: #ffffff;
}

.hero__content {
    max-width: 660px;
    padding: 70px 0;
}

.hero__eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 650px;
    margin: 12px 0 18px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -3px;
}

.hero p {
    max-width: 560px;
    font-size: 20px;
    color: #d1d5db;
}

.button-primary {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 0 26px;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
}


/* SECCIONES */

.section {
    padding: 70px 0;
}

.section--soft {
    background: #f7f8fa;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading span {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: 30px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    transition: .2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.category-card strong {
    font-size: 18px;
}

.category-card span {
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}


/* PRODUCTOS */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    background: #ffffff;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.product-card__image {
    min-height: 220px;
    border-radius: 10px;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    color: #9ca3af;
}

.discount {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 8px;
    border-radius: 5px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.product-card h3 {
    min-height: 48px;
    font-size: 15px;
    line-height: 1.5;
}

.old-price {
    margin: 0;
    color: #9ca3af;
    text-decoration: line-through;
}

.price {
    display: block;
    margin-top: 3px;
    font-size: 24px;
}

.product-card button {
    width: 100%;
    min-height: 44px;
    margin-top: 15px;
    border: 0;
    border-radius: 7px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}


/* BENEFICIOS */

.benefits {
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.benefits-grid div {
    padding: 10px 30px;
    border-right: 1px solid #e5e7eb;
}

.benefits-grid div:last-child {
    border-right: 0;
}

.benefits-grid strong,
.benefits-grid span {
    display: block;
}

.benefits-grid span {
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}


/* FOOTER */

.footer {
    padding: 60px 0;
    background: #111827;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    font-size: 26px;
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .header__grid {
        grid-template-columns: auto 1fr auto;
    }

    .categories-button {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 24px, 1400px);
    }

    .header__top {
        display: none;
    }

    .header__grid {
        grid-template-columns: 1fr auto;
        padding: 12px 0;
    }

    .search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header__actions a:not(:last-child) {
        display: none;
    }

    .hero {
        min-height: 390px;
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-card__image {
        min-height: 150px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .benefits-grid div {
        border: 0;
        padding: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}