:root {
  --ink: #17201d;
  --green: #17332d;
  --cream: #f5f0e8;
  --paper: #fffdf9;
  --terracotta: #aa563c;
  --sand: #d9c8b3;
  --muted: #6e746f;
  --line: rgba(23, 32, 29, .16);
  --shadow: 0 18px 60px rgba(24, 33, 29, .12);
  --radius: 1.25rem;
  --font-sans: system-ui, sans-serif;
  --font-serif: Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .75rem 1rem; background: white; border: 2px solid var(--green); }
.topline { padding: .55rem 1rem; color: white; background: var(--green); font-size: .76rem; letter-spacing: .05em; text-align: center; }
.site-header { position: sticky; z-index: 40; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 clamp(1rem, 4vw, 4.5rem); background: rgba(255,253,249,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { font-family: var(--font-serif); font-size: 2rem; font-style: italic; letter-spacing: -.08em; }
.brand-copy { font-size: .74rem; font-weight: 600; letter-spacing: .24em; }
.brand-copy small { display: block; margin-top: .1rem; color: var(--muted); font-size: .62rem; font-weight: 400; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.5rem); font-size: .9rem; }
.main-nav a { position: relative; padding: 1.75rem 0; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 1.25rem; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.last-units { color: var(--terracotta); }
.search-button, .text-button { padding: 0; color: inherit; background: none; border: 0; text-decoration: underline; text-underline-offset: .25rem; }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px; background: transparent; border: 0; }
.menu-button span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--ink); }

