/*
Theme Name: Tonantzin — Vistiendo tu fuerza
Theme URI: https://alllo.studio/
Author: ALLLO Studio
Author URI: https://alllo.studio/
Description: Catálogo editorial y conversacional para Tonantzin. Diseñado para compras rápidas por WhatsApp.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tonantzin
*/

:root {
  --ink: #07080a;
  --paper: #f0eadc;
  --paper-2: #e4dac7;
  --berry: #935661;
  --berry-deep: #633842;
  --rose: #c58a96;
  --clay: #935661;
  --sand: #d6cbb8;
  --acid: var(--rose);
  --muted: #625b55;
  --line: rgba(21, 18, 16, .16);
  --white: #fffdf8;
  --shadow: 0 28px 80px rgba(25, 15, 13, .16);
  --radius: 28px;
  --container: min(1240px, calc(100vw - 48px));
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.drawer-open, body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--berry); }
.site-main { overflow: clip; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 150px) 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { width: 34px; height: 2px; content: ""; background: currentColor; }
.display {
  margin: 0;
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(52px, 8vw, 118px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .88;
}
.display em { color: var(--berry); font-weight: inherit; font-style: normal; }
.section-title {
  max-width: 900px;
  margin: 0;
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(42px, 5.7vw, 82px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .94;
}
.section-title em { color: var(--berry); font-style: normal; }
.section-intro { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); background: var(--berry); }
.button--berry { background: var(--berry); }
.button--light { background: var(--white); color: var(--ink); }
.button--outline { border-color: currentColor; background: transparent; color: var(--ink); }
.button--full { width: 100%; }
.arrow { font-size: 18px; transition: transform .2s ease; }
.button:hover .arrow { transform: translate(3px, -3px); }

/* Header: intentionally opaque so menus never collide visually with content. */
.announcement {
  position: relative;
  z-index: 1002;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  background: var(--berry);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(244, 239, 230, .98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { display: grid; min-height: 78px; align-items: center; grid-template-columns: 190px 1fr auto; gap: 24px; }
.brand img { width: 150px; height: 58px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 40px); }
.desktop-nav a { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.desktop-nav a:hover { color: var(--berry); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
  transition: .25s ease;
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
.mobile-nav {
  position: fixed;
  z-index: 999;
  inset: 112px 0 0;
  display: none;
  padding: 40px 24px 110px;
  background: var(--paper);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a:not(.button) {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
  text-decoration: none;
}
.mobile-nav .button { margin-top: 32px; }

/* Hero */
.hero { position: relative; min-height: calc(100svh - 112px); background: var(--ink); color: var(--white); }
.hero-grid { display: grid; min-height: calc(100svh - 112px); grid-template-columns: 1.02fr .98fr; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 8vw, 130px) clamp(30px, 5vw, 80px) 70px max(24px, calc((100vw - 1240px) / 2)); }
.hero-copy .eyebrow { color: var(--acid); }
.hero-title { max-width: 720px; margin: 0; font-family: "Syne", "Helvetica Neue", Arial, sans-serif; font-size: clamp(67px, 8vw, 126px); font-weight: 600; letter-spacing: -.065em; line-height: .84; }
.hero-title em { display: block; color: #eec9d4; font-weight: 500; }
.hero-lead { max-width: 580px; margin: 32px 0; color: rgba(255,255,255,.72); font-size: clamp(17px, 1.6vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; min-height: 640px; overflow: hidden; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.86) contrast(1.04); }
.hero-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(21,18,16,.82), transparent 34%), linear-gradient(0deg, rgba(21,18,16,.35), transparent 42%); }
.hero-stamp {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 64px);
  bottom: 42px;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: rgba(21,18,16,.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.trust-strip { background: var(--acid); color: var(--ink); }
.trust-inner { display: grid; min-height: 82px; align-items: center; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; border-right: 1px solid rgba(21,18,16,.18); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.trust-item:last-child { border-right: 0; }
.trust-icon { font-size: 20px; }

/* Intent-led shopping */
.shop-by { background: var(--paper); }
.shop-by-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.intent-grid { display: grid; margin-top: 64px; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.intent-card { position: relative; min-height: 330px; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--white); text-decoration: none; }
.intent-card img { width: 100%; height: 100%; object-fit: cover; opacity: .68; transition: transform .5s ease, opacity .4s ease; }
.intent-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(21,18,16,.86), transparent 68%); }
.intent-card-content { position: absolute; z-index: 2; right: 24px; bottom: 24px; left: 24px; }
.intent-card h3 { margin: 0; font-family: "Syne", "Helvetica Neue", Arial, sans-serif; font-size: 44px; font-weight: 600; line-height: .95; }
.intent-card p { margin: 10px 0 0; color: rgba(255,255,255,.74); font-size: 14px; }
.intent-card:hover img { transform: scale(1.035); opacity: .82; }

/* Catalog */
.catalog { background: var(--white); }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 42px 0 36px; }
.filter {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter.is-active, .filter:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 18px; }
.product-card { min-width: 0; }
.product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--paper-2); cursor: pointer; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.product-media img.secondary { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-media img.primary { opacity: 0; }
.product-card:hover .product-media img.secondary { opacity: 1; transform: scale(1.02); }
.product-badge { position: absolute; z-index: 3; top: 16px; left: 16px; padding: 8px 12px; border-radius: 999px; background: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quick-add { position: absolute; z-index: 3; right: 14px; bottom: 14px; left: 14px; transform: translateY(10px); opacity: 0; }
.product-card:hover .quick-add { transform: translateY(0); opacity: 1; }
.product-info { display: grid; padding: 18px 4px 0; grid-template-columns: 1fr auto; gap: 8px 20px; }
.product-name { margin: 0; font-family: "Syne", "Helvetica Neue", Arial, sans-serif; font-size: 29px; font-weight: 600; line-height: 1; }
.product-price { font-weight: 800; }
.product-meta { margin: 0; color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.catalog-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.catalog-note p { margin: 0; }

/* Yokai */
.yokai { position: relative; background: #151515; color: var(--white); }
.yokai::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 36px 36px; }
.yokai .container { position: relative; }
.yokai-head { display: grid; align-items: end; grid-template-columns: 1fr .78fr; gap: 50px; }
.yokai .section-intro { color: rgba(255,255,255,.63); }
.yokai-mark { justify-self: end; width: min(260px, 40vw); filter: invert(1) grayscale(1) brightness(3); }
.illustrations { display: grid; margin-top: 58px; grid-auto-columns: minmax(230px, 1fr); grid-auto-flow: column; gap: 14px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; scrollbar-color: var(--berry) rgba(255,255,255,.1); }
.illustration { position: relative; aspect-ratio: .83; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #202020; scroll-snap-align: start; }
.illustration img { width: 100%; height: 100%; object-fit: cover; }
.illustration span { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.75); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.yokai-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 34px; }
.yokai-cta p { max-width: 600px; margin: 0; color: rgba(255,255,255,.64); }

/* Story */
.story { background: var(--paper-2); }
.story-grid { display: grid; align-items: center; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); }
.story-media { position: relative; }
.story-media img { width: 100%; max-height: 760px; aspect-ratio: .8; border-radius: var(--radius); object-fit: cover; }
.story-note { position: absolute; right: -30px; bottom: 38px; max-width: 260px; padding: 24px; border-radius: 18px; background: var(--acid); font-size: 13px; font-weight: 800; line-height: 1.45; transform: rotate(-3deg); }
.story-copy p { max-width: 660px; color: #4f4943; font-size: clamp(17px, 1.6vw, 21px); }
.story-quote { margin: 34px 0; padding-left: 24px; border-left: 4px solid var(--berry); font-family: "Syne", "Helvetica Neue", Arial, sans-serif; font-size: clamp(28px, 3.3vw, 48px); font-style: normal; line-height: 1.05; }
.principles { display: grid; margin-top: 42px; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.principle { padding: 18px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Process */
.process { background: var(--berry); color: var(--white); }
.process .eyebrow { color: #ffd0df; }
.steps { display: grid; margin-top: 58px; grid-template-columns: repeat(4, 1fr); }
.step { padding: 26px 26px 32px; border-top: 1px solid rgba(255,255,255,.3); border-right: 1px solid rgba(255,255,255,.18); }
.step:last-child { border-right: 0; }
.step-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 48px; border-radius: 50%; background: var(--white); color: var(--berry); font-weight: 900; }
.step h3 { margin: 0 0 12px; font-family: "Syne", "Helvetica Neue", Arial, sans-serif; font-size: 32px; line-height: 1; }
.step p { margin: 0; color: rgba(255,255,255,.74); font-size: 14px; }
.timeline-note { margin: 28px 0 0; color: rgba(255,255,255,.82); font-weight: 700; }

/* Size and FAQ */
.size-guide { background: var(--white); }
.size-grid { display: grid; align-items: start; grid-template-columns: .78fr 1.22fr; gap: clamp(40px, 7vw, 100px); }
.size-card { padding: 20px; border-radius: var(--radius); background: var(--ink); }
.size-card img { width: 100%; border-radius: 16px; }
.size-copy { position: sticky; top: 130px; }
.size-tips { margin: 34px 0; padding: 0; list-style: none; }
.size-tips li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.size-tips li::before { color: var(--berry); content: "✦"; }
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 8vw, 120px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border: 0; background: transparent; font-weight: 800; text-align: left; cursor: pointer; }
.faq-question span:last-child { font-size: 24px; font-weight: 400; }
.faq-answer { display: none; max-width: 720px; padding: 0 40px 24px 0; color: var(--muted); }
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-question span:last-child { transform: rotate(45deg); }

/* Final CTA / Footer */
.final-cta { padding: clamp(80px, 10vw, 140px) 0; background: var(--acid); text-align: center; }
.final-cta h2 { max-width: 1000px; margin: 0 auto 28px; font-family: "Syne", "Helvetica Neue", Arial, sans-serif; font-size: clamp(54px, 8vw, 112px); font-weight: 650; letter-spacing: -.06em; line-height: .88; }
.final-cta p { max-width: 600px; margin: 0 auto 30px; }
.site-footer { padding: 60px 0 28px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; }
.footer-brand img { width: 190px; margin-bottom: 24px; }
.footer-brand p { max-width: 420px; color: rgba(255,255,255,.6); }
.footer-col h3 { margin: 0 0 18px; color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { display: block; margin: 10px 0; text-decoration: none; }
.footer-col a:hover { color: var(--acid); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 12px; }
.whatsapp-float { position: fixed; z-index: 900; right: 22px; bottom: 22px; display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 0 20px; border-radius: 999px; background: #25d366; color: #071d0f; box-shadow: 0 14px 36px rgba(0,0,0,.24); font-size: 12px; font-weight: 900; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.whatsapp-float svg { width: 22px; }

/* Order drawer */
.drawer-backdrop { position: fixed; z-index: 1100; inset: 0; visibility: hidden; background: rgba(10,8,7,.58); opacity: 0; transition: .25s ease; }
.drawer-backdrop.is-open { visibility: visible; opacity: 1; }
.order-drawer { position: absolute; top: 0; right: 0; width: min(540px, 100%); height: 100%; padding: 26px; overflow-y: auto; background: var(--white); box-shadow: var(--shadow); transform: translateX(100%); transition: transform .32s ease; }
.drawer-backdrop.is-open .order-drawer { transform: translateX(0); }
.drawer-close { display: grid; width: 44px; height: 44px; place-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 22px; cursor: pointer; }
.drawer-product { display: grid; align-items: center; margin: 18px 0 30px; grid-template-columns: 110px 1fr; gap: 18px; }
.drawer-product img { width: 110px; height: 132px; border-radius: 14px; object-fit: cover; }
.drawer-product h2 { margin: 0 0 4px; font-family: "Syne", "Helvetica Neue", Arial, sans-serif; font-size: 34px; line-height: 1; }
.drawer-price { font-weight: 800; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field select, .field input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.drawer-summary { margin: 26px 0; padding: 20px; border-radius: 14px; background: var(--paper); font-size: 13px; }
.drawer-summary strong { display: block; margin-bottom: 6px; }
.drawer-help { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.drawer-help a { font-weight: 800; }

/* Reveal motion kept intentionally subtle. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  :root { --container: min(100% - 32px, 760px); }
  .desktop-nav, .header-actions .button { display: none; }
  .header-inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .menu-toggle { display: flex; }
  .mobile-nav { inset-block-start: 106px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 670px; padding: 80px 24px 70px; }
  .hero-media { min-height: 68svh; }
  .hero-media::after { background: linear-gradient(0deg, rgba(21,18,16,.56), transparent 58%); }
  .shop-by-grid, .story-grid, .size-grid, .faq-grid { grid-template-columns: 1fr; }
  .intent-grid { grid-template-columns: repeat(2, 1fr); }
  .intent-card:last-child { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .yokai-head { grid-template-columns: 1fr; }
  .yokai-mark { justify-self: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .size-copy { position: static; }
  .size-card { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 28px); --radius: 20px; }
  html { scroll-padding-top: 105px; }
  .announcement { min-height: 33px; font-size: 9px; letter-spacing: .1em; }
  .site-header { top: 0; }
  .header-inner { min-height: 68px; }
  .brand img { width: 136px; height: 50px; }
  .menu-toggle { width: 46px; height: 46px; }
  .mobile-nav { inset-block-start: 101px; }
  .section { padding: 78px 0; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; }
  .hero-copy { min-height: calc(100svh - 101px); }
  .hero-title { font-size: clamp(60px, 19vw, 88px); line-height: .82; }
  .hero-lead { margin: 26px 0; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-media { min-height: 74svh; }
  .hero-stamp { width: 112px; height: 112px; font-size: 8px; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { min-height: 54px; border-right: 0; border-bottom: 1px solid rgba(21,18,16,.18); }
  .trust-item:last-child { border-bottom: 0; }
  .display { font-size: clamp(52px, 16vw, 74px); line-height: .88; }
  .section-title { font-size: clamp(45px, 14vw, 68px); }
  .shop-by-grid { gap: 28px; }
  .intent-grid { margin-top: 40px; grid-template-columns: 1fr; }
  .intent-card, .intent-card:last-child { min-height: 300px; grid-column: auto; }
  .catalog-head { display: block; }
  .filters { margin: 30px -14px; padding: 0 14px; flex-wrap: nowrap; overflow-x: auto; }
  .filter { flex: 0 0 auto; }
  .product-grid { grid-template-columns: 1fr; gap: 42px; }
  .product-media { aspect-ratio: 4 / 4.8; }
  .quick-add { transform: none; opacity: 1; }
  .catalog-note, .yokai-cta { align-items: stretch; flex-direction: column; }
  .catalog-note .button, .yokai-cta .button { width: 100%; }
  .illustrations { grid-auto-columns: 78%; }
  .story-note { right: -6px; bottom: 20px; max-width: 220px; }
  .principles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2) { border-right: 0; }
  .step-icon { margin-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 56px; height: 56px; min-height: 56px; justify-content: center; padding: 0; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .order-drawer { padding: 18px; }
}

/* =========================================================
   TONANTZIN IDENTITY SYSTEM · v1.2
   Black #07080A · Soft Linen #F0EADC · Smoky Rose #935661
   ========================================================= */
body { background: var(--paper); }
body.illustration-open { overflow: hidden; }
.announcement { background: var(--berry); }
.site-header { background: rgba(240,234,220,.98); }
.mobile-nav { background: var(--paper); }
.button:hover { background: var(--berry-deep); }
.hero::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -7vw;
  width: min(46vw, 720px);
  height: 100%;
  content: "";
  background: url("assets/images/zebra-pattern.svg") center / cover no-repeat;
  opacity: .075;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% 48%;
  filter: saturate(.78) contrast(1.06);
}
.hero-slide--video::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7,8,10,.35), transparent 65%);
}
.hero-shade { background: linear-gradient(90deg, rgba(7,8,10,.97) 0%, rgba(7,8,10,.86) 35%, rgba(7,8,10,.24) 68%, rgba(7,8,10,.14) 100%), linear-gradient(0deg, rgba(7,8,10,.66), transparent 46%); }
.hero-copy .eyebrow,
.hero-title span,
.hero-feature span { color: #d7a5af; }
.hero-dot.is-active { background: #d7a5af; }
.trust-strip { background: var(--paper); }
.movement-marquee { background: var(--ink); }
.movement-track i { color: var(--rose); }

/* Front/back controls remain visible and usable on touch screens. */
.product-media img.primary,
.product-card:hover .product-media img.primary { opacity: 1; }
.product-media img.secondary,
.product-card:hover .product-media img.secondary { opacity: 0; transform: none; }
.product-media.show-back img.primary,
.product-card:hover .product-media.show-back img.primary { opacity: 0; }
.product-media.show-back img.secondary,
.product-card:hover .product-media.show-back img.secondary { opacity: 1; transform: scale(1.01); }
.product-view-toggle {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7,8,10,.72);
  backdrop-filter: blur(10px);
}
.product-view-toggle button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.product-view-toggle button.is-active { background: var(--paper); color: var(--ink); }
.product-badge { top: 64px; background: var(--paper); }

/* Yokai detail interaction */
.yokai { background: var(--ink); }
.yokai::after {
  position: absolute;
  inset: 0;
  content: "";
  background: url("assets/images/zebra-pattern.svg") 110% 20% / min(52vw, 680px) auto no-repeat;
  opacity: .045;
  pointer-events: none;
}
.yokai .section-intro strong { color: var(--white); font-size: 1.18em; }
.illustration-hint { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }
.illustration-hint span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--rose); font-size: 22px; }
.illustration { padding: 0; color: var(--white); text-align: left; cursor: zoom-in; }
.illustration-code { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.78); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.illustration-zoom { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 12px 15px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: .25s ease; }
.illustration:hover .illustration-zoom,
.illustration:focus-visible .illustration-zoom { opacity: 1; transform: none; }
.illustration:hover .illustration-code,
.illustration:focus-visible .illustration-code { opacity: 0; }
.illustration-modal-backdrop {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 22px;
  background: rgba(7,8,10,.9);
  opacity: 0;
  transition: .25s ease;
}
.illustration-modal-backdrop.is-open { visibility: visible; opacity: 1; }
.illustration-modal {
  position: relative;
  display: grid;
  width: min(1000px, 100%);
  max-height: calc(100svh - 44px);
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: #111214;
  box-shadow: 0 36px 100px rgba(0,0,0,.5);
}
.illustration-modal figure { display: grid; min-height: 0; height: 100%; margin: 0; place-items: center; }
.illustration-modal figure img { width: 100%; height: min(68svh, 720px); object-fit: contain; }
.illustration-modal figcaption { padding: 12px 0 0; color: var(--white); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.illustration-modal-close { position: absolute; z-index: 3; top: 16px; right: 16px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(7,8,10,.72); color: var(--white); font-size: 25px; cursor: pointer; }
.illustration-modal-nav { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: transparent; color: var(--white); font-size: 30px; cursor: pointer; }
.illustration-modal-nav:hover { background: var(--paper); color: var(--ink); }
.illustration-modal-select { grid-column: 2; justify-self: center; margin-top: 18px; }

/* Founder story */
.story-collage { min-height: 720px; }
.story-media.story-collage img { position: absolute; object-fit: cover; }
.story-collage-main { top: 0; left: 0; width: 78% !important; height: 78% !important; aspect-ratio: auto !important; }
.story-collage-portrait { right: 0; bottom: 0; width: 54% !important; height: 48% !important; aspect-ratio: auto !important; border: 12px solid var(--paper-2); box-shadow: var(--shadow); }
.story-collage .story-note { z-index: 3; right: auto; bottom: 22%; left: 5%; }

/* Social proof */
.community { position: relative; background: var(--ink); color: var(--white); }
.community::before { position: absolute; inset: 0; content: ""; background: url("assets/images/zebra-pattern.svg") -9vw 10% / 44vw auto no-repeat; opacity: .035; pointer-events: none; }
.community .container { position: relative; }
.community-head { display: grid; align-items: end; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 8vw, 110px); }
.community .section-title em { color: var(--rose); }
.community .section-intro { color: rgba(255,255,255,.64); }
.community-rail { display: grid; margin: 58px calc((100vw - var(--container)) / -2) 0; padding: 0 calc((100vw - var(--container)) / 2) 22px; grid-auto-columns: clamp(230px, 25vw, 330px); grid-auto-flow: column; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--rose) rgba(255,255,255,.1); }
.community-card { aspect-ratio: .48; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: #141518; scroll-snap-align: start; }
.community-card img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-grid { display: grid; margin-top: 64px; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testimonial-grid figure { display: grid; min-height: 260px; margin: 0; place-items: center; padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.055); }
.testimonial-grid img { width: 100%; max-height: 310px; object-fit: contain; border-radius: 12px; }

/* Updated measurement tables */
.size-grid { grid-template-columns: 1.16fr .84fr; }
.size-card--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.size-card--pair figure { margin: 0; }
.size-card--pair figcaption { padding: 2px 4px 12px; color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.size-modal-guides { min-width: 0; }
.size-modal-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.size-modal-tabs button { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.size-modal-tabs button.is-active { border-color: var(--berry); background: var(--berry); color: var(--white); }
.size-modal-image[hidden] { display: none; }

@media (max-width: 980px) {
  .community-head { grid-template-columns: 1fr; }
  .story-collage { min-height: 700px; }
  .size-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero::after { right: -30%; width: 92vw; opacity: .055; }
  .hero-slide video { object-position: center 42%; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,8,10,.97) 0%, rgba(7,8,10,.74) 52%, rgba(7,8,10,.1) 100%); }
  .product-badge { top: 62px; }
  .product-view-toggle { top: 12px; right: 12px; }
  .illustration-zoom { opacity: 1; transform: none; }
  .illustration-code { bottom: 62px; }
  .illustration-modal-backdrop { padding: 8px; }
  .illustration-modal { max-height: calc(100svh - 16px); grid-template-columns: 46px minmax(0, 1fr) 46px; padding: 68px 8px 18px; border-radius: 20px; }
  .illustration-modal figure img { height: min(65svh, 590px); }
  .illustration-modal-nav { width: 42px; height: 42px; }
  .illustration-modal-select { width: 100%; grid-column: 1 / -1; }
  .story-collage { min-height: 590px; }
  .story-collage-main { width: 86% !important; height: 74% !important; }
  .story-collage-portrait { width: 58% !important; height: 42% !important; border-width: 8px; }
  .story-collage .story-note { bottom: 20%; left: 2%; max-width: 210px; }
  .community-rail { margin-inline: -14px; padding-inline: 14px; grid-auto-columns: 76%; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-grid figure { min-height: 200px; }
  .size-card--pair { grid-template-columns: 1fr; }
}

/* =========================================================
   TONANTZIN IDENTITY SYSTEM · v1.1
   Obsidiana / Marfil / Guinda / Rosa arcilla / Arena
   ========================================================= */
.scroll-progress {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--rose);
  transition: width .08s linear;
}
.display,
.section-title,
.hero-title,
.intent-card h3,
.product-name,
.story-quote,
.step h3,
.final-cta h2,
.drawer-product h2,
.size-modal h2,
.mobile-nav a:not(.button) {
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
}
.button { font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif; }

/* Commercial hero carousel */
.hero {
  position: relative;
  min-height: clamp(680px, calc(100svh - 112px), 920px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-slides,
.hero-slide,
.hero-slide img,
.hero-shade { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .9s ease, transform 5.8s ease;
}
.hero-slide.is-active { z-index: 1; opacity: 1; transform: scale(1); }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 35%;
  filter: saturate(.9) contrast(1.03);
}
.hero-slide:nth-child(2) img { object-position: 70% 33%; }
.hero-slide:nth-child(3) img { object-position: 68% 38%; }
.hero-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(16,12,14,.94) 0%, rgba(16,12,14,.84) 33%, rgba(16,12,14,.23) 66%, rgba(16,12,14,.18) 100%),
    linear-gradient(0deg, rgba(16,12,14,.68) 0%, transparent 46%);
}
.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: clamp(680px, calc(100svh - 112px), 920px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-rows: 1fr auto;
  gap: 34px;
  padding-block: 80px 34px;
}
.hero-copy {
  display: block;
  max-width: 760px;
  min-height: 0;
  padding: 0;
  align-self: center;
}
.hero-copy .eyebrow { color: var(--rose); }
.hero-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(64px, 7.7vw, 118px);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .87;
  text-wrap: balance;
}
.hero-title span { display: block; color: var(--rose); }
.hero-lead { max-width: 560px; margin: 28px 0 32px; color: rgba(255,255,255,.78); font-size: clamp(17px, 1.5vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--glass { border-color: rgba(255,255,255,.55); background: rgba(21,18,16,.28); color: var(--white); backdrop-filter: blur(10px); }
.button--glass:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.hero-feature {
  align-self: end;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 18px;
  background: rgba(21,18,16,.58);
  backdrop-filter: blur(12px);
}
.hero-feature span { display: block; margin-bottom: 12px; color: var(--rose); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-feature strong { display: block; font-family: "Syne", sans-serif; font-size: 20px; line-height: 1.05; }
.hero-feature small { display: block; margin-top: 7px; color: rgba(255,255,255,.68); }
.hero-navigation { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; }
.hero-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(21,18,16,.35);
  color: var(--white);
  cursor: pointer;
}
.hero-arrow:hover { background: var(--white); color: var(--ink); }
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-dot.is-active { width: 34px; background: var(--rose); }

/* Calm proof strip and motion ribbon */
.trust-strip { background: var(--paper-2); color: var(--ink); }
.trust-item { border-color: rgba(21,18,16,.13); }
.trust-icon { color: var(--berry); }
.movement-marquee { overflow: hidden; padding: 15px 0; background: var(--berry); color: var(--white); }
.movement-track { display: flex; width: max-content; align-items: center; gap: 30px; animation: tonantzin-marquee 24s linear infinite; }
.movement-track span { font-family: "Syne", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.movement-track i { color: var(--rose); font-style: normal; }
@keyframes tonantzin-marquee { to { transform: translateX(-50%); } }

/* Geometric typography throughout */
.intent-card h3 { font-size: 37px; font-weight: 650; letter-spacing: -.04em; }
.product-name { font-size: 25px; font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.story-quote { font-size: clamp(27px, 3vw, 44px); font-style: normal; font-weight: 600; letter-spacing: -.04em; }
.step h3 { font-size: 28px; font-weight: 650; letter-spacing: -.03em; }
.drawer-product h2 { font-size: 30px; font-weight: 650; letter-spacing: -.04em; }
.section-title em { color: var(--berry); font-style: normal; }

/* Filters are always visible and read as a complete choice set. */
.filters { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px; }
.filter { min-height: 46px; }

/* Yokai collaboration */
.yokai { background: #141213; }
.yokai-head { grid-template-columns: minmax(0, 1fr) 330px; align-items: center; gap: clamp(36px, 7vw, 100px); }
.yokai .section-title em { color: var(--rose); }
.yokai-logo-card {
  display: grid;
  width: 330px;
  height: 300px;
  place-items: center;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  background: linear-gradient(145deg, #211d1f, #111011);
  box-shadow: inset 0 0 60px rgba(164,20,74,.12);
}
.yokai-mark {
  width: 78%;
  max-height: 86%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .96;
}
.illustrations { scrollbar-color: var(--rose) rgba(255,255,255,.1); }
.illustration { transition: transform .35s ease, border-color .35s ease; }
.illustration:hover { transform: translateY(-8px); border-color: var(--rose); }

/* Story and CTA no longer use fluorescent accents. */
.story-note { background: var(--rose); color: var(--ink); transform: rotate(-1.5deg); }
.final-cta { background: var(--berry); color: var(--white); }
.final-cta .eyebrow { color: #f0c6d2; }
.final-cta .button--berry { background: var(--white); color: var(--berry); }
.footer-col a:hover { color: var(--rose); }

/* Accessible size guide inside order flow */
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.field-heading label { margin: 0; }
.size-guide-trigger { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--berry); font-size: 11px; font-weight: 800; cursor: pointer; }
.size-modal-backdrop {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 20px;
  background: rgba(10,8,9,.78);
  opacity: 0;
  transition: .25s ease;
}
.size-modal-backdrop.is-open { visibility: visible; opacity: 1; }
.size-modal {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  max-height: calc(100svh - 40px);
  grid-template-columns: .72fr 1.28fr;
  gap: 28px;
  padding: 28px;
  overflow-y: auto;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.size-modal-close { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 22px; cursor: pointer; }
.size-modal-copy { align-self: center; padding: 20px; }
.size-modal-copy span { color: var(--berry); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.size-modal h2 { margin: 12px 0; font-size: 42px; line-height: .95; letter-spacing: -.05em; }
.size-modal img { width: 100%; max-height: 72svh; border-radius: 18px; object-fit: contain; background: var(--ink); }

/* Scroll motion: noticeable, not noisy. */
.reveal { opacity: 0; filter: blur(4px); transform: translateY(38px) scale(.985); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1), filter .75s ease; }
.reveal.is-visible { opacity: 1; filter: none; transform: none; }
.product-card:nth-child(2n) { transition-delay: .08s; }
.product-card:nth-child(3n) { transition-delay: .16s; }
.intent-card img,
.story-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.intent-card.is-visible img { transform: scale(1.015); }

@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr 230px; }
  .yokai-head { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
  .yokai-logo-card { width: 250px; height: 250px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter { width: 100%; }
}

@media (max-width: 640px) {
  .hero { min-height: calc(100svh - 101px); }
  .hero-slide img { object-position: 58% center; }
  .hero-slide:nth-child(2) img,
  .hero-slide:nth-child(3) img { object-position: 54% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(16,12,14,.96) 0%, rgba(16,12,14,.66) 51%, rgba(16,12,14,.14) 100%); }
  .hero-content {
    min-height: calc(100svh - 101px);
    align-content: end;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    gap: 18px;
    padding-block: 90px 22px;
  }
  .hero-copy { min-height: 0; padding: 0; align-self: end; }
  .hero-copy .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .hero-title { max-width: 570px; font-size: clamp(48px, 14vw, 68px); line-height: .9; }
  .hero-lead { max-width: 520px; margin: 18px 0 22px; font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .button { width: 100%; min-height: 52px; padding-inline: 14px; font-size: 10px; }
  .hero-feature { display: none; }
  .hero-navigation { justify-content: space-between; grid-column: auto; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { min-height: 58px; border-right: 0; border-bottom: 1px solid rgba(21,18,16,.12); }
  .filters { margin: 28px 0 34px; padding: 0; overflow: visible; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter { min-height: 52px; padding: 9px 10px; white-space: normal; line-height: 1.2; }
  .yokai-head { grid-template-columns: 1fr; gap: 28px; }
  .yokai-logo-card { width: 100%; height: 210px; justify-self: stretch; }
  .yokai-mark { width: 62%; max-height: 92%; }
  .illustrations { grid-auto-columns: 82%; }
  .story-note { max-width: 240px; background: var(--rose); }
  .size-modal { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .size-modal-copy { padding: 10px 38px 4px 4px; }
  .size-modal h2 { font-size: 34px; }
  .size-modal img { max-height: none; }
}

/* v1.2 final precedence */
.yokai { background: var(--ink); }
.movement-marquee { background: var(--ink); }
.hero-shade { background: linear-gradient(90deg, rgba(7,8,10,.97) 0%, rgba(7,8,10,.86) 35%, rgba(7,8,10,.24) 68%, rgba(7,8,10,.14) 100%), linear-gradient(0deg, rgba(7,8,10,.66), transparent 46%); }
@media (max-width: 640px) {
  .hero-shade { background: linear-gradient(0deg, rgba(7,8,10,.97) 0%, rgba(7,8,10,.74) 52%, rgba(7,8,10,.1) 100%); }
}

