/* Kaibari — sistema visual tomado de las etiquetas en Canva:
   fondo Beige 1, bloques técnicos en Beige 2, franjas y texto en Verde,
   mayúsculas con tracking amplio y textos verticales laterales. */

@font-face { font-family: 'Nexus'; src: url('/fonts/Nexus.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Glacial Indifference'; src: url('/fonts/GlacialIndifference-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Glacial Indifference'; src: url('/fonts/GlacialIndifference-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --beige-1: #f8f8f0;
  --beige-2: #ebebd7;
  --verde: #2e3f39;
  --verde-suave: #3d5047;
  --linea: rgba(46, 63, 57, 0.22);
  --blanco: #ffffff;
  --display: 'Nexus', 'Glacial Indifference', 'Jost', 'Century Gothic', sans-serif;
  --texto: 'Glacial Indifference', 'Jost', 'Century Gothic', sans-serif;
  --ancho: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige-1);
  color: var(--verde);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }

.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 28px; }

/* Tipografía de etiqueta */
.tracked { text-transform: uppercase; letter-spacing: 0.28em; font-size: 12.5px; font-weight: 700; }
.tracked-light { text-transform: uppercase; letter-spacing: 0.22em; font-size: 12.5px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(38px, 5vw, 62px); letter-spacing: 0.01em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.lead { font-size: 19px; color: var(--verde-suave); max-width: 34em; }
.rule { height: 1px; background: var(--verde); opacity: .55; border: 0; width: 64px; margin: 22px 0; }

/* Franja superior */
.topbar { background: var(--verde); color: var(--beige-1); text-align: center; padding: 9px 16px; }
.topbar .tracked-light { font-size: 11.5px; }
@media (max-width: 480px) { .topbar .tracked-light { letter-spacing: .1em; font-size: 10.5px; } }

/* Encabezado */
.header { position: sticky; top: 0; z-index: 30; background: var(--beige-1); border-bottom: 1px solid var(--linea); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-size: 25px; letter-spacing: 0.34em; padding-left: .1em; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.cart-btn { background: none; border: 1px solid var(--verde); padding: 9px 16px; }
.cart-btn:hover { background: var(--verde); color: var(--beige-1); }
@media (max-width: 760px) { .nav a { display: none; } .brand span { font-size: 21px; } }

/* Botones */
.btn { display: inline-block; background: var(--verde); color: var(--beige-1); border: 1px solid var(--verde); padding: 15px 28px; text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: 13px; font-weight: 700; }
.btn:hover { background: var(--verde-suave); }
.btn.ghost { background: transparent; color: var(--verde); }
.btn.ghost:hover { background: var(--beige-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.full { width: 100%; text-align: center; }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--linea); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { margin: 18px 0 22px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero figure { margin: 0; position: relative; }
.hero figure img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.hero figcaption { position: absolute; left: 0; bottom: 0; background: var(--verde); color: var(--beige-1); padding: 10px 16px; }
.vertical { position: absolute; top: 50%; writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%); white-space: nowrap; display: flex; align-items: center; gap: 22px; }
.vertical::after { content: ''; width: 1px; height: 70px; background: var(--verde); opacity: .6; }
.vertical.left { left: 18px; }
@media (max-width: 1260px) { .vertical { display: none; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; } }

/* Bloque técnico (como la etiqueta) */
.ficha { padding: 72px 0; }
.ficha-box { background: var(--beige-2); padding: 34px 40px 40px; }
.ficha-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--linea); padding-bottom: 18px; }
.ficha-head img { width: 44px; }
.ficha-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ficha-grid > div { text-align: center; padding: 28px 12px 6px; }
.ficha-grid > div + div { border-left: 1px solid var(--verde); }
.ficha-grid .row2 { border-left: 0 !important; padding-top: 14px; }
.ficha-grid svg { width: 40px; height: 40px; margin: 0 auto 12px; display: block; }
.ficha-grid .k { display: block; }
.ficha-grid .v { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.perfil { text-align: center; margin-top: 30px; border-top: 1px solid var(--linea); padding-top: 24px; }
.perfil .attrs { display: flex; justify-content: center; gap: 40px; margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .ficha-box { padding: 26px 18px; }
  .ficha-grid { grid-template-columns: 1fr; }
  .ficha-grid > div + div { border-left: 0; border-top: 1px solid var(--linea); }
  .ficha-grid .row2 { border-top: 1px solid var(--linea); padding-top: 22px; }
}

/* Secciones */
.section { padding: 88px 0; }
.section.alt { background: var(--beige-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head p { max-width: 30em; margin: 0; color: var(--verde-suave); }

/* Productos */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product { background: var(--blanco); border: 1px solid var(--linea); display: flex; flex-direction: column; }
.product img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.product .body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.product .desc { color: var(--verde-suave); margin: 0; }
.opt-group { border: 0; padding: 0; margin: 0; }
.opt-group legend { margin-bottom: 10px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--linea); padding: 9px 16px; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; background: var(--beige-1); }
.chip::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--beige-2); border: 1px solid var(--linea); }
.chip[aria-pressed='true'] { border-color: var(--verde); }
.chip[aria-pressed='true']::before { background: var(--verde); border-color: var(--verde); }
.chip .price { font-weight: 400; letter-spacing: .04em; }
.buy-row { display: flex; gap: 14px; align-items: stretch; margin-top: auto; }
.qty { display: flex; border: 1px solid var(--verde); }
.qty button { background: none; border: 0; width: 40px; font-size: 18px; }
.qty input { width: 42px; border: 0; text-align: center; font: inherit; background: transparent; color: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; text-align: center; }
.product .total { font-size: 22px; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--verde); }
.benefits > div { padding: 30px 30px 10px 0; }
.benefits > div + div { padding-left: 30px; border-left: 1px solid var(--linea); }
.benefits .n { font-family: var(--display); font-size: 15px; letter-spacing: .2em; display: block; margin-bottom: 14px; }
.benefits h3 { font-size: 22px; margin-bottom: 12px; }
.benefits p { color: var(--verde-suave); }
@media (max-width: 800px) { .benefits { grid-template-columns: 1fr; } .benefits > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--linea); } }

