/* Personalizados: componentes locales, sin dependencias de fuentes externas. */
:root {
  color-scheme: light;
  --ink: #242b28;
  --muted: #60655f;
  --paper: #f7f4ed;
  --line: #dadfd6;
  --accent: #ac3d16;
  --forest: #a33f20;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
[hidden] { display: none !important; }
.page-header, main, footer { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-size: 24px; font-weight: 900; letter-spacing: -.04em; line-height: 1.2; }
.brand span { display: block; margin-top: 4px; font-size: 10px; font-weight: 500; letter-spacing: .03em; }
.page-header nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 600; }
.page-header nav a { text-decoration: none; }
.page-header .nav-quote { border: 1px solid var(--ink); border-radius: 100px; padding: 10px 18px; }
section { padding-block: 72px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 7px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(42px, 5.5vw, 76px); margin: 22px 0 28px; font-weight: 750; }
h2 { font-size: clamp(32px, 4vw, 48px); margin: 10px 0 24px; font-weight: 700; }
h3 { font-size: 22px; }
.link-arrow { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: middle; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 13px 22px; border: 1px solid transparent; border-radius: 100px; background: var(--forest); color: white; font-weight: 650; text-decoration: none; transition: background .15s; }
.cta:hover { background: #803018; }
.secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 0; font-size: 14px; font-weight: 600; background: transparent; color: var(--ink); border: 0; text-underline-offset: 5px; }
.conditions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 0; border-block: 1px solid var(--line); }
.conditions p { margin: 0; padding-right: 18px; }
.conditions p + p { border-left: 1px solid var(--line); padding-left: 24px; }
.conditions strong, .conditions span { display: block; }
.conditions strong { font-size: 14px; line-height: 1.5; }
.conditions span { margin-top: 6px; font-size: 11px; color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading > p { max-width: 340px; font-size: 14px; color: var(--muted); }
.catalog-notes { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding: 12px 0; }
.catalog-notes summary { cursor: pointer; min-height: 32px; font-weight: 650; }
.catalog-notes p { max-width: 850px; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.model-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.model-image { background: #f0f1ec; padding: 24px; }
.model-card img { display: block; width: 100%; height: 310px; object-fit: contain; border-radius: 12px; }
.image-missing { display: grid; place-items: center; min-height: 240px; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
.model-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.model-card h3 { margin: 0 0 16px; font-size: 18px; line-height: 1.4; letter-spacing: -.025em; }
.model-card dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0 0 20px; font-size: 11px; }
.model-card dt { color: var(--muted); }
.model-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.product-detail { margin-top: auto; margin-bottom: 16px; font-size: 12px; }
.model-card .cta { display: flex; width: 100%; font-size: 13px; }
.model-card .secondary { margin-top: 6px; text-decoration: underline; }
.small { color: var(--muted); font-size: 12px; line-height: 1.7; }
.process-section { border-top: 1px solid var(--line); }
.steps { list-style: none; counter-reset: process; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 36px 0 0; }
.steps li { counter-increment: process; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: '0' counter(process); display: block; font-size: 12px; color: var(--accent); margin-bottom: 22px; }
.steps strong { display: block; font-size: 14px; line-height: 1.5; }
.steps p { font-size: 12px; color: var(--muted); }
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; border-top: 1px solid var(--line); }
.contact-intro { position: sticky; top: 32px; }
.contact-intro > p:not(.eyebrow) { max-width: 330px; }
.quote-includes { padding-block: 20px; font-size: 13px; }
.quote-includes ul { padding-left: 20px; color: var(--muted); }
.quote-includes li { margin-block: 7px; }
.quote-panel { min-width: 0; padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px #26382d08; }
.quote-panel h3 { margin-top: 0; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quote-fields label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 650; }
.quote-fields input, .quote-fields select { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fcfcf9; color: var(--ink); font-size: 16px; }
.quote-fields small { font-size: 11px; font-weight: 400; color: var(--muted); }
#quote-fields { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
#quote-fields > label { display: flex; align-items: start; gap: 10px; font-size: 12px; }
input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--forest); }
#quote-submit { width: 100%; margin-top: 20px; }
#quote-status { font-size: 13px; }
#quote-status[data-error=true] { color: #9e2415; padding: 12px; background: #fff1ec; border-radius: 8px; }
#quote-success { padding: 24px; border: 1px solid #afc6af; border-radius: 12px; background: #eef5eb; }
.quote-selection { padding: 12px 16px; border-left: 3px solid var(--forest); background: #edf2e9; font-size: 13px; overflow-wrap: anywhere; }
.quote-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* La simulación conserva sus medidas y su funcionamiento local. */
#logo-preview { border-top: 1px solid var(--line); }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.preview-grid > * { min-width: 0; }
.preview-stage { position: relative; aspect-ratio: 1; background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
#preview-product { display: block; width: 100%; height: 100%; object-fit: contain; }
#preview-logo { position: absolute; transform: translate(-50%, -50%); height: auto; max-height: 40%; object-fit: contain; pointer-events: none; }
.preview-compare { display: flex; gap: 8px; margin-top: 12px; }
.preview-compare button, .preview-controls button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
.preview-compare button[aria-pressed=true] { background: var(--forest); color: white; }
.preview-controls label { display: block; margin: 14px 0; font-weight: 600; }
.preview-controls input[type=range] { display: block; width: 100%; min-height: 44px; accent-color: var(--forest); }
.preview-controls input[type=file] { display: block; max-width: 100%; margin-top: 8px; }
.preview-controls fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
body:has(#preview-file:focus) #maxx-fab, body:has(#preview-adjust:focus-within) #maxx-fab, body:has(#personalizados-form:focus-within) #maxx-fab { visibility: hidden; pointer-events: none; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-block: 36px; border-top: 1px solid var(--line); font-size: 12px; }
footer > div { margin-right: auto; }
footer p { margin: 4px 0; color: var(--muted); }
.skip { position: absolute; top: -100px; left: 12px; padding: 12px; background: white; z-index: 99999; }
.skip:focus { top: 10px; }
@media (max-width: 960px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .contact-intro { position: static; }
  .contact-intro > p:not(.eyebrow) { max-width: 600px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .page-header, main, footer { width: calc(100% - 36px); }
  .page-header { padding-block: 18px; }
  .page-header nav { gap: 12px; }
  .page-header nav > a:not(.nav-quote) { display: none; }
  .page-header .nav-quote { padding: 10px 12px; font-size: 11px; }
  .brand { font-size: 21px; }
  .conditions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .conditions p + p { border-left: 0; padding-left: 0; }
  .conditions p { padding: 0; }
  section { padding-block: 44px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:last-child { grid-column: 1 / -1; }
  .quote-panel { padding: 22px; }
  .quote-fields, .preview-grid { grid-template-columns: 1fr; }
  body.logo-preview-visible #maxx-fab { display: none !important; }
}
@media (max-width: 480px) {
  .model-grid { grid-template-columns: 1fr; }
  .model-card img { height: 230px; }
  .model-body { padding: 20px; }
  h1 { font-size: 43px; }
  .hero-actions .cta { flex: 1; }
  footer { gap: 16px; padding-bottom: 90px; }
  footer > div { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { transition: none; } }


/* Editorial campaign: one focal image, clear type hierarchy, warm brand accent. */
.hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; padding-block: 40px; }
.hero-copy { min-width: 0; padding-block: 24px; }
.hero h1 { font-size: clamp(52px, 6.4vw, 86px); line-height: .98; letter-spacing: -.065em; margin: 24px 0; }
h1 em, .contact h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--accent); letter-spacing: -.055em; }
.lead { max-width: 320px; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.hero-footnote { font-size: 12px; color: var(--muted); max-width: 300px; margin: 22px 0 0; }
.hero-showcase { position: relative; align-self: stretch; margin: 0; min-width: 0; min-height: 540px; border-radius: 10px; overflow: hidden; background: #bd6d40; }
.campaign-image { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 60% center; }
.image-note { position: absolute; top: 24px; left: 24px; color: #fff; text-shadow: 0 1px 8px #40210c66; }
.image-note span { font-size: 9px; letter-spacing: .13em; }
.image-note strong { display: block; margin-top: 8px; font-size: 18px; line-height: 1.25; font-weight: 500; }
.hero-showcase figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: #2e211ce8; color: white; padding: 10px 16px; font-size: 10px; }
.conditions { padding-block: 24px; }
.catalog-section { padding-block: 64px; }
.catalog-notes { border: 0; }
.section-heading h2 { margin-bottom: 16px; }
.model-image { padding: 24px; background: #edeae2; }
.model-card { box-shadow: 0 6px 24px #30251a05; }
.model-body { padding: 22px; }
.model-card .cta { border-radius: 100px; }
.process-section { padding-block: 36px; }
.process-section h2 { font-size: 34px; margin-bottom: 12px; }
.steps { margin: 20px 0 0; }
.steps li::before { margin-bottom: 12px; }
.contact { padding-block: 60px; }
.contact h2 { font-size: clamp(38px, 4.2vw, 56px); }
.contact-photo { margin: 24px 0; }
.contact-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.contact-photo figcaption { font-size: 10px; color: var(--muted); margin-top: 8px; }
.quote-panel { border-radius: 10px; box-shadow: none; }
@media (max-width: 960px) {
  .hero { gap: 28px; }
  .hero-showcase { min-height: 500px; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(48px, 12vw, 68px); margin-block: 16px; }
  .hero h1 br:last-of-type { display: none; }
  .lead { font-size: 16px; margin: 0; max-width: 340px; }
  .hero-actions { margin-top: 20px; gap: 18px; }
  .hero-footnote { margin-top: 16px; max-width: none; font-size: 11px; }
  .hero-showcase { min-height: 390px; }
  .image-note { top: 18px; left: 18px; }
  .catalog-section, .contact { padding-block: 40px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li { display: flex; gap: 16px; align-items: baseline; padding-top: 14px; }
  .steps li::before { margin: 0; }
  .contact-photo { max-width: 460px; }
}
