/* A/J MÉXICO — estilos (mobile-first) */
:root {
  --black: #0b0b0b;
  --ink: #111;
  --cream: #e9dfcf;
  --cream-2: #d9ccb6;
  --off: #faf8f4;
  --white: #fff;
  --grey: #6f6a63;
  --line: #e2ddd5;
  --serif: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pad: 16px;
  --header-h: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --pad: 32px; --header-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input { font: inherit; border-radius: 0; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--black); color: var(--cream); padding: 8px 12px; }
.skip:focus { left: 8px; }
.small { font-size: 11px; letter-spacing: .04em; }
.muted { color: var(--grey); }
.eyebrow { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; }
.section-title { font-size: 11px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 6vw, 72px); line-height: 1; letter-spacing: -.01em; }
.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm { display: inline; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: inherit; }
.logo__agave { width: 2.2em; height: auto; margin-bottom: .15em; }
.logo__mono { font-family: var(--serif); font-weight: 400; font-size: 1em; letter-spacing: -.02em; display: inline-flex; align-items: baseline; }
.logo__slash { display: inline-block; font-weight: 300; transform: scaleY(1.18) translateY(.04em); margin: 0 -.12em 0 -.16em; }
.logo__sub { display: flex; align-items: center; gap: .7em; margin-top: .35em; font-family: var(--sans); font-size: .17em; letter-spacing: .5em; padding-left: .5em; }
.logo__sub i { display: block; width: 2.2em; height: 1px; background: currentColor; opacity: .7; }
.logo--cream { color: var(--cream); }
.logo--hero { font-size: clamp(64px, 14vw, 120px); }
.logo--footer { font-size: 54px; }

.agave { display: block; width: 100%; height: auto; }

/* ---------- Header ---------- */
.announce { background: var(--black); color: var(--cream); text-align: center; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; padding: 8px var(--pad); }
.site-header { position: sticky; top: -33px; z-index: 50; background: var(--white); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__bar { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); }
.header__nav { display: none; }
.header__logo { grid-column: 2; font-size: 30px; }
.header__actions { grid-column: 3; justify-self: end; display: flex; gap: 18px; }
.icon-btn, .text-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.icon-btn svg, .text-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.text-btn svg { width: 18px; height: 18px; }
.header__menu { grid-column: 1; grid-row: 1; justify-self: start; }
.cart-count { font-size: 10px; min-width: 1.4em; }
.menu { border-top: 1px solid var(--line); background: var(--white); padding: 12px var(--pad) 28px; }
.menu a { display: block; padding: 12px 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
@media (min-width: 1000px) {
  .header__menu, .menu { display: none !important; }
  .header__nav { display: block; grid-column: 1; grid-row: 1; }
  .header__nav ul { display: flex; gap: 26px; }
  .header__nav a { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
  .header__nav a:hover { border-color: currentColor; }
  .header__logo { font-size: 36px; }
}

/* ---------- Media (imagen + respaldo) ---------- */
.media { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 2 / 3; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.media img.is-missing { display: none; }
.media__alt { opacity: 0; }
.media__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--cream); background: radial-gradient(120% 80% at 50% 40%, #1a1917 0%, var(--ink) 60%); text-align: center; padding: 16px; }
.media__fallback .agave { width: 22%; max-width: 70px; opacity: .9; }
.media__mono { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -.02em; }
.media__mono span { font-weight: 300; margin: 0 -.1em; }
.media__label { margin-top: 10px; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: .65; max-width: 80%; }
.media__fallback--map .mexico { width: 70%; opacity: .5; }
@media (hover: hover) {
  .card__link:hover .media__alt:not(.is-missing) { opacity: 1; }
  .card__link:hover .media__fallback .agave { transform: scale(1.06); }
}
.media__fallback .agave { transition: transform .8s var(--ease); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; border: 1px solid currentColor; transition: background .25s, color .25s; }
.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark:hover { background: #2a2826; }
.btn--cream { color: var(--cream); }
.btn--cream:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.btn--line:hover { background: var(--black); color: var(--white); }
.btn--block { width: 100%; }
.link-btn { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: var(--grey); }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100svh - 33px - var(--header-h)); min-height: 520px; max-height: 1000px; overflow: hidden; background: var(--black); color: var(--cream); }
.hero__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(90% 70% at 50% 45%, #1b1a18 0%, var(--black) 70%); }
.hero__fallback .mexico { width: min(140vw, 1300px); opacity: .16; transform: translateY(4%); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img.is-missing { display: none; }
.hero__content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--pad); gap: 14px; }
.hero__img:not(.is-missing) ~ .hero__content, picture:has(.hero__img:not(.is-missing)) + .hero__content { background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); }
.hero__logo { margin-bottom: 18px; }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 12vw, 150px); line-height: .9; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; padding-left: .12em; }
.hero .eyebrow { opacity: .85; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2px; }
.tile { position: relative; display: block; }
.tile .media { aspect-ratio: 3 / 4; }
.tile .media__fallback .agave { width: 18%; }
.tile:hover img { transform: scale(1.03); }
.tile__label { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--cream); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
@media (min-width: 900px) { .tiles .media { aspect-ratio: 4 / 5; } .tile__label { bottom: 32px; font-size: 12px; } }