/* Origen */
.origen { background: var(--verde); color: var(--beige-1); }
.origen .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.origen .lead { color: var(--beige-2); }
.origen dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 26px; margin: 30px 0 0; border-top: 1px solid rgba(248,248,240,.3); padding-top: 24px; }
.origen dt { text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; font-weight: 700; padding-top: 3px; }
.origen dd { margin: 0; }
.origen .label-img { background: var(--beige-1); padding: 18px; max-width: 420px; justify-self: center; }
@media (max-width: 860px) { .origen .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--linea); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 14px 0 0; color: var(--verde-suave); max-width: 44em; }

/* CTA */
.cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--linea); }
.cta img { width: 56px; margin: 0 auto 24px; }
.cta h2 { max-width: 18em; margin: 0 auto 30px; }

/* Pie */
.footer { background: var(--verde); color: var(--beige-1); padding: 56px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand span { color: var(--beige-1); }
.footer .brand img { filter: brightness(0) invert(96%) sepia(6%) saturate(300%) hue-rotate(20deg); }
.footer ul { list-style: none; padding: 0; margin: 12px 0 0; }
.footer li { margin: 6px 0; }
.footer a { text-decoration: none; opacity: .9; }
.footer a:hover { text-decoration: underline; }
.footer .legal { border-top: 1px solid rgba(248,248,240,.25); margin-top: 40px; padding-top: 20px; font-size: 14px; opacity: .8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }

/* Carrito lateral */
.drawer-bg { position: fixed; inset: 0; background: rgba(46,63,57,.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--beige-1); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
body.cart-open .drawer { transform: none; }
body.cart-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--linea); }
.drawer header button { background: none; border: 0; font-size: 26px; line-height: 1; }
.drawer .items { flex: 1; overflow: auto; padding: 8px 26px; }
.drawer footer { padding: 22px 26px; border-top: 1px solid var(--linea); background: var(--beige-2); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linea); align-items: center; }
.line img { width: 64px; height: 64px; object-fit: cover; }
.line .name { font-size: 15px; line-height: 1.35; }
.line .meta { font-size: 13px; color: var(--verde-suave); }
.line .qty { margin-top: 6px; width: max-content; }
.line .qty button { width: 30px; font-size: 15px; }
.line .qty span { width: 30px; text-align: center; line-height: 30px; font-size: 14px; }
.line .remove { background: none; border: 0; font-size: 13px; text-decoration: underline; color: var(--verde-suave); padding: 0; }
.sum { display: flex; justify-content: space-between; margin: 4px 0; }
.sum.total { font-size: 20px; border-top: 1px solid var(--linea); padding-top: 10px; margin-top: 10px; }
.empty { padding: 40px 0; text-align: center; color: var(--verde-suave); }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.checkout h1 { font-size: 40px; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 28px; }
.form-grid .span2 { grid-column: span 2; }
.field label { display: block; margin-bottom: 6px; }
.field input, .field select { width: 100%; font: inherit; color: var(--verde); background: var(--blanco); border: 1px solid var(--linea); padding: 13px 14px; border-radius: 0; }
.field input:focus, .field select:focus { border-color: var(--verde); outline: none; }
.fieldset-title { grid-column: span 2; margin-top: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--linea); }
.check { grid-column: span 2; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 5px; accent-color: var(--verde); width: 18px; height: 18px; flex: none; }
.summary { background: var(--beige-2); padding: 30px; position: sticky; top: 100px; }
.summary .line { grid-template-columns: 56px 1fr auto; }
.summary .line img { width: 56px; height: 56px; }
.pay-note { font-size: 14px; color: var(--verde-suave); margin-top: 16px; }
.error { background: #f3e2dc; border: 1px solid #b4644b; color: #6d2f1d; padding: 12px 14px; margin-top: 18px; display: none; }
.error.show { display: block; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } .form-grid { grid-template-columns: 1fr; } .form-grid .span2, .fieldset-title, .check { grid-column: span 1; } }

/* Páginas simples */
.page { max-width: 780px; padding-top: 64px; padding-bottom: 96px; }
.page h1 { font-size: 42px; margin-bottom: 24px; }
.page h2 { font-size: 24px; margin: 34px 0 10px; }
.status-box { background: var(--beige-2); padding: 34px; margin-top: 28px; }
.status-box img { width: 48px; margin-bottom: 16px; }
