/* Frenos, mantenimiento y personalización. Reutiliza site.css y detailing.css */
.steps-four { grid-template-columns: repeat(4, 1fr); }

/* Categorías */
.cat { margin-top: 1.6rem; }
.cat > h2 { font: 600 1.7rem/1.15 var(--display); }
.cat > p { margin: .2rem 0 .9rem; color: var(--muted); font-size: 1.08rem; font-weight: 400; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.tile-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #060608; color: #fff; border: 1px solid var(--line); border-radius: .9rem; text-decoration: none; transition: border-color .15s, transform .15s; }
.tile-card:hover { border-color: #fff; transform: translateY(-2px); }
.tile-card img, .tile-icon { width: 100%; height: 9rem; object-fit: cover; }
.tile-icon { display: grid; place-items: center; background: #101014; }
.tile-body { display: grid; flex: 1; gap: .3rem; align-content: start; padding: .8rem .95rem .9rem; }
.tile-body strong { font-size: 1.22rem; font-weight: 600; line-height: 1.15; }
.tile-body p { color: #d7d8dc; font-size: 1.02rem; font-weight: 400; line-height: 1.25; }
.tile-cta { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; font-weight: 600; }

/* Opciones */
.opt { margin-bottom: 1rem; }
.opt > p:first-child { margin-bottom: .45rem; font-size: 1.08rem; font-weight: 600; }
.opt-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-btn { min-height: 2.9rem; padding: .3rem 1rem; background: #060608; color: #fff; border: 1px solid var(--line); border-radius: .55rem; cursor: pointer; font-size: 1.05rem; font-weight: 500; }
.opt-btn:hover { border-color: #fff; }
.opt-btn[aria-pressed="true"] { background: #f7f7f8; color: #09090b; border-color: #fff; font-weight: 600; }
.color-btn { display: inline-flex; align-items: center; gap: .5rem; }
.color-btn i { width: 1.3rem; height: 1.3rem; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; }
.config-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.2rem; align-items: start; }
.config-photo { width: 100%; height: 17rem; object-fit: cover; border: 1px solid var(--line-soft); border-radius: .8rem; transition: filter .2s; }
.vehicle-form { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vehicle-form label { grid-column: span 2; }
.vehicle-form label.half { grid-column: span 3; }
.step-panel textarea { width: 100%; min-height: 5rem; padding: .5rem .8rem; color: var(--text); background: var(--panel-2); border: 1px solid rgba(255, 255, 255, .22); border-radius: .55rem; font: 500 max(1rem, 16px) var(--body); resize: vertical; }
.stop-box { padding: 1rem; background: rgba(200, 16, 31, .12); border: 1px solid var(--red); border-radius: .7rem; font-size: 1.08rem; font-weight: 500; line-height: 1.3; }

/* Precio y avisos */
.notice { margin-top: .9rem; padding: .75rem .9rem; background: rgba(200, 16, 31, .1); border-left: 3px solid var(--red); border-radius: .35rem; font-size: 1.03rem; font-weight: 400; line-height: 1.3; }
.price-box { margin-top: .7rem; padding: .9rem 1rem; background: #060608; border: 1px solid var(--line); border-radius: .7rem; }
.price-box span { display: block; color: var(--muted); font-size: 1rem; font-weight: 500; }
.price-box strong { display: block; font: 700 1.7rem/1.2 var(--display); }
.price-box small { display: block; margin-top: .2rem; color: #d7d8dc; font-size: .98rem; font-weight: 400; }
.line-list { list-style: none; margin: 0; padding: 0; }
.line-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; line-height: 1.25; }
.line-list b { flex: none; font-weight: 600; text-align: right; }
.line-list .pending { color: var(--muted); font-weight: 500; }
.line-list button { flex: none; min-height: 2.75rem; padding: 0 .4rem; background: none; color: var(--muted); border: 0; cursor: pointer; font-size: .98rem; text-decoration: underline; }
.line-side { display: grid; justify-items: end; flex: none; }
.action-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.action-row .btn { flex: 1 1 13rem; }
.empty-cart { padding: 1rem 0; color: var(--muted); font-size: 1.1rem; }

.mt-vehicle { margin-bottom: .4rem; font-size: 1.15rem; font-weight: 600; }
.mt-section { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.mt-section h3 { margin-bottom: .5rem; font: 600 1.3rem var(--display); }
.mt-section .request { max-width: none; margin: 0; padding: 0; background: none; border: 0; }

.photo-add { position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: 0 1.1rem; background: #060608; color: #fff; border: 1px solid var(--line); border-radius: .55rem; cursor: pointer; font-size: 1.05rem; font-weight: 600; }
.photo-add:hover { border-color: #fff; }
.photo-add:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.photo-list:empty { display: none; }
.photo-item { width: 6.5rem; }
.photo-item img { width: 100%; height: 5rem; object-fit: cover; border: 1px solid var(--line); border-radius: .5rem; }
.photo-item button { width: 100%; min-height: 2.75rem; background: none; color: var(--muted); border: 0; cursor: pointer; font-size: .95rem; text-decoration: underline; }
.photo-swap { position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.75rem; color: var(--muted); cursor: pointer; font-size: .95rem; text-decoration: underline; }
.photo-swap input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-swap:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }

/* Cotización de rines */
.wq-field { display: grid; gap: .3rem; margin-top: 1rem; font-size: 1rem; font-weight: 500; }
.wq-field input, .wq-field textarea { width: 100%; padding: .6rem .8rem; color: var(--text); background: var(--panel-2); border: 1px solid rgba(255, 255, 255, .22); border-radius: .55rem; font: 500 max(1rem, 16px) var(--body); }
.wq-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.wq-ok { margin: 1rem 0 1.2rem; padding: 1rem 1.1rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: .6rem; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
@media (max-width: 860px) { .wq-contact { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .config-split { grid-template-columns: 1fr; }
  .config-photo { height: 12rem; }
  .vehicle-form { grid-template-columns: 1fr 1fr; }
  .vehicle-form label, .vehicle-form label.half { grid-column: span 1; }
  .steps-four li { width: 3rem; }
}
@media (max-width: 520px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile-card img, .tile-icon { height: 8rem; }
  .action-row .btn { flex-basis: 100%; }
  .line-list li { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .vehicle-form { grid-template-columns: 1fr; }
}

/* Selector de vehículo conectado y desglose del estimado (2026-11-11). */
.veh-home { margin-top: 1rem; }
.veh-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; }
.veh-flow { margin: .3rem 0 .9rem; color: #d7d8dc; font-size: 1.05rem; font-weight: 600; }
.veh-lists { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.veh-field { display: grid; gap: .3rem; font-size: 1rem; font-weight: 500; }
.veh-field select { width: 100%; min-height: 2.9rem; padding: .5rem .8rem; color: var(--text); background: var(--panel-2); border: 1px solid rgba(255, 255, 255, .22); border-radius: .55rem; font: 500 max(1rem, 16px) var(--body); color-scheme: dark; }
.veh-field select:disabled { opacity: .55; }
.veh-vin { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; margin-top: .8rem; }
.veh-vin label { flex: 1 1 16rem; display: grid; gap: .3rem; }
.veh-vin input { width: 100%; min-height: 2.9rem; padding: .5rem .8rem; color: var(--text); background: var(--panel-2); border: 1px solid rgba(255, 255, 255, .22); border-radius: .55rem; font: 500 max(1rem, 16px) var(--body); text-transform: uppercase; }
.veh-switch { margin-top: .7rem; }
.breakdown { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .45rem 1rem; margin: .8rem 0 0; padding: 1rem 1.1rem; background: #060608; border: 1px solid var(--line); border-radius: .7rem; font-size: 1.02rem; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .veh-lists { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .veh-lists { grid-template-columns: 1fr; }
  .breakdown { grid-template-columns: 1fr; gap: .1rem; }
  .breakdown dd { margin-bottom: .45rem; }
}
.veh-switch { min-height: 2.75rem; padding: 0; color: #fff; background: none; border: 0; cursor: pointer; font: 600 1.02rem var(--body); text-decoration: underline; text-underline-offset: .2em; }
.veh-head .btn { flex: 0 1 auto; }
@media (max-width: 520px) { .veh-head .btn { width: 100%; text-align: center; } }
