:root {
  --bg: #faf7f2;
  --ink: #1f2430;
  --muted: #5d6370;
  --accent: #b5452f;   /* rouge fil */
  --accent-2: #2f5d50; /* vert sapin */
  --card: #ffffff;
  --line: #e7e1d7;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
main { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1040px; margin: 0 auto; padding: 18px 16px; flex-wrap: wrap; }
.logo { font-size: 1.4rem; font-weight: 700; text-decoration: none; letter-spacing: .5px; }
.logo span { color: var(--accent); font-style: italic; }
nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

.btn { display: inline-block; background: var(--accent); color: #fff !important; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 7px 16px; }
.btn-ghost { background: transparent; color: var(--accent) !important; }

.hero { padding: 48px 0 32px; }
.eyebrow { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 8px 0 16px; }
h1 em { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.notice { background: #fff4e5; border: 1px solid #f3d9b1; padding: 12px 16px; border-radius: var(--radius); }

section { margin-top: 40px; }
.steps ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-2); color: #fff; font-weight: 700; margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #f2ece3; }
.small { color: var(--muted); font-size: .92rem; }

/* Galería deslizante */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gallery-nav { display: flex; gap: 8px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.round-btn:hover { border-color: var(--accent); color: var(--accent); }
.gallery-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.gallery-item { flex: 0 0 clamp(220px, 28vw, 280px); margin: 0; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 440; object-fit: cover; }
.gallery-item figcaption { padding: 10px 14px 14px; display: grid; gap: 2px; }
.gallery-item figcaption span { color: var(--muted); font-size: .9rem; }

/* Categorías: fila horizontal fija (en móvil pasa a 2 columnas) */
.category-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.category { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 14px; text-decoration: none; display: grid; gap: 4px; text-align: center; transition: transform .15s, border-color .15s; }
.category:hover { transform: translateY(-3px); border-color: var(--accent); }
.category img { width: 100%; height: auto; aspect-ratio: 400 / 440; object-fit: cover; border-radius: 10px; }
.category span { color: var(--accent); font-weight: 600; font-size: .92rem; }
@media (max-width: 520px) { .category-row { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Configurador */
.config-intro { padding-top: 24px; }
.configurator { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.preview-col { position: sticky; top: 16px; }
.preview-card { background: #f2ece3; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
#mockup { width: 100%; height: auto; display: block; }
.watermark { font-family: system-ui, sans-serif; font-weight: 700; fill: rgba(255,255,255,.38); stroke: rgba(0,0,0,.15); stroke-width: .4; letter-spacing: 3px; pointer-events: none; }
.zone-hint { font: 13px system-ui, sans-serif; pointer-events: none; }
.photo-tools .pill { margin-top: 6px; }
.nudge { display: flex; flex-wrap: wrap; gap: 6px; }
.attached { display: flex; align-items: center; gap: 10px; margin-top: 10px; background: #eef5f2; border: 1px solid #cfe3da; border-radius: 10px; padding: 8px; color: var(--accent-2); font-size: .9rem; }
.attached[hidden] { display: none; }
.attached img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.pills.fonts { margin-bottom: 4px; }
.pro-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #1f2a44; color: #fff; border-radius: var(--radius); padding: 24px; }
.pro-banner h2 { margin: 4px 0; }
.pro-banner .small, .pro-banner .eyebrow { color: #d8dde8; }
/* Slider de ejemplos en la página del modelo */
.examples { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; margin-bottom: 14px; }
.examples-head { display: flex; align-items: center; justify-content: space-between; }
.examples-head .field-label { margin: 0; }
.round-btn.small { width: 32px; height: 32px; font-size: 1.1rem; }
.ex-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 8px; scrollbar-width: thin; }
.ex-item { flex: 0 0 auto; width: clamp(140px, 42%, 220px); aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f2ece3; cursor: zoom-in; scroll-snap-align: start; }
.ex-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-dialog { border: none; border-radius: var(--radius); padding: 0; max-width: min(92vw, 720px); background: #fff; }
.ex-dialog::backdrop { background: rgba(0,0,0,.7); }
.ex-dialog img { display: block; width: 100%; height: auto; }
.ex-dialog .round-btn { position: absolute; top: 10px; right: 10px; }
.badge.new { background: var(--accent); color: #fff; }
.nudge .pill { min-width: 44px; }
.status { background: #eef5f2; border: 1px solid #cfe3da; color: var(--accent-2); padding: 8px 12px; border-radius: 10px; font-size: .9rem; }
.photo-tools .check { margin-top: 10px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.model-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-decoration: none; display: grid; gap: 8px; }
a.model-card:hover { border-color: var(--accent); }
.model-card img { width: 100%; height: auto; aspect-ratio: 400 / 440; object-fit: cover; border-radius: 10px; }
.model-card.soon { opacity: .6; }
.price-tag { color: var(--accent); font-weight: 700; }
.badge { display: inline-block; background: #ece6dc; color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
#watermark { font: 700 28px system-ui, sans-serif; fill: rgba(255,255,255,.55); stroke: rgba(0,0,0,.25); stroke-width: .6; letter-spacing: 4px; pointer-events: none; }
#side-label { font: 13px system-ui, sans-serif; fill: #8a8f99; }
.preview-note { background: #fff4e5; border: 1px solid #f3d9b1; border-radius: var(--radius); padding: 10px 14px; font-size: .92rem; }
.options-col fieldset { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0 0 14px; }
.options-col legend { font-weight: 700; padding: 0 6px; }
.field-label { margin: 12px 0 6px; font-weight: 600; font-size: .92rem; display: block; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; height: 100%; }
.choice small { color: var(--muted); font-size: .82rem; }
.choice input:checked + span { border-color: var(--accent); background: #fbf1ee; }
.choice input:focus-visible + span { outline: 2px solid var(--accent-2); }
.choice.disabled span { opacity: .45; cursor: not-allowed; }
.swatches, .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; box-shadow: inset 0 0 0 2px #fff; }
.swatch.active { border-color: var(--accent); transform: scale(1.1); }
.pill { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .95rem; color: var(--ink); }
.pill.active { border-color: var(--accent); background: #fbf1ee; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.upload { display: block; border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; }
.upload:hover { border-color: var(--accent); }
.upload input { display: none; }
.warn { color: #9a5b00; background: #fff4e5; padding: 8px 12px; border-radius: 10px; font-size: .9rem; }
.check { display: flex; gap: 8px; align-items: center; }
#sleeve-text { margin-top: 10px; }
.summary { background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.3rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 10px; cursor: pointer; font: inherit; font-weight: 600; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.center { text-align: center; }
@media (max-width: 820px) {
  .configurator { grid-template-columns: 1fr; }
  .preview-col { position: sticky; top: 0; z-index: 2; background: var(--bg); padding-bottom: 6px; }
  #mockup { max-height: 42vh; }
  .preview-note { font-size: .82rem; padding: 6px 10px; margin: 6px 0 0; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* Entreprises y páginas legales */
.b2b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.b2b-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.b2b-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.quote-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
@media (max-width: 640px) { .quote-form { grid-template-columns: 1fr; } }
.legal { max-width: 760px; }

.site-footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); padding: 24px 16px; font-size: .9rem; }

/* ---------- Carrito, pedido y BAT ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site-notice { background: var(--accent); color: #fff; text-align: center; margin: 0; padding: 8px 16px; font-size: .92rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-item img { width: 110px; height: auto; border-radius: 10px; background: #f6f1ea; }
.cart-item p { margin: 2px 0; }
.qty { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.checkout { display: grid; gap: 14px; }
.checkout label:not(.check) { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.checkout input[type=text], .checkout input[type=email], .checkout input[type=tel], .checkout textarea,
.bat-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; box-sizing: border-box; }
.checkout fieldset { display: grid; gap: 10px; }
.checkout .two { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.summary-line { display: flex; justify-content: space-between; margin: 4px 0; }
.order-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.order-box h2 { margin-top: 0; font-size: 1.15rem; }
.final-photo { max-width: 100%; border-radius: 12px; }
.bat-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .bat-layout { grid-template-columns: 1fr; } }
.bat-img { width: 100%; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.bat-form { display: grid; gap: 8px; margin: 12px 0; }
.bat-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.notes-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.pay-box { max-width: 520px; }
.checkout select, .checkout input:disabled { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; box-sizing: border-box; }
.checkout input:disabled, .checkout select:disabled { background: #f3efe8; color: var(--muted); }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal p { line-height: 1.6; }
mark.todo { background: #ffe08a; padding: 0 4px; border-radius: 4px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } }
.legal-notice { background: #fff4e5; border-left: 3px solid #e2b33c; padding: 8px 10px; margin: 8px 0; }