main { min-height: 70vh; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-small { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.eyebrow { margin: 0 0 .8rem; color: var(--terracotta); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, .display { font-family: var(--font-serif); font-size: clamp(2.8rem, 7vw, 6.8rem); font-weight: 600; line-height: .94; letter-spacing: -.045em; }
h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4.2vw, 4.1rem); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; }
h3 { font-size: 1rem; }
.lead { max-width: 650px; color: #444c48; font-size: clamp(1.06rem, 1.8vw, 1.28rem); line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .78rem 1.2rem; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--green); border-color: var(--green); }
.button-light { color: var(--ink); background: transparent; }
.button-ghost { border-color: rgba(255,255,255,.65); color: white; background: rgba(23,32,29,.78); }
.button-solid { color: var(--green); background: var(--paper); border-color: var(--paper); }
.category-card .eyebrow { color: #fff1df; }
:focus-visible { outline: 2px solid #b15b36; outline-offset: 4px; }
#colecciones { scroll-margin-top: 90px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); height: min(790px, 82vh); max-width: 1180px; margin-inline: auto; background: #d1d5d5; }
.hero-link { position: relative; min-height: 0; overflow: hidden; }
.hero-link:focus-visible { z-index: 2; outline: 3px solid white; outline-offset: -5px; }
.hero-product { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.hero-label { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 2; padding: .55rem .85rem; border: 1px solid #ffffff80; border-radius: 999px; color: white; background: #17332d; font-weight: 600; white-space: nowrap; }
.hero-link:hover .hero-label, .hero-link:focus-visible .hero-label { color: var(--green); background: white; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .hero-link:hover .hero-product { transform: scale(1.025); } }
.hero-product-men { object-position: 50% 0%; }
.hero-product-women { object-position: 50% 0%; }
.hero-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.2rem; }
.hero-content p { max-width: 520px; margin: 0; font-size: .9rem; line-height: 1.55; }
.proposal-note { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; padding: .45rem .7rem; color: white; background: rgba(0,0,0,.56); border-radius: 999px; font-size: .65rem; backdrop-filter: blur(8px); }

.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.category-card { position: relative; min-height: 470px; display: flex; align-items: flex-end; overflow: hidden; padding: clamp(1.4rem, 4vw, 3rem); color: white; border-radius: var(--radius); isolation: isolate; }
.category-card::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--card-bg, #394e47); transition: transform .5s; }
.category-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(14,19,17,.72), transparent 70%); }
.category-card:hover::before { transform: scale(1.03); }
.category-card h2 { margin-bottom: .4rem; }
.category-card p { max-width: 420px; margin-bottom: 1.2rem; }
.category-card.men { --card-bg: linear-gradient(135deg, #455d54, #1b342e); }
.category-card.women { --card-bg: linear-gradient(135deg, #b88c88, #713f44); }
.category-card:not(.last) .monogram { display: none; }
.category-card.last { grid-column: 1 / -1; min-height: 310px; --card-bg: linear-gradient(120deg, #c79f79, #6c382e); }
.category-card .monogram { position: absolute; z-index: -1; top: 50%; right: 6%; transform: translateY(-50%); font-family: var(--font-serif); font-size: clamp(9rem, 25vw, 22rem); font-style: italic; opacity: .14; }

.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.promise { padding: 2rem; background: var(--paper); }
.promise span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 50%; }
.promise p { margin: 0; color: var(--muted); line-height: 1.55; }
.about-slice { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 8vw, 7rem); align-items: center; background: var(--cream); }
.about-slice > div:first-child { padding-left: max(1rem, calc((100vw - 1180px)/2)); }
.about-visual { min-height: 560px; background: linear-gradient(145deg, #1f3c34 0 55%, #b85f42 55%); }
.about-visual::after { content: "TMT"; display: grid; place-items: center; min-height: 560px; color: rgba(255,255,255,.85); font-family: var(--font-serif); font-size: clamp(7rem, 20vw, 16rem); font-style: italic; letter-spacing: -.1em; }

.page-hero { padding: clamp(4rem, 9vw, 8rem) 0 3rem; background: var(--cream); }
.page-hero h1 { max-width: 900px; margin-bottom: 1rem; }
.breadcrumb { display: flex; gap: .5rem; margin-bottom: 2rem; color: var(--muted); font-size: .82rem; }
.subcategory-nav { display: flex; gap: .6rem; overflow-x: auto; padding: 1.25rem 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.chip { flex: 0 0 auto; padding: .65rem .95rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.chip[aria-current="page"] { color: white; background: var(--green); border-color: var(--green); }
.collection-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 2.2rem 0 1.2rem; }
.collection-tools > span { margin-inline-end: auto; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem 1.5rem; }
.card-sizes { display: block; color: var(--muted); line-height: 1.5; }
.card-contact { margin-top: .7rem; min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--green); background: white; }
.collection-tools label { color: var(--muted); font-size: .85rem; }
.collection-tools select { margin-left: .45rem; padding: .55rem; border: 1px solid var(--line); background: white; }
.collection-tools input { width: 7rem; margin-left: .45rem; padding: .55rem; border: 1px solid var(--line); background: white; font: inherit; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.product-card { min-width: 0; }
.product-image { position: relative; aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.85); background: linear-gradient(145deg, var(--tone-a, #45635b), var(--tone-b, #192f29)); border-radius: .8rem; }
.product-image::after { content: "TMT"; font-family: var(--font-serif); font-size: clamp(4rem, 10vw, 8rem); font-style: italic; opacity: .22; }
.product-image.has-photo::after { content: none; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image.image-role-modelo img { object-position: 50% 0%; }
.product-image.ratio-wide { aspect-ratio: 3/2; }
.image-origin { position: absolute; right: .7rem; bottom: .7rem; left: .7rem; padding: .45rem .6rem; color: #fff; background: rgba(13,19,17,.68); border-radius: .45rem; font-size: .68rem; text-align: center; backdrop-filter: blur(5px); }
.review-note { display: block; margin-top: .25rem; color: #7b4d38; font-size: .74rem; line-height: 1.4; }
.product-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-content: start; min-width: 0; }
.variant-label { display: block; font-weight: 600; margin-bottom: .35rem; }
#variant { display: block; max-width: 100%; padding: .55rem; margin-bottom: 1rem; }
#color { display: block; min-width: 220px; max-width: 100%; padding: .55rem; margin-bottom: .65rem; }
.color-swatches { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1rem; }
.color-swatch { width: 44px; height: 44px; padding: 0; cursor: pointer; background: var(--swatch); border: 5px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.color-swatch:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.color-swatch.is-active { box-shadow: 0 0 0 2px var(--ink); }
.color-stock { margin: -.45rem 0 1rem; color: var(--muted); font-size: .78rem; }
.product-badge { position: absolute; z-index: 1; top: .75rem; left: .75rem; padding: .35rem .55rem; color: var(--ink); background: rgba(255,255,255,.9); border-radius: 999px; font-size: .68rem; }
.image-pending { position: absolute; right: .75rem; bottom: .75rem; left: .75rem; padding: .55rem; color: white; background: rgba(0,0,0,.35); border-radius: .5rem; font-size: .72rem; text-align: center; backdrop-filter: blur(4px); }
.product-card h3 { margin: .95rem 0 .35rem; font-size: 1rem; }
.product-meta { display: flex; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .84rem; }
.product-price { color: var(--ink); font-weight: 600; }
.empty-state { grid-column: 1 / -1; padding: 4rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

.product-view { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 7vw, 6rem); padding: clamp(3rem, 7vw, 7rem) 0; }
.product-gallery .product-image { width: 100%; min-width: 0; min-height: 620px; }
.product-gallery .product-image:not(.ratio-wide) img { position: absolute; inset: 0; }
.product-gallery .product-image.ratio-wide { display: block; min-height: 0; aspect-ratio: auto; background: var(--cream); }
.product-gallery .ratio-wide img { display: block; height: auto; }
.product-gallery .ratio-wide .product-badge { display: none; }
.product-gallery .ratio-wide .image-origin { position: static; display: block; border-radius: 0; }
.product-info { align-self: start; position: sticky; top: 110px; }
.product-info h1 { margin-bottom: .7rem; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.product-info .price { margin: 1rem 0 1.5rem; font-size: 1.3rem; font-weight: 600; }
.status-list { margin: 2rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.status-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.status-list span:last-child { color: var(--muted); text-align: right; }
.notice { padding: 1rem; color: #58382e; background: #f4e3d8; border-radius: .7rem; font-size: .86rem; line-height: 1.5; }

.content-page { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; padding: clamp(4rem, 8vw, 8rem) 1rem; }
.content-page h1 { margin-bottom: 2rem; }
.content-page h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.content-page p, .content-page li { line-height: 1.7; }
.pending-block { padding: 1.2rem; background: #fff4d7; border-left: 4px solid #c38a15; }
.steps { counter-reset: step; display: grid; gap: .9rem; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 45px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--green); border-radius: 50%; }

.site-footer { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 4.5rem) 2rem; color: white; background: var(--green); }
.site-footer h2 { margin-bottom: 1rem; font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer a, .site-footer .text-button { display: block; width: fit-content; margin: .7rem 0; color: rgba(255,255,255,.72); font-size: .85rem; text-align: left; }
.footer-brand p { max-width: 320px; margin-top: 1rem; color: rgba(255,255,255,.68); line-height: 1.6; }
.footer-note { grid-column: 1 / -1; margin: 2rem 0 0; padding-top: 1.5rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.18); font-size: .75rem; }

.search-drawer { position: fixed; z-index: 80; top: 0; right: 0; width: min(520px, 100%); height: 100dvh; padding: 2rem; background: var(--paper); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .3s; }
.search-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.drawer-head h2 { font-size: 2rem; }
.drawer-close, .dialog-close { padding: 0; font-size: 2rem; background: transparent; border: 0; }
.search-drawer label { display: block; margin: 2rem 0 .6rem; }
.search-drawer input { width: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: .4rem; }
.search-result { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.drawer-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(0,0,0,.35); }

.whatsapp-dialog { width: min(560px, calc(100% - 2rem)); padding: 2rem; color: var(--ink); background: var(--paper); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.whatsapp-dialog::backdrop { background: rgba(0,0,0,.55); }
.dialog-close { float: right; }
.whatsapp-dialog h2 { font-size: 2.5rem; }
.whatsapp-dialog label { display: block; margin: 1.5rem 0 .5rem; font-size: .82rem; font-weight: 600; }
.whatsapp-dialog textarea { width: 100%; padding: 1rem; resize: vertical; border: 1px solid var(--line); border-radius: .5rem; }
.whatsapp-dialog .button { width: 100%; margin-top: .8rem; }
.whatsapp-dialog small { display: block; margin-top: .6rem; color: var(--muted); }

@media (max-width: 820px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: .75rem 1rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: grid; }
  .main-nav a, .search-button { padding: .9rem 0; text-align: left; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .hero-media { height: clamp(290px, 95vw, 680px); }
  .hero-product-men { object-position: 50% 0%; }
  .hero-product-women { object-position: 50% 0%; }
  .category-grid, .about-slice, .product-view { grid-template-columns: 1fr; }
  .category-card, .category-card.last { grid-column: auto; min-height: 390px; }
  .about-slice > div:first-child { padding: 4rem 1rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-info { position: static; }
  .product-gallery .product-image { min-height: 480px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .site-header { min-height: 68px; }
  .brand-mark { font-size: 1.6rem; }
  .hero .actions { gap: .5rem; }
  .hero .actions .button { padding-inline: .85rem; font-size: .82rem; }
  .proposal-note { font-size: .58rem; }
  .promise-grid, .product-grid { grid-template-columns: 1fr; }
  .collection-tools { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > * { grid-column: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.hero-empty-men { background: linear-gradient(135deg, #455d54, #1b342e); }
.hero-empty-women { background: linear-gradient(135deg, #b88c88, #713f44); }
