:root{--ink:#172d3e;--muted:#60717c;--paper:#f6f5f1;--line:#dce1df;--accent:#d0ed79}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:10px 16px;color:var(--ink);background:white}button:hover{border-color:var(--ink)}button:disabled{opacity:.55;cursor:wait}a{color:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7cab19;outline-offset:3px}[hidden]{display:none!important}header{max-width:1440px;margin:auto;padding:25px 5%;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.brand{font-weight:850;text-decoration:none;font-size:20px;letter-spacing:-.6px}.brand span{font-size:11px;color:var(--muted);letter-spacing:1px}nav{display:flex;gap:26px;font-size:14px}nav a{text-decoration:none}.hero{display:grid;grid-template-columns:1.15fr 1fr;min-height:520px;gap:40px;align-items:center}.hero h1{font-size:clamp(38px,4.4vw,66px);line-height:1.08;letter-spacing:-3px;margin:20px 0}em{font-style:normal;color:#77877f}.hero p:not(.eyebrow){max-width:460px;color:var(--muted);margin-bottom:30px}.hero-art{height:420px;border-radius:14px;background:radial-gradient(ellipse at 90% 90%,#62776b,transparent 65%),linear-gradient(135deg,#132d3e,#294655);position:relative;overflow:hidden;display:flex;align-items:end;padding:32px}.hero-art span{font-size:30px;line-height:1.2;color:white;position:relative;z-index:1}.hero-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-art:has(img):after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 40%,#0008)}main>section{max-width:1320px;margin:auto;padding:60px 4%}.eyebrow{font-size:11px;font-weight:750;letter-spacing:2px;color:var(--muted)}h2{font-size:clamp(27px,3vw,39px);line-height:1.2;letter-spacing:-1.2px;margin:12px 0 30px}h3{line-height:1.2;margin:0 0 8px}.primary{display:inline-flex;align-items:center;justify-content:center;background:var(--ink);color:white;border:1px solid var(--ink);text-decoration:none;border-radius:8px;padding:13px 21px;font-weight:650}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.filters{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:12px;padding:20px 0;border-top:1px solid var(--line);margin-bottom:20px}label{display:block;font-size:13px;font-weight:600;margin-bottom:14px}input,select,textarea{width:100%;padding:11px 12px;background:white;border:1px solid #cbd3d1;border-radius:6px;color:var(--ink);margin-top:6px}textarea{resize:vertical}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.card button{border:0;border-radius:0;width:100%;text-align:left;padding:0;background:none}.card img,.placeholder{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:#e8ede9;display:block}.placeholder{display:grid;place-items:center;color:var(--muted)}.card-copy{padding:22px}.card p{color:var(--muted);margin:5px 0 16px;font-size:14px}.price{font-size:24px;font-weight:750}.badge{display:inline-block;background:#eaf2dc;padding:3px 9px;font-size:11px;border-radius:30px;margin-bottom:12px;font-weight:700}.sold{background:#e7ebef}.specs{font-size:13px;color:var(--muted);margin:10px 0}.card:hover{box-shadow:0 8px 25px #172d3e10}.contact{background:#e7ecdf;display:grid;grid-template-columns:1.5fr 1fr;gap:40px;border-radius:16px;margin-bottom:50px}.contact a{margin:10px 0;display:block}.contact p{max-width:660px}footer{display:flex;justify-content:space-between;align-items:center;padding:25px 5%;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.text-button{background:transparent;border:0}dialog{border:0;border-radius:16px;padding:38px;width:min(1000px,94vw);max-height:90dvh;overflow:auto;color:var(--ink);background:var(--paper);box-shadow:0 24px 90px #0004}dialog::backdrop{background:#102431a8}#login{width:min(480px,94vw)}.close{position:absolute;right:12px;top:10px;padding:3px 12px;font-size:27px;z-index:3}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:0 15px}.check{display:flex;gap:10px;align-items:center}.check input{width:auto;margin:0}.upload{border:1px dashed #839782;padding:20px;border-radius:8px;margin-top:20px}.upload p,.hint{font-size:12px;color:var(--muted)}.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}.thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}.thumbs button{font-size:12px;padding:4px 7px}.admin-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:15px 0}.admin-row small{display:block;color:var(--muted)}details{margin-top:25px;border-top:1px solid var(--line);padding:18px 0}summary{cursor:pointer;font-weight:700;margin-bottom:15px}.gallery img{width:100%;max-height:520px;object-fit:contain;background:#e8ede9;border-radius:8px}.gallery-nav{display:flex;gap:8px;overflow:auto;margin:12px 0 25px}.gallery-nav button{padding:2px;flex:0 0 80px}.gallery-nav img{width:74px;height:56px;object-fit:cover}.detail-specs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.detail-specs div{border-bottom:1px solid var(--line);padding:10px 0}.detail-specs small{display:block;color:var(--muted)}.description{white-space:pre-wrap}.review{padding:25px;background:white;border:1px solid var(--line);border-radius:12px}.review p{white-space:pre-wrap}.empty{padding:30px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);grid-column:1/-1}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 25px;border-radius:8px;z-index:100}.error{color:#a52f2f}.status{white-space:pre-wrap}@media(max-width:850px){.grid{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(2,1fr)}.hero{gap:20px}.hero-art{height:350px}.fields{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){header{align-items:start;flex-direction:column;padding:20px 6%;gap:12px}nav{gap:24px}.hero{grid-template-columns:1fr;padding-top:35px}.hero h1{letter-spacing:-1.8px}.hero-art{height:240px}.hero-art span{font-size:24px}main>section{padding:35px 6%}.grid,.contact{grid-template-columns:1fr}.heading{align-items:start}.heading>span{font-size:12px}.fields{grid-template-columns:1fr 1fr;gap:0 10px}dialog{padding:38px 18px 22px}.thumbs{grid-template-columns:repeat(2,1fr)}.detail-specs{grid-template-columns:repeat(2,1fr)}.admin-row{align-items:start}.admin-row button{font-size:12px}.contact{border-radius:0}.primary{padding:12px 17px}footer{gap:10px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Accessible icon buttons and gesture navigation. */
.close{width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:50%;user-select:none;-webkit-user-select:none;cursor:pointer}
.close-icon{position:relative;width:18px;height:18px;pointer-events:none}
.close-icon:before,.close-icon:after{content:"";position:absolute;left:8px;top:0;width:2px;height:18px;background:currentColor;border-radius:2px;transform:rotate(45deg)}
.close-icon:after{transform:rotate(-45deg)}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.gallery-controls button{min-width:44px;min-height:44px;user-select:none}
.gallery-controls span{font-size:14px;color:var(--muted)}
.swipe-gallery{touch-action:pan-y pinch-zoom;cursor:grab;user-select:none;-webkit-user-select:none}
.swipe-gallery.dragging{cursor:grabbing}
.swipe-gallery img{-webkit-user-drag:none;user-select:none}
.gallery-nav button[aria-pressed="true"]{border:2px solid var(--ink)}

/* OneMotor: graphite brand, silver accents and a light catalogue. */
:root{--ink:#202328;--muted:#666b71;--paper:#f6f6f4;--accent:#d6d9dc}
header{max-width:none;background:#202226;color:#fff;padding:12px max(4%,calc((100vw - 1220px)/2));min-height:112px}
.brand{display:flex;align-items:center;gap:16px;flex-shrink:0}.brand img{width:88px;height:88px;object-fit:contain;border-radius:8px}.brand .brand-copy{display:flex;flex-direction:column;gap:5px;color:#fff;letter-spacing:0}.brand strong{font-size:27px;letter-spacing:-1px}.brand small{font-size:9px;letter-spacing:2px;color:#c7cbd0}
nav{flex-wrap:wrap}em{color:#81868c}.hero-art{background:linear-gradient(140deg,#202328,#737a80)}
.vehicle-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.vehicle-actions .hint{flex-basis:100%;margin:0}.vehicle-actions button[aria-pressed="true"]{background:#202328;color:white}
.analytics-banner{position:fixed;bottom:16px;left:16px;right:16px;margin:auto;max-width:860px;background:#fff;color:var(--ink);padding:18px 24px;box-shadow:0 8px 40px #0003;border:1px solid var(--line);border-radius:12px;z-index:20}.analytics-banner p{margin:0}.analytics-banner .toolbar{margin:12px 0 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.stat{background:#fff;border:1px solid var(--line);padding:18px;border-radius:8px}.stat strong{display:block;font-size:26px}.stat span{font-size:12px;color:var(--muted)}
.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}th{font-weight:650}
.lead{background:white;border:1px solid var(--line);border-radius:8px;padding:18px;margin:15px 0}.lead p{overflow-wrap:anywhere}.lead .toolbar{margin-bottom:0}fieldset{border:1px solid var(--line);border-radius:8px;margin:16px 0;padding:16px}.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
#alertDialog,#shareDialog{width:min(560px,94vw)}footer{flex-wrap:wrap}#toast{z-index:100;pointer-events:none}
@media(max-width:600px){header{padding:12px 6%;gap:10px}.brand img{width:68px;height:68px}.brand strong{font-size:24px}.brand small{font-size:8px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-banner{padding:14px;bottom:8px;left:8px;right:8px;font-size:13px}.analytics-banner .toolbar{gap:6px}.analytics-banner button{font-size:12px}.vehicle-actions button{flex:1 1 auto}}
/* OneMotor: cabecera clara y portada compacta */
header{background:#fff;color:#20252a;border-bottom:1px solid #e4e6e8;gap:24px;padding:14px max(5vw,20px);box-shadow:none}header .brand{display:flex;align-items:center;gap:12px;color:#20252a;font-size:24px;letter-spacing:-.7px}header .brand-symbol{display:block;position:relative;width:48px;height:48px;overflow:hidden;flex-shrink:0;border-radius:50%;background:#242529}header .brand-symbol img{position:absolute;width:112px;height:112px;max-width:none;left:-31px;top:-21px;border-radius:0}header nav{display:flex;align-items:center;gap:22px}header nav a{color:#343a40;font-size:14px}header nav a:hover{color:#000;text-decoration:underline;text-underline-offset:6px}.header-whatsapp{font-size:13px;color:#20252a;border:1px solid #d9dedb;padding:10px 14px;border-radius:8px;white-space:nowrap}main>.hero{min-height:0;padding-top:34px;padding-bottom:34px;gap:40px}.hero h1{font-size:clamp(32px,4.2vw,58px);line-height:1.08}.hero h1 em{color:#626b72}.hero>div>p:not(.eyebrow){max-width:480px}.secondary{display:inline-block;padding:12px 16px;border:1px solid #ccd2d5;border-radius:8px;text-decoration:none;color:#262d32;background:#fff}.primary{background:#252c31;color:#fff}.primary:hover{background:#414b52}.hero-art{height:255px;min-height:0;border-radius:14px;padding:0;background:#e9edef;overflow:hidden;display:block}.hero-art:has(img):after{display:none}.hero-art button{display:block;border:0;padding:0;width:100%;height:100%;border-radius:0;background:transparent}.hero-art img{position:static;display:block;width:100%;height:100%;object-fit:cover;opacity:1}.hero-art .hero-empty{height:100%;padding:26px;display:flex;flex-direction:column;justify-content:center;gap:20px}.hero-art .hero-empty span{position:static;color:#273037;font-size:24px}.hero-empty a{color:#273037}#heroCaption{margin:10px 0 6px;font-size:13px;color:#525e66}.hero-controls{display:flex;align-items:center;gap:8px}.hero-controls button{padding:6px 12px;font-size:12px}.hero-controls span{font-size:12px;color:#667078}.custom-section{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;background:#f0f3f4;border-radius:20px;margin-top:30px;margin-bottom:30px}.custom-intro p{max-width:410px;line-height:1.7}.request-panel{background:#fff;border:1px solid #e0e5e8;border-radius:16px;padding:26px}.request-panel .check{font-size:13px;line-height:1.5;align-items:flex-start}.request-panel details{margin:16px 0}.request-panel label{margin-bottom:12px}footer{background:#242529;color:#fff;padding:20px 5vw;gap:24px}footer button{color:#eee;background:transparent;border-color:#5d6165}.footer-brand img{display:block;width:150px;height:150px;object-fit:contain}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(max-width:900px){header{flex-wrap:wrap;gap:12px}header nav{order:3;width:100%;justify-content:center;gap:20px}.header-whatsapp{margin-left:auto}.custom-section{gap:28px}.hero-art{height:235px}}
@media(max-width:650px){main>.hero{gap:22px;padding-top:24px;padding-bottom:24px}.hero h1{font-size:38px}.hero-art{height:215px}.custom-section{grid-template-columns:1fr;gap:20px}.request-panel{padding:20px}header nav{gap:16px;overflow-x:auto;justify-content:flex-start}header nav a{font-size:13px;white-space:nowrap}header .brand{font-size:22px}footer{flex-wrap:wrap}.footer-brand img{width:120px;height:120px}}
header{min-height:0;flex-direction:row;align-items:center}header .brand strong{font-size:24px}.request-panel .fields{grid-template-columns:repeat(2,minmax(0,1fr))}#heroPreview{min-width:0}.hero-controls button{min-height:40px;min-width:40px}.request-panel input,.request-panel select{min-width:0}.hero .hero-controls{margin-bottom:0}#heroPreview #heroCaption{margin-bottom:6px}@media(max-width:650px){main>.hero{grid-template-columns:1fr}header .brand strong{font-size:22px}header nav{max-width:100%}}@media(max-width:380px){.request-panel .fields{grid-template-columns:1fr}.header-whatsapp{padding:8px}}
/* Ajustes móviles: contenido ajustado, sin bloquear el zoom manual. */
header,main,footer,section,dialog,.fields>*,.admin-row>*,.lead,.request-panel{min-width:0}dialog{max-width:calc(100vw - 20px);width:min(1000px,calc(100vw - 20px));overflow-x:hidden;overscroll-behavior:contain}dialog input,dialog select,dialog textarea{max-width:100%;min-width:0}dialog p,dialog strong,dialog small,.lead,.description{overflow-wrap:anywhere}.table-scroll{max-width:100%;overflow-x:auto}.admin-actions{display:flex;flex-wrap:wrap;gap:8px}.danger{color:#a82424;border-color:#d9a3a3}.search-row{display:flex;gap:12px;align-items:center}.search-row label{flex:1}.search-row button{display:none}.filters{grid-template-columns:repeat(5,minmax(0,1fr))}.header-whatsapp{display:inline-flex;align-items:center;gap:8px;background:#146c43;color:#fff;border-color:#146c43;font-weight:650}.header-whatsapp:hover{background:#105635}.header-whatsapp svg{flex-shrink:0}.gallery-nav,.thumbs,.toolbar{max-width:100%}.toolbar>*{max-width:100%}body:has(dialog[open]){overflow:hidden}
@media(max-width:650px){input,select,textarea{font-size:16px}header nav{flex-wrap:wrap;overflow:visible;gap:10px 18px}main>.hero{display:block;padding-top:14px;padding-bottom:4px}.hero #heroPreview,.hero .eyebrow,.hero .toolbar{display:none}.hero h1{font-size:25px;margin:6px 0;letter-spacing:-.8px}.hero h1 br{display:none}.hero h1 em:before{content:' '}.hero>div>p:not(.eyebrow){font-size:14px;margin:8px 0;line-height:1.5}main>#stock{padding-top:18px}.heading h2{font-size:25px;margin-bottom:14px}.heading .eyebrow{display:none}.search-row button{display:block}.filters{display:none;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:12px;margin-bottom:8px}.filters.filters-open{display:grid}.grid{grid-template-columns:1fr}.card-copy{padding:14px 16px}.card p{margin:4px 0 8px}.card .specs{margin:6px 0}.card .price{font-size:23px}.card h3{font-size:19px}.card img{aspect-ratio:4/3}.admin-row{flex-wrap:wrap;align-items:center}.admin-row>div:first-child{flex:1 1 190px}.admin-actions{flex:0 1 auto}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}dialog{padding:46px 16px 20px}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-section{border-radius:0}.gallery-controls{max-width:100%}.header-whatsapp{padding:9px 11px}}
@media(max-width:380px){dialog .fields{grid-template-columns:1fr}.filters{grid-template-columns:1fr}.brand-symbol{flex-shrink:0}}
/* Paletas. Acabado elegido: mixto con tarjetas grafito. */
body[data-theme="graphite"],body[data-theme="night"]{--paper:#171b20;--ink:#f0f2f5;--muted:#bac1ca;--line:#454d58;background:var(--paper);color:var(--ink)}
body[data-theme="night"]{--paper:#101c2d;--ink:#f0f4fa;--muted:#b9c8dc;--line:#40516b}
body[data-theme] header,body[data-theme] .hero{background:#20252b;color:#f2f4f6}body[data-theme="night"] header,body[data-theme="night"] .hero{background:#16283f}body[data-theme] header .brand,body[data-theme] header nav a{color:#f2f4f6}
body[data-theme="graphite"] .card,body[data-theme="night"] .card,body[data-theme="graphite"] .request-panel,body[data-theme="night"] .request-panel,body[data-theme="graphite"] .review,body[data-theme="night"] .review{background:#252d37;color:var(--ink)}body[data-theme="graphite"] .custom-section,body[data-theme="night"] .custom-section,body[data-theme="graphite"] .contact,body[data-theme="night"] .contact{background:#202834}body[data-theme] .hero h1 em{color:#c2cbd5}body[data-theme="mixed"] .hero p,body[data-theme="mixed"] #heroCaption{color:#cbd1d8}body[data-theme="graphite"] input,body[data-theme="graphite"] select,body[data-theme="graphite"] textarea,body[data-theme="night"] input,body[data-theme="night"] select,body[data-theme="night"] textarea{background:#202834;color:#fff}body[data-theme="graphite"] button,body[data-theme="night"] button{color:#f2f4f6;background:#303b48}body[data-theme="graphite"] .card button,body[data-theme="night"] .card button{background:transparent}.badge{color:#263a29}body[data-theme] .secondary{color:#262d32}body[data-theme="graphite"] #heroCaption,body[data-theme="night"] #heroCaption{color:var(--muted)}.preview-bar{padding:12px 5%;background:#fff;color:#202328;border-bottom:1px solid #ccc}.preview-bar select{max-width:280px}.preview-bar p{margin:4px 0;font-size:13px}

body[data-theme] .header-whatsapp{background:#146c43;color:#fff;border-color:#146c43}body[data-theme] .header-whatsapp:hover{background:#105635}

/* Acabado elegido: tarjetas con el mismo grafito que la portada. */
body[data-cards="graphite"] .card{background:#20252b;border-color:#42484f;box-shadow:0 5px 18px #20252b12}
body[data-cards="graphite"] .card button{color:#f2f4f6;background:transparent}
body[data-cards="graphite"] .card-copy{background:#20252b}
body[data-cards="graphite"] .card h3,body[data-cards="graphite"] .card .price{color:#fff}
body[data-cards="graphite"] .card p,body[data-cards="graphite"] .card .specs{color:#cbd1d8}
body[data-cards="graphite"] .card .badge{background:#353b42;color:#f2f4f6;border:1px solid #596169}
body[data-cards="graphite"] .card .eco-badge{background:#eceef0;color:#20252b;border-color:#eceef0}
body[data-cards="graphite"] .card .sold{background:#353b42;color:#e4e7ea}
body[data-cards="graphite"] .card:hover{border-color:#8c959f;box-shadow:0 7px 22px #20252b26}
body[data-cards="graphite"] .card button:focus-visible{outline:3px solid #d1d6dc;outline-offset:-4px}

/* Colores de categoría ambiental. Grises: estados sin distintivo o pendientes. */
.eco-badge{--eco-bg:#e5e7eb;--eco-ink:#20252b;--eco-border:#c5cad0;white-space:nowrap;font-weight:800}
.eco-b{--eco-bg:#f4df22;--eco-ink:#172016;--eco-border:#dac413}
.eco-c{--eco-bg:#70b849;--eco-ink:#11220b;--eco-border:#5d9e39}
.eco-eco{--eco-bg:linear-gradient(90deg,#70b849 0%,#70b849 50%,#56b4dc 50%,#56b4dc 100%);--eco-ink:#10202b;--eco-border:#5b9ca6}
.eco-zero{--eco-bg:#087cac;--eco-ink:#fff;--eco-border:#3999bf}
body[data-cards="graphite"] .card .badge.eco-badge,.badge.eco-badge{background:var(--eco-bg);color:var(--eco-ink);border:1px solid var(--eco-border)}
.detail-specs .eco-badge{margin-top:6px;margin-bottom:0}

/* Revisión de catálogo y formularios · septiembre 2026. */
main>#stock{padding-top:36px;padding-bottom:38px}
#stock .heading h2{margin-bottom:18px}
#stock .filters{padding:12px 0 4px;margin-bottom:2px}
.filter-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:4px 0 14px}
.filter-actions .check{margin:0}
.filter-actions button{font-size:13px;padding:8px 12px}
#loadStatus:empty{display:none}
.empty p{margin:0}.empty .toolbar{margin-bottom:0}
body[data-theme] .hero .primary{background:#f0f2f4;color:#20252b;border-color:#f0f2f4}
body[data-theme] .hero .primary:hover{background:#dce1e6}
body[data-theme] .hero .secondary{background:transparent;color:#f2f4f6;border-color:#88939f}
body[data-theme] .hero-controls span{color:#e0e5eb}
body[data-theme] .hero .hero-empty span,body[data-theme] .hero .hero-empty a{color:#20252b}
.header-whatsapp{text-decoration:none}
.form-fallback{display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.form-fallback a{font-size:14px;font-weight:650}
.vehicle-section{margin:24px 0}.vehicle-section h3{font-size:19px}.vehicle-section ul{padding-left:22px}
.admin-warning{border:1px solid #cba86a;background:#fff8e8;color:#473a21;padding:16px;border-radius:10px;margin:18px 0}
.admin-warning ul{padding-left:20px;margin-bottom:8px}.admin-warning .hint{margin-bottom:0;color:#625235}
#requestStatus,#alertStatus,#connectionStatus{overflow-wrap:anywhere}
#toast{max-width:calc(100vw - 32px);width:max-content;text-align:center}
@media(max-width:650px){main>#stock{padding-top:16px}.filter-actions{gap:8px;margin-bottom:12px}.filter-actions button{min-height:44px}.request-panel .form-fallback a{display:block;padding:8px 0}.hero-controls button{min-width:44px;min-height:44px}}

/* r13: cabecera y contacto fuera del área desplazable de cada diálogo. */
dialog{padding:0;overflow:hidden}dialog[open]{display:flex;flex-direction:column;max-height:90dvh}
.dialog-topbar{flex:0 0 auto;display:flex;justify-content:flex-end;padding:8px 12px;background:var(--paper);border-bottom:1px solid var(--line)}
.dialog-topbar .close{position:static;flex-shrink:0}.dialog-content{padding:20px 38px 30px;overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain}
.detail-contact-bar{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
.detail-contact-bar strong{white-space:nowrap}.whatsapp-action{background:#146c43!important;border-color:#146c43!important;color:#fff!important}
.form-confirmation{padding:16px;border:1px solid var(--line);border-radius:10px;margin-top:16px;overflow-wrap:anywhere}.form-confirmation p{margin:0 0 10px}.image-failed{display:none!important}.image-error{display:grid;place-items:center;min-height:120px;aspect-ratio:4/3;width:100%;background:#303438;color:#fff;padding:16px;text-align:center}.gallery-nav .image-error{font-size:10px;min-height:56px;padding:2px}.hero-art .image-error{position:absolute;inset:0;aspect-ratio:auto}
@media(max-width:650px){.dialog-content{padding:16px}.detail-contact-bar{padding:10px 12px max(10px,env(safe-area-inset-bottom));font-size:14px;gap:8px}.detail-contact-bar .primary{padding:10px 12px;font-size:13px}.dialog-topbar{padding:5px 8px}}

/* r17: acciones equilibradas en formularios públicos */
.form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:12px;margin-top:16px;align-items:stretch}
.form-actions>button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:52px;height:100%;margin:0;padding:12px 16px;font-family:inherit;font-size:15px;font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center}
@media(max-width:650px){.form-actions{grid-template-columns:minmax(0,1fr);gap:12px}.form-actions>button{min-height:52px}}
