body:has(.estampados-home) {
    background: var(--estampados-canvas);
}

body:has(.estampados-home) .wp-site-blocks > :is(header, footer),
body:has(.estampados-home) main .wp-block-post-title {
    display: none;
}

body:has(.estampados-home) .wp-site-blocks > main,
body:has(.estampados-home) main > .wp-block-group:has(.estampados-home),
body:has(.estampados-home) main .wp-block-post-content {
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

.estampados-home {
    max-width: none;
    color: var(--estampados-ink);
    background: var(--estampados-canvas);
    font: 1rem/1.5 var(--estampados-font);
}

.estampados-home *,
.estampados-home *::before,
.estampados-home *::after {
    box-sizing: border-box;
}

.estampados-home :is(h1, h2, h3, p) {
    margin: 0;
    font-family: inherit;
}

.estampados-home a {
    color: inherit;
    text-decoration: none;
}

.estampados-home a:focus-visible {
    outline: 2px solid var(--estampados-focus);
    outline-offset: 4px;
}

.estampados-home-wrap {
    width: min(1120px, calc(100% - 3rem));
    margin-inline: auto;
}

.estampados-home-bar,
.estampados-home-footer {
    border-block-end: 1px solid var(--estampados-line);
    background: var(--estampados-surface);
}

.estampados-home :is(.estampados-home-bar, .estampados-home-footer) .estampados-home-wrap,
.estampados-home-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1.25rem;
}

.estampados-home :is(.estampados-home-bar, .estampados-home-footer) .estampados-home-wrap {
    min-height: 68px;
    padding-block: .65rem;
}

.estampados-home-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.estampados-home-bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem clamp(.7rem, 2.2vw, 1.8rem);
    color: var(--estampados-muted);
    font-size: .9rem;
    font-weight: 650;
}

.estampados-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 5.5vw, 5rem);
    padding-block: clamp(1.6rem, 5vw, 4.25rem);
}

.estampados-home-intro h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 5.8vw, 5.5rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.07em;
    text-wrap: balance;
}

.estampados-home-intro p {
    max-width: 33ch;
    margin-block: 1.1rem 1.35rem;
    color: var(--estampados-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.estampados-home .estampados-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .65rem 1.15rem;
    border-radius: 10px;
    background: var(--estampados-accent);
    color: var(--estampados-on-accent);
    font-weight: 720;
}

.estampados-home .estampados-home-button:hover {
    background: var(--estampados-accent-dark);
}

.estampados-home-hero-image,
.estampados-home-card-image {
    overflow: hidden;
    background: var(--estampados-accent-soft);
}

.estampados-home-hero-image {
    aspect-ratio: 1.09;
    border-radius: calc(var(--estampados-radius) + 4px);
}

.estampados-home :is(.estampados-home-hero-image, .estampados-home-card-image) img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
}

.estampados-home-catalog {
    padding-block: clamp(1.75rem, 4.5vw, 3.5rem);
    background: var(--estampados-surface);
    border-block: 1px solid var(--estampados-line);
}

.estampados-home h2 {
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1.1;
    font-weight: 770;
    letter-spacing: -.045em;
}

.estampados-home-section-title > a,
.estampados-home .estampados-home-card-link {
    color: var(--estampados-accent-text);
    font-size: .92rem;
    font-weight: 750;
}

.estampados-home-products {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 55%;
    gap: clamp(.8rem, 2vw, 1.4rem);
    margin-block-start: 1.15rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--estampados-line) transparent;
    padding-block-end: .4rem;
}

.estampados-home-products:focus-visible {
    outline: 2px solid var(--estampados-focus);
    outline-offset: 3px;
}

.estampados-home-carousel-controls:not([hidden]) {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    margin-block-start: .55rem;
}

.estampados-home-carousel-controls button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--estampados-accent);
    border-radius: 50%;
    background: var(--estampados-surface);
    color: var(--estampados-accent-text);
    font: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}

.estampados-home-carousel-controls button:disabled {
    opacity: .4;
    cursor: default;
}

.estampados-home-card {
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid var(--estampados-line);
    border-radius: var(--estampados-radius);
    background: var(--estampados-canvas);
}

.estampados-home-card-image {
    display: block;
    aspect-ratio: 1.75;
}

.estampados-home-card-content {
    padding: .9rem 1rem 1.05rem;
}

.estampados-home-card h3 {
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.02em;
}

.estampados-home-price {
    color: var(--estampados-muted);
    margin-block: .3rem .55rem;
}

.estampados-home-steps {
    padding-block: clamp(1.75rem, 4vw, 3.5rem);
}

.estampados-home-steps ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem clamp(.9rem, 4vw, 3.5rem);
    margin: 1.1rem 0 0;
    padding-inline-start: 1.25rem;
}

.estampados-home-steps li::marker {
    color: var(--estampados-accent-text);
    font-weight: 750;
}

.estampados-home-steps li span {
    display: block;
    margin-block-start: .2rem;
    color: var(--estampados-muted);
    font-size: .9rem;
}

.estampados-home-footer {
    border-block-start: 1px solid var(--estampados-line);
    border-block-end: 0;
}

@media (max-width: 640px) {
    .estampados-home-wrap {
        width: calc(100% - 2rem);
    }

    .estampados-home-hero,
    .estampados-home-steps ol {
        grid-template-columns: 1fr;
    }

    .estampados-home-hero-image {
        aspect-ratio: 1.2;
    }

    .estampados-home-products {
        grid-auto-columns: 85%;
    }

    .estampados-home-card-image {
        aspect-ratio: 1;
    }

    .estampados-home-card-content {
        padding: .65rem .65rem .8rem;
    }
}