/* ---------- Grid de productos ---------- */
.products { padding: 56px 0 72px; }
.section-head { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; justify-content: space-between; padding: 0 var(--pad) 22px; }
.filters { display: flex; gap: 18px; }
.filters a { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); padding: 4px 0; border-bottom: 1px solid transparent; }
.filters a[aria-current], .filters a:hover { color: var(--black); border-color: var(--black); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; }
.card__link { display: block; }
.card__tag { position: absolute; top: 10px; left: 10px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); }
.card__info { padding: 10px var(--pad) 22px 10px; display: flex; flex-direction: column; gap: 2px; }
.card__name { font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.card__price { font-size: 10.5px; letter-spacing: .06em; color: var(--black); }

/* Tarjetas "Próximamente" */
.card--soon .media__fallback { background: var(--cream); color: var(--black); }
.card--soon .media__label { opacity: .55; }
.only-desktop { display: none; }
@media (min-width: 900px) { .only-desktop { display: block; } }
[data-agave] { display: block; }
.tile .media__fallback [data-agave], .media__fallback > [data-agave] { width: 16%; max-width: 90px; }
.tile .media__fallback [data-agave] .agave { width: 100%; max-width: none; }

/* ---------- Historia ---------- */
.story { display: grid; background: var(--cream); }
.story__media .media { aspect-ratio: 4 / 5; height: 100%; }
.story__text { padding: 56px var(--pad) 64px; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 560px; }
.story__text p:not(.eyebrow) { font-size: 14px; line-height: 1.75; color: #2b2925; }
.story__agave { width: 44px; color: var(--black); }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; }
  .story__text { padding: 80px 9vw; }
}

