:root {
    --paper: #f7f5ef;
    --ink: #1a1918;
    --dark: #22201f;
    --soft: #e9e5dc;
    --muted: #5d554e;
    --accent: #ff7545;
    --accent-hover: #ff986f;
    --line: #d2ccc1;
    --body: Arial, Helvetica, sans-serif;
    --display: Impact, "Arial Narrow", "Franklin Gothic Demi Cond", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.5 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible, .underlined:hover { text-decoration: underline; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #a43715; outline-offset: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1, .section-heading h2 {
    font-family: var(--display);
    font-size: clamp(3rem, 6vw, 5.75rem);
    font-weight: 700;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
h2 { font-size: clamp(1.25rem, 2.8vw, 1.8rem); }
.wrap { width: min(100% - 3rem, 79rem); margin-inline: auto; }
.section { padding-block: 3.4rem 4.5rem; }
.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 10;
    transform: translateY(-180%);
    background: var(--paper);
    padding: .75rem 1rem;
}
.skip-link:focus { transform: translateY(0); }

.promo {
    background: var(--accent);
    padding: .45rem 1rem;
    text-align: center;
    font-size: .875rem;
    font-weight: 700;
}
.header { border-bottom: 1px solid var(--line); }
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 5rem;
    align-items: center;
    gap: 1.5rem;
}
.brand { justify-self: start; padding-block: .4rem; }
.brand img { width: auto; height: 3.9rem; object-fit: contain; }
.header nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); font-weight: 700; }
.cart-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    border: 1px solid var(--ink);
    text-decoration: none;
    line-height: 1;
    font-size: .9375rem;
    font-weight: 700;
}
.cart-link:hover, .cart-link[aria-current] { background: var(--soft); }
.cart-count {
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-grid;
    place-items: center;
    padding-inline: .2rem;
    background: var(--ink);
    color: var(--paper);
}

