/* Ajonjolí · hoja de estilos del sitio */
:root {
  --ink: #1E1712;
  --text: #3B332B;
  --muted: #6B6052;
  --cream: #FBF7EF;
  --paper: #FFFFFF;
  --sand: #EFE6D3;
  --line: #E3DACA;
  --line-strong: #B8AD99;
  --seed: #E8DBB7;
  --side: #AE835B;
  --leaf: #3E9B3A;
  --green: #2F7D2C;
  --green-dark: #24631F;
  --warn-bg: #FFF4D6;
  --warn: #7A5A00;
  --err-bg: #FBE9E4;
  --err: #8A2E17;
  --ok-bg: #E7F3E4;
  --radius: 18px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; }
h3 { font-size: 21px; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mono { font-family: var(--mono); letter-spacing: 1.5px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; color: var(--green); text-transform: uppercase; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.55; color: var(--text); max-width: 560px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -0.8px; }
.wordmark span { color: var(--green); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; font-weight: 600; }
.main-nav a { text-decoration: none; padding: 6px 0; }
.main-nav a[aria-current="page"] { color: var(--green); }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px !important; border: 1.5px solid var(--ink); border-radius: 999px; }
.cart-count { display: inline-flex; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--green); color: var(--cream); font-size: 13px; align-items: center; justify-content: center; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--green); background: var(--green); color: var(--cream); font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--cream); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* Portada */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 1 1 340px; min-width: 0; position: relative; height: 420px; border-radius: 28px; background: var(--sand); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.hero-art img.mascot { width: 62%; max-width: 300px; margin-bottom: 28px; }
.hero-art img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--text); padding: 0; margin: 0; list-style: none; }
.trust li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); margin-right: 8px; vertical-align: middle; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.card p { font-size: 15px; color: var(--text); }
.card .more { margin-top: auto; font-weight: 700; color: var(--green); }
.badge-num { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.steps .n { font-size: 44px; font-weight: 800; color: var(--green); line-height: 1; }
.steps strong { display: block; font-size: 19px; margin: 8px 0 4px; }
.steps p { font-size: 15px; color: var(--text); }

.about { display: flex; flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: center; }
.about > * { flex: 1 1 320px; min-width: 0; }
.about-img { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--sand); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img img.mascot { width: 40%; height: auto; object-fit: contain; }
.about-copy { display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--text); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 700; list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--text); max-width: 760px; }

/* Tienda */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; }
.chip[aria-current="true"] { border-color: var(--green); background: var(--ok-bg); color: var(--green-dark); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; }
.product-card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.thumb { aspect-ratio: 1; border-radius: var(--radius); background: var(--sand); overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb img.mascot { width: 45%; height: auto; object-fit: contain; opacity: .9; }
.product-card:hover .thumb img:not(.mascot) { transform: scale(1.03); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.tag-out { background: var(--ink); color: var(--cream); }
.product-card .name-price { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 700; }
.product-card .meta { font-size: 14px; color: var(--muted); }
.empty { padding: 40px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

/* Ficha de producto */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.pdp { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.pdp-gallery { flex: 1 1 420px; min-width: 0; }
.pdp-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.price { font-size: 30px; font-weight: 800; }
.stock { font-size: 15px; font-weight: 600; color: var(--green); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--err); }
.desc { font-size: 17px; color: var(--text); white-space: pre-line; }
fieldset { border: 0; margin: 0; padding: 0; }
legend, .label { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: block; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--paper); font-size: 15px; font-weight: 600; cursor: pointer; }
.swatch input:checked + span { border: 2px solid var(--green); background: var(--ok-bg); }
.swatch input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); border-radius: 999px; }
.qty input[type=number] { width: 44px; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; text-align: center; font: 700 16px var(--font); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text); }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.specs dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

/* Formularios */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); font: 16px var(--font);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 125, 44, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 16px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 15px; background: var(--ok-bg); color: var(--green-dark); }
.notice-error, .notice.error { background: var(--err-bg); color: var(--err); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }

.service-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.service-picker label { position: relative; }
.service-picker input { position: absolute; opacity: 0; }
.service-picker span { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--paper); cursor: pointer; font-weight: 700; }
.service-picker small { font-weight: 500; color: var(--muted); font-size: 13px; }
.service-picker input:checked + span { border: 2px solid var(--green); background: var(--ok-bg); }
.service-picker input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

