/* Naturaleza ECO — Retro terminal design system */
:root {
  --aubergine: #1c1428;
  --aubergine-2: #2a1d3d;
  --lime: #9fe64f;
  --lime-dim: #6fae2f;
  --ivory: #f3efe4;
  --amber: #e8c86b;
  --ink: #0f0a17;
  --radius: 4px;
  --mono: "Courier New", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --maxw: 1160px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--aubergine);
  color: var(--ivory);
  font-family: var(--mono);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0 0 .5em; letter-spacing: .01em; }
a { color: var(--lime); text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* grain / scanlines */
.scanlines {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 2; opacity: .18; mix-blend-mode: overlay;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.08) 0px, rgba(255,255,255,.08) 1px, transparent 1px, transparent 3px);
}
@media (prefers-reduced-motion: no-preference) {
  .scanlines { animation: scan-drift 9s linear infinite; }
}
@keyframes scan-drift { from { background-position: 0 0; } to { background-position: 0 60px; } }

/* layout helpers */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(28,20,40,.92); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(159,230,79,.25); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ivory); }
.logo-mark { color: var(--aubergine); width: 40px; height: 40px; flex: none; }
.logo-word { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .02em; }
.logo-eco { color: var(--lime); font-family: var(--mono); font-size: .75em; margin-left: .15em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--lime); color: var(--lime); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-close { display: none; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.main-nav a { color: var(--ivory); font-size: .92rem; position: relative; padding: .2rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--lime); transition: width .25s; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--lime); }
.nav-cart { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--lime); padding: .4rem .7rem; border-radius: var(--radius); }
.cart-count { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 0 .45em; font-size: .8em; min-width: 1.4em; text-align: center; display: inline-block; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--aubergine-2); flex-direction: column; align-items: flex-start;
    padding: 4.5rem 1.5rem 2rem; gap: 1.2rem; z-index: 60;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-close { display: flex; position: absolute; top: 1rem; right: 1rem; background: none; border: 1px solid var(--lime); color: var(--lime); width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius); }
  body.nav-locked { overflow: hidden; }
}