.hero {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    margin-top: 1.5rem;
    background: var(--dark);
    color: var(--paper);
}
.hero-copy {
    padding: clamp(1.7rem, 5.5vw, 5.5rem);
    align-self: center;
}
.hero h1 {
    font-size: clamp(3.4rem, 7.9vw, 7rem);
    line-height: .91;
    letter-spacing: -.025em;
}
.hero h1 span { white-space: nowrap; }
.hero p {
    max-width: 24rem;
    margin-block: 1.2rem 1.65rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: #e9e4dc;
}
.hero-photo {
    position: relative;
    min-height: 26rem;
    overflow: hidden;
    isolation: isolate;
}
.hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 49%;
}
.hero-photo span {
    position: absolute;
    inset: auto 0 0;
    padding: 1.7rem 1rem .9rem;
    color: white;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    font-size: .9rem;
}
.hero-photo strong { display: block; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-height: 2.9rem;
    padding: .66rem 1rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: white;
    font: 700 .95rem/1.2 var(--body);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: #3b3531; }
.button-accent { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.button-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-small { min-height: 2.55rem; font-size: .875rem; }
.button-text {
    border: 0;
    padding: .6rem .2rem;
    background: transparent;
    color: var(--ink);
    font: 700 .9rem var(--body);
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}
.underlined { display: inline-block; font-weight: 700; text-underline-offset: .2em; }
.muted { color: var(--muted); }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}
.section-heading p { margin-top: .35rem; }
.filters, .add-controls, .line-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .75rem;
}
label { display: grid; gap: .25rem; font-weight: 700; font-size: .875rem; }
input:not([type=hidden]), select {
    width: 100%;
    min-width: 0;
    height: 2.9rem;
    border: 1px solid #847a6c;
    border-radius: 0;
    padding: .45rem .7rem;
    background-color: var(--paper);
    color: var(--ink);
    font: 1rem var(--body);
}
input[type=number] { width: 5.25rem; }
select {
    appearance: none;
    padding-right: 2.25rem;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 1rem) 50%, calc(100% - .68rem) 50%;
    background-repeat: no-repeat;
    background-size: .34rem .34rem;
}
.filters select { min-width: 10rem; }
.filters input { min-width: 13rem; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.8rem, 2.3vw, 1.65rem);
}
.product-card-link { display: block; text-decoration: none; height: 100%; }
.product-card-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--soft);
}
.product-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card-link:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.product-card-details { padding-block: .72rem 1.25rem; border-bottom: 1px solid var(--line); }
.product-card-details h3 { margin-block: .18rem .35rem; font-size: clamp(1rem, 2vw, 1.35rem); }
.artist { color: var(--muted); font-size: .875rem; font-weight: 700; }
.product-price { font-weight: 700; }
.stock-label { position: absolute; bottom: .55rem; left: .55rem; padding: .25rem .45rem; background: var(--paper); font-size: .875rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pagination a { display: grid; place-items: center; min-width: 2.6rem; min-height: 2.6rem; border: 1px solid var(--line); }
.pagination [aria-current] { border-color: var(--ink); color: white; background: var(--ink); }
.empty { padding: 2rem 1.2rem; background: var(--soft); }
.empty .button { margin-top: 1.1rem; }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .7rem;
    margin-bottom: 1.25rem;
    font-size: .9375rem;
    color: var(--muted);
}
.breadcrumbs a + a::before { content: "/"; display: inline-block; margin-right: .7rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5.4rem); }
.gallery-main { width: 100%; max-height: 47rem; object-fit: contain; background: var(--soft); }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.gallery-thumbs img { width: 4.5rem; }
.gallery-thumbs a:hover, .gallery-thumbs a[aria-current] { outline: 2px solid var(--ink); }
.product-info h1 { margin-block: .25rem 1.15rem; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.price-panel { margin-bottom: 1.4rem; }
.detail-price { font-size: 1.7rem; font-weight: 700; }
.add-form { display: grid; gap: .85rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.variant-picker { display: grid; gap: .9rem; }
.variant-group { display: grid; gap: .4rem; }
.variant-heading { display: flex; align-items: baseline; gap: .5rem; font-size: .95rem; font-weight: 700; }
.variant-heading .muted { font-weight: 400; }
.variant-guide { margin-left: auto; }
.variant-values { display: flex; align-items: center; flex-wrap: wrap; gap: .42rem; }
.variant-choice { position: relative; cursor: pointer; }
.variant-choice input[type=radio] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    clip-path: inset(50%);
    overflow: hidden;
}
.variant-chip {
    display: grid;
    place-items: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: .3rem .66rem;
    border: 1px solid #847a6c;
    border-radius: .25rem;
    font-size: .875rem;
    text-align: center;
}
.variant-chip.color-swatch {
    width: 2.75rem;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 .23rem var(--paper);
}
.variant-choice input:focus-visible + .variant-chip { outline: 3px solid #a43715; outline-offset: 3px; }
.variant-choice input:checked + .variant-chip { background: var(--accent); border-color: var(--ink); }
.variant-choice input:checked + .color-swatch {
    background: var(--swatch);
    border: 2px solid var(--ink);
}
.variant-choice input:disabled + .variant-chip { opacity: .45; text-decoration: line-through; cursor: default; }
.variant-choice input:disabled + .color-swatch::after {
    content: "";
    width: 82%;
    height: 1px;
    background: var(--ink);
    transform: rotate(-45deg);
}
.variant-status { font-size: .9rem; }
.add-controls .button:disabled { opacity: .55; cursor: default; }
.add-controls .button-accent:disabled:hover { background: var(--accent); border-color: var(--accent); }
.quantity-control { display: flex; align-items: stretch; margin-top: .25rem; }
.quantity-control input[type=number] { width: 3.75rem; text-align: center; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.quantity-control button {
    width: 2.75rem;
    border: 1px solid #847a6c;
    padding: .2rem;
    background: var(--soft);
    color: var(--ink);
    font: 700 1.15rem var(--body);
    cursor: pointer;
}
.quantity-control button:disabled { opacity: .48; cursor: default; }
.add-controls .button { flex: 1; }
.description { display: grid; gap: .58rem; max-width: 42rem; margin-top: 1.4rem; }
.description h2 { margin-bottom: .25rem; }
.stock-note { color: #9b2c13; font-weight: 700; }

.cart-page > h1 { margin-bottom: 1.5rem; }
.notice { margin-bottom: 1rem; padding: .75rem 1rem; background: var(--soft); border-left: .25rem solid var(--ink); }
.notice-error { border-left-color: #a43715; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: clamp(1rem, 4vw, 3.5rem); align-items: start; }
.cart-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item { display: flex; gap: .9rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.cart-photo { flex: 0 0 clamp(3.7rem, 10vw, 6rem); }
.cart-item-detail { flex: 1; }
.cart-item h2 { font: 700 1.25rem/1.18 var(--body); margin-block: .1rem .25rem; }
.cart-item h2 a { text-decoration: none; }
.cart-item h2 a:hover { text-decoration: underline; }
.line-controls { margin-top: .55rem; }
.line-controls input { height: 2.55rem; }
.line-total { text-align: right; white-space: nowrap; }
.summary { display: grid; gap: .9rem; padding: clamp(1rem, 3vw, 1.5rem); background: var(--soft); }
.summary h2 { margin-bottom: .1rem; }
.summary-row { display: flex; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.summary .underlined { justify-self: center; text-align: center; }
.information { display: grid; gap: 1.25rem; }
.size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.size-grid img { width: 100%; }
.size-dialog {
    width: min(35rem, calc(100% - 1.5rem));
    max-height: calc(100% - 2rem);
    padding: clamp(1rem, 4vw, 1.65rem);
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
}
.size-dialog::backdrop { background: rgba(18, 16, 15, .63); }
.size-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.size-dialog > .underlined { margin-top: 1rem; }
.model-measurements { display: grid; gap: .7rem; margin-top: 1rem; }
.measurement-scroll { overflow-x: auto; }
.measurement-table { width: 100%; border-collapse: collapse; text-align: left; }
.measurement-table caption { padding-bottom: .55rem; font-size: 1.15rem; font-weight: 700; text-align: left; }
.measurement-table th, .measurement-table td { padding: .52rem .55rem; border-bottom: 1px solid var(--line); }
.measurement-table thead { background: var(--soft); }
.measurement-table .current-measurement { background: #ffddcc; }
.measurement-note { font-size: .9rem; }
.measurement-reference { justify-self: start; }
.size-model-list { display: grid; gap: .55rem; max-width: 48rem; }
.size-model { border: 1px solid var(--line); }
.size-model summary { padding: .8rem 1rem; font-weight: 700; cursor: pointer; }
.size-model[open] summary { background: var(--soft); }
.size-model .model-measurements { margin-top: 0; padding: 1rem; }
.size-model .measurement-table caption { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }

.floating-contact {
    position: fixed;
    z-index: 5;
    right: calc(.875rem + env(safe-area-inset-right, 0px));
    bottom: calc(.875rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: .5rem;
}
.floating-contact .contact-link {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .23);
}
.contact-email {
    background: var(--ink);
    font: 700 1.625rem/1 var(--body);
}
.contact-email:hover { background: #3b3531; }
.contact-whatsapp { background: #087b46; }
.contact-whatsapp:hover { background: #06663a; }
.contact-whatsapp svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 58rem) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-photo { min-height: 23rem; }
    .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
    #contenido { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
    .wrap { width: calc(100% - 1.5rem); }
    .section { padding-block: 2rem 3rem; }
    .header-inner { gap: .5rem; min-height: 4rem; }
    .header nav { gap: .55rem; font-size: .875rem; text-align: center; }
    .brand img { height: 3rem; }
    .cart-link { padding: .4rem; gap: .25rem; font-size: .875rem; }
    .cart-count { height: 1.3rem; min-width: 1.3rem; }
    .hero { margin-top: .75rem; grid-template-columns: 1fr; }
    .hero-copy { padding: 2rem 1.15rem; }
    .hero-photo { min-height: clamp(15rem, 77vw, 28rem); }
    .hero h1 { font-size: clamp(3.3rem, 13vw, 5.3rem); }
    .filters { width: 100%; }
    .filters label { flex: 1 1 9rem; }
    .filters select, .filters input { min-width: 0; }
    .product-grid, .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-layout { grid-template-columns: 1fr; }
    .gallery-main { max-height: 70vh; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-detail { min-width: 10rem; }
    .line-total { width: 100%; }
}