/* Carrito y cotizador: dos columnas */
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split-side { flex: 1 1 320px; min-width: 0; position: sticky; top: 90px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { border-radius: 12px; }
.cart-line .opt { font-size: 14px; color: var(--muted); }
.cart-line .line-total { font-weight: 700; text-align: right; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row.total { font-size: 20px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--line); }
.ship-options { display: flex; flex-direction: column; gap: 8px; }
.ship-options label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); cursor: pointer; font-size: 15px; }
.ship-options label:has(input:checked) { border-color: var(--green); background: var(--ok-bg); }
.ship-options input { accent-color: var(--green); width: 18px; height: 18px; }
.ship-options .grow { flex: 1; }
.estimate { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.pay-logos { font-size: 13px; color: var(--muted); }

/* Estados de pedido */
.status-box { max-width: 680px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.status-box img { width: 120px; }
.order-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.order-table th, .order-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-table td.num, .order-table th.num { text-align: right; white-space: nowrap; }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; color: var(--text); font-size: 16px; }
.prose h2 { font-size: 22px; color: var(--ink); margin-top: 18px; letter-spacing: -0.01em; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Pie */
.site-footer { background: var(--ink); color: var(--seed); margin-top: 0; }
.site-footer a { color: var(--seed); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer .wordmark span { color: var(--leaf); }
.site-footer .muted { color: #BFB3A0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-links { font-size: 15px; }
.footer-base { padding-bottom: 32px; border-top: 1px solid #3A2F26; padding-top: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; z-index: 20; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.toast a { color: var(--seed); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 36px; padding-bottom: 44px; }
  .hero { padding-top: 32px; gap: 28px; }
  .hero-art { height: 300px; }
  .main-nav { gap: 2px 16px; font-size: 14px; }
  .site-header { position: static; }
  .split-side { position: static; }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line .line-total { grid-column: 2; text-align: left; }
  .btn { width: 100%; }
  .actions .btn, .buy-row .btn { width: auto; flex: 1 1 200px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Cuenta del cliente */
.account-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.account-head img { border-radius: 50%; }

/* Galería y colores en la ficha */
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--green); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.swatch-color span { padding: 0 12px 0 6px; }
.swatch-color span i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); display: inline-block; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.swatch-color span em { font-style: normal; }
.swatch-color input:disabled + span { opacity: .4; cursor: not-allowed; }
.pay-method { display: flex; flex-direction: column; gap: 8px; }
.pay-method label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); cursor: pointer; font-size: 15px; }
.pay-method label:has(input:checked) { border-color: var(--green); background: var(--ok-bg); }
.bank-box { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-align: left; width: 100%; max-width: 480px; }
.bank-box .clabe { font-family: var(--mono); font-size: 20px; letter-spacing: 1px; }
.mini-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); margin: 0 4px 0 2px; vertical-align: -1px; }

/* Análisis del archivo 3D en el cotizador */
.analysis { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #FBF8F1; display: flex; flex-direction: column; gap: 12px; }
.analysis-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.analysis-head img { width: 120px; height: 120px; object-fit: contain; border-radius: 10px; background: #2B2B2B; }
.analysis-head img.vec-thumb { background: #fff; border: 1px solid var(--line); }
.analysis-kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: 14px; }
.analysis-kv dt { color: var(--muted); }
.analysis-kv dd { margin: 0; font-weight: 600; }
.pill-ok, .pill-est { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-ok { background: var(--ok-bg); color: var(--green-dark); }
.pill-est { background: var(--warn-bg); color: var(--warn); }
.slot-pick { display: flex; flex-direction: column; gap: 8px; }
.slot-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot-line .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); display: inline-block; flex: none; }
.slot-line select { flex: 1 1 200px; min-height: 40px; width: auto; }
.ship-options [hidden] { display: none !important; }
.pay-proof .proof-fields { display: flex; flex-direction: column; gap: 10px; }
.proof-status { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--sand); }
.proof-status.ok { background: var(--ok-bg); }
.proof-status.warn { background: var(--warn-bg); }
