/* =========================================================
   SM Vidrios · Reflection — estilos
   ========================================================= */
:root {
  --ink: #0d1424;
  --ink-2: #1a2336;
  --paper: #f6f3ee;
  --stone: #ebe5db;
  --line: #d9d1c4;
  --text: #1b1f27;
  --muted: #676760;
  --accent: #b88a3a;          /* latón: une las tres líneas */
  --accent-ink: #fff;
  --accent-2: #63c7e6;        /* celeste del logo SM */
  --radius: 4px;
  --shadow: 0 1px 2px rgba(13,20,36,.06), 0 8px 24px rgba(13,20,36,.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}
.theme-gold  { --accent: #d4a03a; --accent-ink: #14110b; --hero-bg: #14120e; }
.theme-slate { --accent: #4b6d90; --accent-ink: #fff;    --hero-bg: #2e4560; --accent-warm: #5b3f2c; }
.theme-navy  { --accent: #8c7b67; --accent-ink: #fff;    --hero-bg: #0e1f45; }

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1,h2,h3 { font-family: var(--serif); font-weight: var(--head-weight, 600); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: calc(clamp(2.4rem, 5.2vw, 4.2rem) * var(--head-scale, 1)); }
h2 { font-size: calc(clamp(1.9rem, 3.4vw, 2.8rem) * var(--head-scale, 1)); }
h3 { font-size: calc(1.45rem * var(--head-scale, 1)); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: .5rem 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  font: 600 .88rem/1 var(--sans); letter-spacing: .04em; transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.1); filter: none; }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .7rem; font-size: .75rem; }
.btn-danger { background: #a63d32; border-color: #a63d32; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff;
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-block: 10px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--accent-2); position: relative; flex: none;
  box-shadow: 0 0 14px rgba(99,199,230,.35), inset 0 0 8px rgba(99,199,230,.25);
}
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: var(--head-weight, 600) 1.35rem/1 var(--serif); letter-spacing: .02em; }
.brand-text small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .65; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .82; padding-block: .4rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.is-active { opacity: 1; border-color: var(--accent); }
.nav .nav-cta { opacity: 1; border: 1px solid rgba(255,255,255,.35); padding: .6rem 1rem; border-radius: var(--radius); }
.nav .nav-cta:hover { background: #fff; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Hero home ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); background:
  radial-gradient(1200px 500px at 85% -10%, rgba(184,138,58,.12), transparent 60%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }
.hero-facts { list-style: none; padding: 0; margin: 2.8rem 0 0; display: flex; gap: 2.5rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.hero-facts strong { display: block; font: var(--head-weight, 600) 1.9rem/1 var(--serif); }
.hero-facts span { font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(380px, 46vw, 560px); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; background: var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .8rem; color: #fff; font: var(--head-weight, 600) 1.15rem/1 var(--serif);
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.tile-1 { grid-row: span 2; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--stone); }
.section-dark { background: var(--ink); color: #f1ede6; }
.section-dark .lead, .section-dark .muted { color: #a9adb6; }
.section-head { margin-bottom: 2.6rem; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.link-more { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--accent); }

/* Líneas */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.line-card { text-decoration: none; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; border-top: 4px solid var(--c, var(--accent)); }
.line-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13,20,36,.14); }
.line-gold { --c: #d4a03a; } .line-slate { --c: #4b6d90; } .line-navy { --c: #0e1f45; }
.line-img { aspect-ratio: 4/3; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.line-card:hover .line-img img { transform: scale(1.04); }
.line-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.line-brand { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.line-body h3 { font-size: 1.9rem; margin: .4rem 0 .5rem; }
.line-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.line-more { font-weight: 600; font-size: .88rem; color: var(--c); }

/* Grilla de productos */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.product-card { text-decoration: none; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13,20,36,.13); }
.pc-img { aspect-ratio: 4/5; overflow: hidden; background: var(--stone); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pc-gold { color: #a87a1d; } .pc-slate { color: #4b6d90; } .pc-navy { color: #0e1f45; }
.pc-body h3 { font-size: 1.32rem; margin: .45rem 0 .2rem; }
.pc-body p { color: var(--muted); font-size: .88rem; margin: 0; }
.pc-link { margin-top: auto; padding-top: .7rem; font-size: .84rem; font-weight: 600; color: var(--accent); }
.theme-gold .pc-link { color: #a87a1d; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { background: #fff; padding: 2rem 1.7rem; border-radius: var(--radius); border: 1px solid var(--line); }
.step-n { font: 500 2.6rem/1 var(--serif); color: var(--accent); display: block; margin-bottom: 1rem; }
.step p { color: var(--muted); }
.mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mini-table th, .mini-table td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-table th { font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.mini-table td { color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { border: 1px solid var(--line); border-radius: 99px; padding: .4rem .9rem; font-size: .86rem; }

/* Contacto + formulario */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { margin: 2rem 0 0; }
.contact-list dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 1.2rem; }
.theme-navy .contact-list dt, .theme-navy .section-dark .eyebrow { color: #c4b39d; }
.theme-slate .contact-list dt, .theme-slate .section-dark .eyebrow { color: #8fb0d2; }
.contact-list dd { margin: .3rem 0 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.quote-form { background: #fff; color: var(--text); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .35rem; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfaf8;
  font: inherit; font-size: .95rem; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,138,58,.18); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.form-product { background: var(--stone); padding: .7rem .9rem; border-radius: var(--radius); font-size: .92rem; }
.hp { position: absolute; left: -9999px; }
.alert { padding: .85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; }
.alert-ok { background: #e6f2e7; color: #1f5326; }
.alert-err { background: #f8e4e1; color: #7c2219; }

/* ---------- Categoría ---------- */
.cat-hero { background: var(--hero-bg, var(--ink)); color: #f4f1ec; padding: clamp(2.5rem, 6vw, 5rem) 0; position: relative; overflow: hidden; }
.cat-hero .lead { color: rgba(244,241,236,.75); }
.cat-hero .eyebrow { color: var(--accent); }
.theme-navy .cat-hero .eyebrow { color: #c4b39d; }
.theme-slate .cat-hero .eyebrow { color: #b9cfe6; }
.cat-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cat-hero-img { margin: 0; position: relative; }
.cat-hero-img > img:first-child { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.cat-logo { position: absolute; left: -22px; bottom: 26px; width: 180px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.crumbs { font-size: .82rem; opacity: .75; margin-bottom: 1.6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.feat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.tones { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.tone { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
  padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.tone-dot { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; border: 3px solid; }
.tone-frio .tone-dot { border-color: #e8f1ff; box-shadow: 0 0 18px #cfe2ff; }
.tone-neutro .tone-dot { border-color: #fff6e6; box-shadow: 0 0 18px #fff0d4; }
.tone-calido .tone-dot { border-color: #ffc56b; box-shadow: 0 0 18px #ffb347; }
.tone strong { font: var(--head-weight, 600) 1.3rem/1.1 var(--serif); }
.tone small { color: #a9adb6; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.checks li { padding: 1.1rem 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); font-weight: 500; }
.checks li::before { content: "✓"; color: var(--accent); margin-right: .5rem; font-weight: 700; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.feat-card { margin: 0; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; }
.feat-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feat-card figcaption { padding: 1rem 1.1rem 1.2rem; }
.feat-card strong { display: block; font: var(--head-weight, 600) 1.18rem/1.15 var(--serif); margin-bottom: .3rem; }
.feat-card span { font-size: .85rem; color: #a9adb6; }
.buy-box { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: center; border: 1px solid var(--line); background: #fff;
  padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--radius); }
.buy-box h2 { margin: 0; }
.buy-list { margin: 0; display: grid; gap: 1rem; }
.buy-list div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.buy-list div:last-child { border: 0; padding: 0; }
.buy-list dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: .2rem; }
.buy-list dd { margin: 0; font-weight: 500; }

/* ---------- Producto ---------- */
.product { padding: 2rem 0 clamp(3rem, 6vw, 5rem); }
.product .crumbs { color: var(--muted); opacity: 1; }
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery-main { margin: 0; background: var(--ink); border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-main img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--ink); }
.gallery-main figcaption:not(:empty) { position: absolute; left: 12px; bottom: 12px; background: rgba(13,20,36,.75); color: #fff;
  font-size: .78rem; padding: .35rem .7rem; border-radius: 99px; backdrop-filter: blur(4px); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .6rem; margin-top: .7rem; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--stone); opacity: .7; transition: opacity .15s, border-color .15s; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--accent); opacity: 1; }
.product-info h1 { font-size: calc(clamp(2.2rem, 4vw, 3.4rem) * var(--head-scale, 1)); }
.product-info .eyebrow { color: var(--accent); }
.theme-gold .product-info .eyebrow { color: #a87a1d; }
.specs { margin: 2rem 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: .15rem; }
.specs dd { margin: 0; font-weight: 500; }
.product-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 160px; }
.product-meta { list-style: none; padding: 1.2rem 1.3rem; margin: 1.6rem 0 0; background: var(--stone); border-radius: var(--radius); display: grid; gap: .5rem; font-size: .9rem; }
.product-meta span { display: inline-block; width: 100px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.options { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.options li { background: #fff; padding: 1.1rem 1.2rem; border-radius: var(--radius); border-left: 3px solid var(--accent); }
.options strong { display: block; font: var(--head-weight, 600) 1.15rem/1.2 var(--serif); }
.options span { font-size: .86rem; color: var(--muted); }

.notfound { padding: 6rem 0; text-align: center; }
.notfound .eyebrow { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #080d18; color: #bfc3cb; padding: 4rem 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: .6rem 0 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand--footer { color: #fff; margin-bottom: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem; padding: 1.4rem 0; font-size: .8rem; color: #7c818c; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* ---------- Admin ---------- */
.admin-login { max-width: 400px; margin: 4rem auto; }
.admin-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.admin-table th, .admin-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.admin-table tr.is-read { opacity: .55; }
.admin-actions form { display: flex; gap: .4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .cat-hero-grid, .product-grid, .contact-grid, .buy-box, .feat-split { grid-template-columns: 1fr; }
  .lines, .steps { grid-template-columns: 1fr; }
  .line-card { flex-direction: row; }
  .line-img { aspect-ratio: auto; width: 40%; flex: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { position: static; }
  .cat-hero-img { max-width: 460px; }
  .cat-logo { left: 12px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.5rem; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .2s, visibility .25s; box-shadow: 0 20px 40px rgba(0,0,0,.3); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav .nav-cta { margin-top: 1rem; text-align: center; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero-mosaic { height: 360px; }
  .line-card { flex-direction: column; }
  .line-img { width: 100%; aspect-ratio: 16/10; }
  .field-row, .checks { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .pc-body { padding: .8rem .85rem 1rem; }
  .pc-body h3 { font-size: 1.12rem; }
  .pc-body p { display: none; }
  .specs div, .buy-list div { grid-template-columns: 1fr; gap: .2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 1.2rem; flex-wrap: nowrap; justify-content: space-between; }
  .hero-facts strong { font-size: 1.5rem; }
  .hero-facts span { font-size: .7rem; }
  .cat-logo { width: 130px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Logo subido desde el panel */
.brand-logo { height: var(--logo-h, 48px); width: auto; max-width: min(62vw, 560px); object-fit: contain; display: block; }
.site-footer .brand-logo { height: var(--logo-f-h, 56px); max-width: min(80vw, 560px); }
@media (max-width: 820px) { .site-header .brand-logo { height: var(--logo-h-m, 38px); } }
.hero-single { height: clamp(380px, 46vw, 560px); border-radius: var(--radius); overflow: hidden; }
.hero-single img { width: 100%; height: 100%; object-fit: cover; }
.rich p:last-child { margin-bottom: 0; }

/* ---------- Cotizador de producto ---------- */
.cotizador-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cotizador-intro { position: sticky; top: 100px; }
.cot-product { display: flex; gap: 1rem; align-items: center; margin: 1.6rem 0 .4rem; padding: .8rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.cot-product img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.cot-product small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #a9adb6; }
.cot-product strong { font: var(--head-weight, 600) 1.2rem/1.2 var(--serif); }
.cotizador { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.2rem); }
.cot-step { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: .7rem; margin: 1.8rem 0 1.1rem; }
.cot-step:first-of-type { margin-top: 0; }
.cot-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .78rem; letter-spacing: 0; }
.opt-group { border: 0; padding: 0; margin: 0 0 1.1rem; }
.opt-group legend { font-size: .82rem; font-weight: 600; margin-bottom: .55rem; color: #d9dbe0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: block; padding: .6rem 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; font-size: .9rem; color: #e8e9ec; transition: background .15s, border-color .15s, color .15s; }
.pill:hover span { border-color: rgba(255,255,255,.5); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.opt-group.is-missing legend { color: #ff9b8f; }
.opt-group.is-missing legend::after { content: " · elegí una opción"; font-weight: 500; }
.field-dark span { color: #d9dbe0; }
.field-dark input, .field-dark select, .field-dark textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.field-dark input::placeholder, .field-dark textarea::placeholder { color: rgba(255,255,255,.4); }
.field-dark select option { color: #111; }
.field-dark input:focus, .field-dark select:focus, .field-dark textarea:focus { background: rgba(255,255,255,.1); }
.cot-summary { margin: .4rem 0 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border-left: 3px solid var(--accent); font-size: .9rem; }
.cot-summary ul { margin: .4rem 0 0; padding-left: 1.1rem; color: #d9dbe0; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; font-size: .95rem; padding-block: 1.05rem; }
.cotizador .form-note { color: #a9adb6; }
.cotizador .alert-ok { background: rgba(37,211,102,.15); color: #b9f5cf; }
@media (max-width: 980px) { .cotizador-grid { grid-template-columns: 1fr; } .cotizador-intro { position: static; } }
@media (max-width: 640px) { .cotizador .field-row { grid-template-columns: 1fr; } }

/* Íconos de contacto y redes */
.ico { flex: none; opacity: .85; }
.ico-item { display: flex; gap: .6rem; align-items: flex-start; }
.ico-item .ico { margin-top: .2em; color: var(--accent-2); }
.social { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.social a:hover { background: var(--accent-2); border-color: var(--accent-2); color: #0d1424; transform: translateY(-2px); }
.social a .ico { opacity: 1; }
.social--lg { margin-top: .3rem; }
.social--lg a { width: auto; height: auto; border-radius: 99px; padding: .5rem 1rem .5rem .8rem; display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18) !important; }
.product-actions .btn { flex: 1 1 100%; }


/* ---------- Banner de mantenimiento (sólo administradores) ---------- */
.mant-banner { background: #f5c451; color: #3a2a00; text-align: center; font-size: .86rem; padding: .55rem 16px; position: relative; z-index: 60; }
.mant-banner a { font-weight: 700; margin-left: .4rem; }

/* ---------- Efectos de movimiento ---------- */
.anim .reveal { opacity: 0; transform: translateY(var(--rv-y, 26px)) scale(var(--rv-s, 1)); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rv-d, 0s); will-change: opacity, transform; }
.anim .reveal.is-in { opacity: 1; transform: none; }
.anim-dinamico .reveal { --rv-y: 48px; --rv-s: .96; }
.anim-dinamico .reveal.rv-left { transform: translateX(-48px); }
.anim-dinamico .reveal.rv-right { transform: translateX(48px); }
.anim-dinamico .reveal.rv-left.is-in, .anim-dinamico .reveal.rv-right.is-in { transform: none; }

/* Entrada de la portada */
.anim .hero-copy > *, .anim .cat-hero-grid > div > *, .anim .product-info > * { animation: rv-up .9s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero-copy > :nth-child(2), .anim .cat-hero-grid > div > :nth-child(2), .anim .product-info > :nth-child(2) { animation-delay: .08s; }
.anim .hero-copy > :nth-child(3), .anim .cat-hero-grid > div > :nth-child(3), .anim .product-info > :nth-child(3) { animation-delay: .16s; }
.anim .hero-copy > :nth-child(4), .anim .cat-hero-grid > div > :nth-child(4), .anim .product-info > :nth-child(4) { animation-delay: .24s; }
.anim .hero-copy > :nth-child(n+5), .anim .cat-hero-grid > div > :nth-child(n+5), .anim .product-info > :nth-child(n+5) { animation-delay: .32s; }
.anim .hero h1 em { display: inline-block; animation: rv-glow 1.6s .5s ease-out both; }
.anim .tile, .anim .hero-single, .anim .cat-hero-img, .anim .gallery-main { animation: rv-zoom 1.1s cubic-bezier(.2,.7,.2,1) both; }
.anim .tile-2 { animation-delay: .12s; } .anim .tile-3 { animation-delay: .24s; }
.anim-dinamico .tile, .anim-dinamico .hero-single { animation-name: rv-zoom-big; }
.anim .site-header { animation: rv-down .6s ease-out both; }
@keyframes rv-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes rv-down { from { transform: translateY(-100%); } }
@keyframes rv-zoom { from { opacity: 0; transform: scale(.96); } }
@keyframes rv-zoom-big { from { opacity: 0; transform: scale(.88) translateY(30px); } }
@keyframes rv-glow { from { opacity: 0; filter: blur(8px); } }

/* Brillo LED en el ícono de marca */
.anim .brand-mark { animation: led 3.5s ease-in-out infinite; }
@keyframes led { 50% { box-shadow: 0 0 22px rgba(99,199,230,.7), inset 0 0 10px rgba(99,199,230,.4); } }

/* Botones y tarjetas: brillo al pasar */
.anim .btn { position: relative; overflow: hidden; }
.anim .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.anim .btn:hover::after { transform: translateX(120%); }
.anim-dinamico .product-card:hover, .anim-dinamico .line-card:hover { transform: translateY(-8px) rotate(-.3deg); }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* Íconos de formas de pago */
.ico-pago { color: var(--accent-2); }
.chips li { display: inline-flex; align-items: center; gap: .45rem; }
.chips .ico-pago, .pay-inline .ico-pago { color: var(--accent); opacity: 1; }
.pay-inline { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-style: normal; }
.pay-inline > span, .pay-inline > i { display: inline-flex; align-items: center; gap: .4rem; font-style: normal; }
.product-meta li { display: flex; align-items: flex-start; gap: .3rem; }
.product-meta li > span { flex: none; padding-top: .15rem; }
.ico-cat { color: var(--accent-2); }

/* Logos de marca sobre las fotos de la portada */
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 45%; background: linear-gradient(rgba(6,10,20,.45), transparent); z-index: 1; pointer-events: none; }
.tile span { z-index: 2; }
.tile-logo { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; align-items: center; padding: 10px 14px; border-radius: 10px;
  background: rgba(10,15,28,.42); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .35s ease, background .35s ease; }
.tile-logo img { height: 26px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.tile-1 .tile-logo { top: 18px; left: 18px; padding: 12px 18px; }
.tile-1 .tile-logo img { height: 36px; max-width: 200px; }
.tile:hover .tile-logo { transform: translateY(-2px); background: rgba(10,15,28,.6); }
@media (max-width: 640px) {
  .tile-logo { top: 10px; left: 10px; padding: 7px 10px; border-radius: 8px; }
  .tile-logo img { height: 18px; max-width: 110px; }
  .tile-1 .tile-logo img { height: 24px; max-width: 130px; }
}

/* Evitar desborde horizontal por animaciones laterales */
main, .site-footer { overflow-x: clip; }
@media (max-width: 980px) {
  .anim-dinamico .reveal.rv-left, .anim-dinamico .reveal.rv-right { transform: translateY(var(--rv-y, 26px)); }
  .anim-dinamico .reveal.rv-left.is-in, .anim-dinamico .reveal.rv-right.is-in { transform: none; }
}

/* Logos de portada: todos del mismo tamaño */
.tile-logo, .tile-1 .tile-logo { top: 14px; left: 14px; width: 150px; height: 56px; padding: 10px 16px; justify-content: center; box-sizing: border-box; }
.tile-logo img, .tile-1 .tile-logo img { height: auto; width: auto; max-width: 100%; max-height: 100%; }
@media (max-width: 640px) {
  .tile-logo, .tile-1 .tile-logo { top: 10px; left: 10px; width: 108px; height: 42px; padding: 7px 10px; }
}