/* ---------- Newsletter ---------- */
.newsletter { padding: 80px var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.newsletter__form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; margin-top: 14px; }
.newsletter__form input { height: 44px; border: 0; border-bottom: 1px solid var(--black); padding: 0 2px; font-size: 11px; letter-spacing: .18em; background: transparent; outline: none; }
.newsletter__form input:focus { border-bottom-width: 2px; }
@media (min-width: 600px) { .newsletter__form { flex-direction: row; } .newsletter__form input { flex: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--cream); padding: 64px var(--pad) 28px; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer__brand p { font-size: 11px; letter-spacing: .08em; opacity: .7; }
.footer__col h4 { font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col a { display: inline-block; padding: 4px 0; font-size: 11px; letter-spacing: .06em; opacity: .72; transition: opacity .2s; }
.footer__col a:hover { opacity: 1; }
.footer__bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(233,223,207,.18); display: flex; align-items: center; gap: 18px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.footer__bottom span:last-child { margin-left: auto; }
.footer__map { width: 46px; }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .footer__brand { grid-column: auto; }
}

/* ---------- Cesta ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(11,11,11,.35); opacity: 0; transition: opacity .3s; }
.overlay.is-on { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(100%, 440px); background: var(--white); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden; outline: none; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--pad); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 11px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 var(--pad); }
.drawer__foot { padding: 18px var(--pad) 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer.is-empty .drawer__foot, .drawer:not(.is-empty) .cart-empty { display: none; }
.cart-empty { padding: 60px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; font-size: 12px; letter-spacing: .06em; }
.cart-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item .media { aspect-ratio: 2 / 3; }
.cart-item .media__fallback { gap: 4px; padding: 6px; }
.cart-item .media__mono { font-size: 18px; }
.cart-item .media__fallback .agave { width: 34%; }
.cart-item__info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cart-item__name { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin: 8px 0 6px; }
.qty button { width: 32px; height: 30px; font-size: 14px; }
.qty span { min-width: 24px; text-align: center; font-size: 11px; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.cart-subtotal strong { font-weight: 500; }
.checkout-msg { font-size: 11px; letter-spacing: .04em; text-align: center; min-height: 1em; }

/* ---------- Búsqueda ---------- */
.search { position: fixed; inset: 0; z-index: 95; background: var(--white); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.search.is-open { opacity: 1; visibility: visible; }
.search__head { display: flex; align-items: center; gap: 16px; padding: 24px var(--pad); }
.search__head input { flex: 1; height: 52px; border: 0; border-bottom: 1px solid var(--black); outline: none; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; background: transparent; }
.search__none { padding: 0 var(--pad); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 100; transform: translate(-50%, 20px); background: var(--black); color: var(--cream); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 12px 18px; opacity: 0; pointer-events: none; transition: .3s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Página de producto ---------- */
.pdp { display: grid; }
.pdp__gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pdp__gallery::-webkit-scrollbar { display: none; }
.pdp__shot { flex: 0 0 100%; scroll-snap-align: start; }
.pdp__shot .media { aspect-ratio: 3 / 4; }
.pdp__dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.pdp__dots span { width: 18px; height: 1px; background: var(--line); }
.pdp__dots span.on { background: var(--black); }
.pdp__info { padding: 24px var(--pad) 48px; }
.pdp__sticky { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.pdp__name { font-size: 14px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.pdp__price { font-size: 13px; letter-spacing: .06em; }
.sizes { border: 0; padding: 0; margin: 18px 0 6px; }
.sizes legend { padding: 0; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; }
.sizes ul { display: flex; flex-wrap: wrap; gap: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.sizes li { flex: 1 1 0; min-width: 56px; }
.size { width: 100%; height: 44px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.size:hover { background: var(--off); }
.size[aria-pressed="true"] { background: var(--black); color: var(--white); }
.pdp__hint { min-height: 1.2em; color: #8a2b1d; }
.pdp__desc { font-size: 12.5px; line-height: 1.75; color: #2b2925; margin-top: 8px; }
.accordion { margin-top: 18px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 14px 0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-weight: 300; font-size: 14px; line-height: 1; }
.accordion details[open] summary::after { content: "−"; }
.accordion ul { padding: 0 0 16px; font-size: 12px; line-height: 1.9; color: #2b2925; }
.accordion li::before { content: "— "; color: var(--grey); }
.related { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; overflow: visible; }
  .pdp__shot:first-child { grid-column: 1 / -1; }
  .pdp__shot:first-child .media { aspect-ratio: 4 / 5; }
  .pdp__shot:nth-child(2):last-child { grid-column: 1 / -1; }
  .pdp__shot:nth-child(2):last-child .media { aspect-ratio: 4 / 5; }
  .pdp__dots { display: none; }
  .pdp__info { padding: 0 6vw; position: sticky; top: var(--header-h); min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .pdp__sticky { padding: 48px 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.logo--footer .logo__agave { width: 1.6em; }

/* Hero con foto: texto abajo a la izquierda para no tapar rostros */
.hero:has(.hero__img:not(.is-missing)) .hero__content { justify-content: flex-end; align-items: flex-start; text-align: left; padding-bottom: 48px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%); }
.hero:has(.hero__img:not(.is-missing)) .hero__logo { display: none; }
.hero:has(.hero__img:not(.is-missing)) .hero__title { font-size: clamp(44px, 8vw, 110px); margin-bottom: 22px; padding-left: 0; }

/* ---------- The Club (banner) ---------- */
.club { margin-top: 2px; background: var(--black); }
.club__link { position: relative; display: block; overflow: hidden; color: var(--cream); }
.club__link img { object-position: center 20%; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .6s; }
.club__link:hover img { transform: scale(1.02); }
.club__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; padding: var(--pad); padding-bottom: 40px; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 50%); }
.club__title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 8vw, 110px); line-height: .95; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
@media (min-width: 900px) { .club__link img { object-position: center 20%; aspect-ratio: 2048 / 1100; } }