/* buttons */
.btn { font-family: var(--mono); font-size: .95rem; border-radius: var(--radius); padding: .75rem 1.4rem; border: 1px solid var(--lime); cursor: pointer; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .5rem; }
.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(243,239,228,.5); }
.btn-outline { background: transparent; color: var(--lime); }
.btn-sweep { z-index: 1; }
.btn-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--amber); z-index: -1; transition: left .3s ease; }
.btn-sweep:hover::before { left: 0; }
.btn-sweep:hover { color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* hero / page-hero */
.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.04; }
.underline-sweep { position: relative; display: inline-block; color: var(--lime); }
.underline-sweep svg { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .3em; }
.underline-sweep path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s ease forwards .4s; }
@media (prefers-reduced-motion: reduce) { .underline-sweep path { stroke-dashoffset: 0; animation: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-lead { font-size: 1.1rem; max-width: 34em; color: rgba(243,239,228,.85); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.hero-shape { position: absolute; width: 60%; z-index: -1; }
.hero-shape-1 { top: -10%; right: -8%; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.page-hero { padding: 2.6rem 0 2rem; border-bottom: 1px solid rgba(159,230,79,.2); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: rgba(243,239,228,.8); max-width: 42em; }

.breadcrumbs { font-size: .85rem; color: rgba(243,239,228,.6); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--amber); }

/* dividers / decorative */
.divider { width: 100%; height: 36px; color: var(--lime); opacity: .5; }
.seal { width: 92px; height: 92px; color: var(--lime); }
.ornament { width: 100%; max-width: 420px; color: var(--amber); opacity: .8; }

/* accordion panels (home composition) */
.accordion { border-top: 1px solid rgba(159,230,79,.25); }
.accordion-item { border-bottom: 1px solid rgba(159,230,79,.25); }
.accordion-trigger { width: 100%; text-align: left; background: none; border: none; color: var(--ivory); font-family: var(--serif); font-size: 1.3rem; padding: 1.3rem .2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
.accordion-trigger .idx { color: var(--lime); font-family: var(--mono); font-size: .95rem; margin-right: .8rem; }
.accordion-trigger .plus { font-family: var(--mono); color: var(--lime); transition: transform .3s; }
.accordion-item.is-open .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-panel-inner { padding: 0 .2rem 1.5rem; color: rgba(243,239,228,.85); max-width: 56em; }

/* cards */
.card { background: var(--aubergine-2); border: 1px solid rgba(159,230,79,.2); border-radius: var(--radius); padding: 1.4rem; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }

/* product grid / card */
.product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.product-card { background: var(--aubergine-2); border: 1px solid rgba(159,230,79,.2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(0,0,0,.4); }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card .cat { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.product-card .name { font-family: var(--serif); font-size: 1.1rem; margin: 0; }
.product-card .price { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; }
.price-old { text-decoration: line-through; opacity: .5; font-size: .85em; }
@media (max-width: 640px) {
  .product-strip.scroll-snap { grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .product-strip.scroll-snap .product-card { scroll-snap-align: start; }
}

/* ritual builder (signature feature) */
.ritual-builder { background: var(--ink); border: 1px solid var(--lime); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 0 0 4px rgba(159,230,79,.06); }
.ritual-title { color: var(--lime); font-size: .95rem; margin-bottom: 1rem; }
.ritual-choices { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ritual-choices button { background: transparent; border: 1px solid var(--lime); color: var(--lime); font-family: var(--mono); padding: .5rem 1rem; border-radius: var(--radius); cursor: pointer; }
.ritual-choices button.is-active, .ritual-choices button:hover { background: var(--lime); color: var(--ink); }
.ritual-output { min-height: 110px; border-top: 1px dashed rgba(159,230,79,.4); padding-top: 1rem; }
.ritual-line { color: var(--lime); }
.ritual-results { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.ritual-results li { display: flex; justify-content: space-between; border: 1px solid rgba(159,230,79,.3); padding: .55rem .8rem; border-radius: var(--radius); }

/* glitch hover */
.glitch { position: relative; display: inline-block; }
.glitch:hover { animation: glitch .3s steps(2); }
@keyframes glitch { 0% { text-shadow: 2px 0 var(--amber), -2px 0 var(--lime); } 100% { text-shadow: none; } }

/* prose / legal */
.prose { max-width: 68ch; color: rgba(243,239,228,.9); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.prose p, .prose li { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.legal-toc { background: var(--aubergine-2); border: 1px solid rgba(159,230,79,.2); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }
.legal-toc a { color: var(--amber); }

/* notice */
.notice { border: 1px solid var(--amber); border-left: 4px solid var(--amber); padding: 1rem 1.2rem; border-radius: var(--radius); background: rgba(232,200,107,.08); margin: 1.2rem 0; }
.notice-success { border-color: var(--lime); border-left-color: var(--lime); background: rgba(159,230,79,.08); }

/* faq */
.faq-item { border: 1px solid rgba(159,230,79,.25); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.2rem; cursor: pointer; font-family: var(--serif); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--lime); font-family: var(--mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: rgba(243,239,228,.85); }

/* forms */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: rgba(243,239,228,.75); }
.field input, .field select, .field textarea {
  font-family: var(--mono); background: var(--aubergine-2); border: 1px solid rgba(159,230,79,.35);
  color: var(--ivory); border-radius: var(--radius); padding: .65rem .8rem; accent-color: var(--lime);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); }
.field-error { color: var(--amber); font-size: .8rem; min-height: 1.1em; }
.form-msg { min-height: 1.4em; color: var(--amber); }
.form-msg.ok { color: var(--lime); }
.hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: -9999px; }

/* contact layout */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-info .card { display: flex; gap: .8rem; align-items: flex-start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.product-detail .thumb img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }
.product-detail .price-row { font-size: 1.6rem; color: var(--lime); font-family: var(--serif); }
.qty-row { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; }
.qty-row button { width: 38px; height: 38px; border: 1px solid var(--lime); background: transparent; color: var(--lime); border-radius: var(--radius); cursor: pointer; }
.detail-tabs { margin-top: 2rem; display: grid; gap: .8rem; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid rgba(159,230,79,.2); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.cart-summary { background: var(--aubergine-2); border: 1px solid rgba(159,230,79,.25); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .6rem; }
.cart-summary .row { display: flex; justify-content: space-between; }
.cart-summary .total { font-size: 1.3rem; color: var(--lime); font-family: var(--serif); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: rgba(243,239,228,.7); }

/* footer */
.site-footer { background: var(--ink); padding-top: 2rem; margin-top: 3rem; }
.footer-divider { width: 100%; height: 36px; color: var(--lime); opacity: .4; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem 2rem; display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; }
.footer-col h3 { font-size: .9rem; color: var(--lime); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.footer-col a { display: block; color: rgba(243,239,228,.8); padding: .25rem 0; }
.footer-mail { display: flex; align-items: center; gap: .4rem; color: var(--amber); margin-top: .8rem; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 140px; font-family: var(--mono); background: var(--aubergine-2); border: 1px solid rgba(159,230,79,.35); color: var(--ivory); padding: .6rem .8rem; border-radius: var(--radius); }
.footer-bottom { text-align: center; color: rgba(243,239,228,.55); font-size: .82rem; padding: 1rem 0 2rem; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* cookie banner */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin: 0 auto; background: var(--aubergine-2); border: 1px solid var(--lime); border-radius: var(--radius); padding: 1.2rem; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cookie-banner p { margin: 0 0 .9rem; font-size: .9rem; color: var(--ivory); }
.cookie-actions { display: flex; gap: .8rem; justify-content: flex-end; }

/* 404 */
.notfound { text-align: center; padding: 5rem 1rem; }
.notfound .code { font-size: clamp(4rem, 16vw, 9rem); font-family: var(--serif); color: var(--lime); line-height: 1; }

/* continuous subtle element */
.cursor-blink { display: inline-block; width: .55em; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor-blink { animation: none; } }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* COMPONENTS: .class - what it is
.scanlines - fixed full-viewport scanline overlay texture
.site-header / .header-inner - sticky site header bar and its inner flex row
.logo / .logo-mark / .logo-word / .logo-eco - brand logo lockup
.nav-toggle / .nav-close - mobile menu open/close buttons
.main-nav - primary navigation (becomes off-canvas drawer on mobile, .is-open to show)
.nav-cart / .cart-count - header cart link and animated count badge (.bump on add)
.btn / .btn-primary / .btn-ghost / .btn-outline / .btn-sweep - button variants, sweep = fill-sweep hover
.reveal / .in-view / .d1-.d4 - scroll-reveal base state, visible state, stagger delays
.hero / .hero-grid / .hero-media / .hero-shape / .hero-cta / .hero-lead - home hero section
.underline-sweep - inline span wrapping a word with an animated SVG underline
.page-hero - hero banner for inner pages
.breadcrumbs - small breadcrumb trail
.divider / .seal / .ornament - decorative bespoke SVG classes (sizing helpers)
.accordion / .accordion-item / .accordion-trigger / .accordion-panel / .accordion-panel-inner - home composition expanding panels
.card - generic bordered content card
.product-strip / .product-strip.scroll-snap - product grid, add .scroll-snap for mobile horizontal strip
.product-card / .thumb / .body / .cat / .name / .price / .price-old - catalog product card parts
.ritual-builder / .ritual-title / .ritual-choices / .ritual-output / .ritual-line / .ritual-results - signature RITUAL://BUILDER feature
.glitch - glitch text-shadow hover effect
.prose - readable-measure long-form legal/article text
.legal-toc - table of contents box for legal pages
.notice / .notice-success - callout box, success variant
.faq / .faq-item / .faq-body - details/summary FAQ accordion
.form-grid / .field / .field.full / .field-error / .form-msg / .hp - form layout system, honeypot hidden field
.contact-layout / .contact-info - contact page two-column layout
.product-detail / .qty-row / .detail-tabs - product detail template
.cart-table / .cart-summary / .cart-empty - cart/checkout table and summary box
.site-footer / .footer-inner / .footer-col / .footer-mail / .newsletter-form / .footer-bottom - site footer
.cookie-banner / .cookie-actions - cookie consent banner
.notfound / .notfound .code - 404 page
.cursor-blink - small blinking terminal cursor, continuous subtle motion element
.wrap / .grid / .grid-2 / .grid-3 / .mt-1..3 / .mb-1..2 - layout and spacing utilities
*/

/* missing component styles */
.footer-brand { display: flex; flex-direction: column; gap: .6rem; }
.footer-news { display: flex; flex-direction: column; gap: .6rem; }
.qty-input { font-family: var(--mono); background: var(--aubergine-2); border: 1px solid rgba(159,230,79,.35); color: var(--ivory); border-radius: var(--radius); padding: .5rem .6rem; width: 60px; text-align: center; }
.qty-input:focus { border-color: var(--lime); }
.remove-btn { background: transparent; border: 1px solid rgba(159,230,79,.35); color: var(--ivory); width: 32px; height: 32px; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.remove-btn:hover { background: rgba(159,230,79,.15); border-color: var(--lime); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.faq-trigger { padding: 1rem 1.2rem; cursor: pointer; font-family: var(--serif); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq-trigger::-webkit-details-marker { display: none; }
.faq-trigger::after { content: "+"; color: var(--lime); font-family: var(--mono); }
details[open] > .faq-trigger::after { content: "−"; }
