/* Tata Ramiro — sistema visual
   Verde yerba + papel crema + bronce de bombilla. Tipografía: Fraunces (títulos) e Inter (texto). */

:root {
  --paper: #F6F2EA;
  --paper-2: #EEE7D9;
  --card: #FBF9F4;
  --ink: #1C211D;
  --muted: #5E665F;
  --line: #DCD3C2;
  --green: #23402F;
  --green-2: #2F5A41;
  --green-soft: #E3EADF;
  --brass: #B08A4A;
  --brass-light: #D9B878;
  --danger: #A33A2B;
  --ok: #2F6B45;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 33, 29, .06), 0 8px 24px rgba(28, 33, 29, .06);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--green); color: var(--paper); }
.section--dark .muted, .section--dark .lead { color: #C9D3C8; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  background: var(--green); color: var(--paper);
}
.btn:hover { background: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--card); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--green); }
.btn--light:hover { background: #fff; }
.btn--brass { background: var(--brass); color: #fff; }
.btn--brass:hover { background: #9A773C; }
.btn--danger { background: transparent; color: var(--danger); border-color: #E3C3BD; }
.btn--danger:hover { background: #FBEDEA; }
.btn--sm { padding: .5em 1em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* Barra superior y encabezado */
.announce { background: var(--green); color: var(--paper); font-size: .82rem; text-align: center; padding: .55em var(--gutter); letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 242, 234, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font: 500 1.35rem/1 var(--serif); letter-spacing: -.01em; }
.brand-sub { display: block; font: 600 .6rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-top: 4px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .93rem; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brass); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--green-2); }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; aspect-ratio: 4 / 5; border-radius: 28px 28px 220px 220px; overflow: hidden; background: var(--green-soft); box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media--editorial { border-radius: 28px 28px 120px 28px; background: var(--green); }
.hero-badge { position: absolute; left: 18px; top: 18px; background: var(--card); border-radius: 999px; padding: 10px 16px 10px 10px; display: flex; align-items: center; gap: 10px; font-size: .85rem; box-shadow: var(--shadow); }
.hero-badge b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1rem; }
.hero-badge svg { width: 36px; height: 36px; }
.hero-points { display: flex; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-points div { font-size: .88rem; color: var(--muted); }
.hero-points b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; width: 100%; margin: 0 auto; border-radius: 24px 24px 180px 180px; order: -1; }
}

/* Tarjetas de producto */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(220, 211, 194, .6); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card__media { display: block; aspect-ratio: 4 / 5; background: #F1ECE2; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card__brand { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.product-card__name { font: 500 1.15rem/1.25 var(--serif); margin: 0; }
.product-card__name a { text-decoration: none; }
.product-card__name a::after { content: ''; position: absolute; inset: 0; }
.product-card__meta { font-size: .85rem; color: var(--muted); }
.product-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card__foot .btn { position: relative; z-index: 1; }
.price { font-weight: 600; font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--card); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.tag--out { background: var(--ink); color: var(--paper); }
.tag--sale { background: var(--brass); color: #fff; }

/* Colecciones fotográficas */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.collection-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.collection-card:hover { border-color: var(--brass); box-shadow: var(--shadow); }
.collection-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.collection-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.collection-card:hover img { transform: scale(1.035); }
.collection-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 26px; }
.collection-card__kicker { margin-bottom: 12px; font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.collection-card h3 { font-size: 1.65rem; color: var(--green); margin-bottom: 12px; }
.collection-card p { color: var(--muted); font-size: .93rem; margin-bottom: 24px; }
.collection-card .arrow { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; font-size: .8rem; font-weight: 600; color: var(--green); }
.collection-card .arrow svg { width: 20px; height: 20px; margin-left: auto; }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr; gap: 28px; } .collection-card__body { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .collection-card, .collection-card__media img { transition: none; } .collection-card:hover img { transform: none; } }

/* Historia */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story-seal { aspect-ratio: 1; border-radius: 50%; background: var(--green); display: grid; place-items: center; max-width: 420px; width: 100%; margin: 0 auto; position: relative; }
.story-seal--portrait { background: transparent; }
.story-seal--portrait::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.story-seal--portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.story-seal .ring { position: absolute; inset: 14px; border: 1px solid rgba(217, 184, 120, .45); border-radius: 50%; }
.quote { font: italic 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.35 var(--serif); margin: 0 0 1.2em; color: var(--green); }
.signature { font-family: var(--serif); font-size: 1.1rem; }
.signature small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story-seal { max-width: 280px; } }

/* Pasos para cebar */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 1px solid rgba(246, 242, 234, .25); padding-top: 20px; }
.steps li::before { content: '0' counter(step); display: block; font: 400 2.2rem/1 var(--serif); color: var(--brass-light); margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: #C9D3C8; font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Beneficios */
.mate-facts-head { margin-bottom: 40px; }
.mate-facts-head em { color: var(--green-2); }
.mate-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.mate-facts__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.mate-facts__col h3 { color: var(--green); margin-bottom: 16px; }
.mate-facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mate-facts li { padding-left: 18px; position: relative; color: var(--muted); font-size: .97rem; }
.mate-facts li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.mate-facts li b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .mate-facts { grid-template-columns: 1fr; } }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.perk { display: flex; gap: 16px; align-items: flex-start; }
.perk svg { width: 28px; height: 28px; flex: none; color: var(--green-2); margin-top: 2px; }
.perk h3 { font: 600 1rem/1.3 var(--sans); margin: 0 0 4px; }
.perk p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 760px) { .perks { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 500 1.12rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 300 1.6rem/1 var(--sans); color: var(--brass); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Tienda */
.page-head { padding: clamp(36px, 6vw, 72px) 0 28px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; padding: .5em 1.05em; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; background: transparent; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .spacer { flex: 1; }
.select { padding: .55em 2.2em .55em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E665F' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: .9rem; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Ficha de producto */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); padding: clamp(28px, 5vw, 60px) 0 clamp(56px, 8vw, 100px); align-items: start; }
.product-media { border-radius: 20px; overflow: hidden; background: #F1ECE2; aspect-ratio: 4 / 5; position: sticky; top: 96px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.product .price { font-size: 1.5rem; display: block; margin: 12px 0 20px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock--low::before { background: var(--brass); }
.stock--out::before { background: var(--danger); }
.buy { display: flex; gap: 12px; margin: 24px 0 32px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 42px; height: 46px; border: 0; background: transparent; cursor: pointer; font-size: 1.15rem; color: var(--muted); }
.qty button:hover { color: var(--ink); }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 32px; height: 36px; }
.buy .btn { flex: 1; min-width: 200px; padding-top: 1em; padding-bottom: 1em; }
.specs { border-top: 1px solid var(--line); margin: 0; }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product-media { position: static; } }

/* Carrito */
.cart-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 100px; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 84px; height: 105px; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.cart-line h3 { font-size: 1.1rem; margin: 0 0 2px; }
.cart-line h3 a { text-decoration: none; }
.cart-line .line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--danger); }
.cart-line .line-total { font-weight: 600; text-align: right; }
.panel { background: var(--card); border: 1px solid rgba(220, 211, 194, .7); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; }
.summary-row--total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 1.2rem; font-weight: 600; }
.summary-row--total span:first-child { font-family: var(--serif); font-weight: 500; }
.notice { background: var(--green-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; color: var(--green); margin: 14px 0; }
.notice--warn { background: #F6EBD8; color: #6E5122; }
.notice--error { background: #F7E3DF; color: var(--danger); }
.notice--ok { background: #E1EEE4; color: var(--ok); }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

/* Formularios */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span, .field legend { font-size: .85rem; font-weight: 600; }
.field small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.input, .textarea, .field select {
  width: 100%; padding: .75em .95em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .field select:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(47, 90, 65, .12); }
.textarea { min-height: 96px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.options { display: grid; gap: 8px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; }
.option:has(input:checked) { border-color: var(--green-2); background: var(--green-soft); }
.option input { margin-top: 4px; accent-color: var(--green); }
.option b { display: block; font-size: .93rem; }
.option small { color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }

/* Confirmación de pedido */
.confirm { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 100px; }
.confirm-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--paper); display: grid; place-items: center; margin-bottom: 24px; }
.confirm-mark svg { width: 30px; height: 30px; }
.order-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.order-table td, .order-table th { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.order-table td:last-child, .order-table th:last-child { text-align: right; }
.bank { white-space: pre-line; font-size: .95rem; }

/* Pie de página */
.site-footer { background: var(--ink); color: #C9CDC6; padding: 72px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #E6E8E3; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-name { color: var(--paper); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8E958C; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast a { color: var(--brass-light); font-weight: 600; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== Panel de administración ===================== */
.admin { background: #F3F1EC; min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--green); color: var(--paper); padding: 24px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; }
.admin-side .brand { padding: 0 8px; }
.admin-side .brand-name { color: var(--paper); }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #D3DCD1; font-size: .93rem; }
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-nav svg { width: 18px; height: 18px; }
.admin-side .foot { margin-top: auto; font-size: .82rem; color: #B5C2B3; padding: 0 8px; display: grid; gap: 8px; }
.admin-side .foot a { color: #fff; }
.admin-side .foot button { color: #fff; }
.admin-main { padding: clamp(20px, 3vw, 40px); max-width: 1200px; width: 100%; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-top h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid #E6E1D6; }
.stat span { font-size: .8rem; color: var(--muted); }
.stat b { display: block; font: 500 1.9rem/1.2 var(--serif); margin-top: 6px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
.box { background: #fff; border-radius: var(--radius); border: 1px solid #E6E1D6; padding: clamp(18px, 2.5vw, 28px); margin-bottom: 20px; }
.box h2 { font-size: 1.3rem; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid #E6E1D6; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid #E6E1D6; background: #FAF8F4; white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid #EFEBE3; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FCFBF8; }
.table .thumb { width: 44px; height: 55px; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.table a { text-decoration: none; font-weight: 600; }
/* Toda la fila abre el enlace principal (el de la primera celda con enlace) */
.table .row-link { position: relative; cursor: pointer; }
.table .row-link a::after { content: ""; position: absolute; inset: 0; }
.table .num { text-align: right; white-space: nowrap; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #EEE; color: #555; white-space: nowrap; }
.pill--nuevo { background: #F6EBD8; color: #6E5122; }
.pill--confirmado { background: #E4ECF5; color: #2D4E73; }
.pill--pagado { background: #E1EEE4; color: var(--ok); }
.pill--enviado { background: #E7E3F2; color: #4B3F7A; }
.pill--entregado { background: var(--green); color: #fff; }
.pill--cancelado { background: #F7E3DF; color: var(--danger); }
.pill--on { background: #E1EEE4; color: var(--ok); }
.pill--off { background: #EEE; color: #777; }
.pill--low { background: #F6EBD8; color: #6E5122; }
.edit-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .edit-grid { grid-template-columns: 1fr; } }
.img-preview { aspect-ratio: 4 / 5; border-radius: var(--radius-sm); background: var(--paper-2); overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: linear-gradient(transparent, #F3F1EC 30%); padding: 20px 0 8px; }
.inline-form { display: inline; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.auth .panel { width: 100%; max-width: 400px; }
.auth .brand { margin-bottom: 28px; }
.admin-mobile-bar { display: none; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 12px 16px; gap: 12px; }
  .admin-side .brand { display: none; }
  .admin-nav { grid-auto-flow: column; overflow-x: auto; }
  .admin-nav a { white-space: nowrap; }
  .admin-side .foot { flex-direction: row; display: flex; justify-content: space-between; margin: 0; }
}

/* Páginas legales */
.legal { max-width: 760px; padding-bottom: 100px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p { color: var(--muted); white-space: pre-line; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brass); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
