/* Cotizador. Solo usa las variables de cada opción:
   --bg --soft --ink --mid --line --g --ease --tf --tw --tt --ts. Blanco y gris, letra de títulos de cada versión. */
.cot { border-top: 1px solid var(--line); }
.cot-nota { text-align: center; margin: -1.75rem 0 2rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mid); }
.cot-hero { display: inline-block; margin: 1rem .75rem 0; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: inherit; text-decoration: underline; text-underline-offset: .45em; }

.cot-shell { max-width: 1040px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.cot button, .cot input, .cot select, .cot textarea { font: inherit; color: inherit; }
.cot :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Barra de pasos: se desliza por dentro, nunca empuja la página */
.cot-progress { display: flex; margin: 0; padding: 0; list-style: none; background: var(--soft); border-bottom: 1px solid var(--line); overflow-x: auto; }
.cot-progress-step { flex: 1 0 auto; min-width: 118px; display: flex; border-bottom: 2px solid transparent; }
/* Texto en --ink (no --mid) para pasar 4,5:1 sobre --soft en las 4 opciones; el paso activo se marca con raya y peso */
.cot-progress-step button { flex: 1; display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1rem; border: 0; background: none; font-size: .78rem; color: var(--ink); white-space: nowrap; text-align: left; }
.cot-progress-step button:disabled { cursor: default; opacity: 1; }
.cot-progress-step .num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .7rem; flex-shrink: 0; background: var(--bg); }
.cot-progress-step.is-active { border-color: var(--ink); font-weight: 500; }
.cot-progress-step.is-active .num, .cot-progress-step.is-done .num { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cot-progress-step.is-done button { cursor: pointer; text-decoration: underline; text-underline-offset: .3em; }

.cot-body { padding: clamp(1.75rem, 4vw, 3rem); }
.cot-step { display: none; }
.cot-step.is-active { display: block; animation: cotIn .35s var(--ease); }
@keyframes cotIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cot .cot-step-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25; margin-bottom: .5rem; }
.cot-step-title:focus { outline: none; }
.cot-step-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cot-step-hint { color: var(--mid); font-size: .95rem; margin-bottom: 2rem; }

/* Tarjetas con foto (estilos y sillas) */
.cot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cot-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cot-card { position: relative; display: block; width: 100%; padding: 0; text-align: left; background: var(--bg); border: 1.5px solid var(--mid); cursor: pointer; overflow: hidden; transition: border-color 160ms ease, box-shadow 160ms ease; }
.cot-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.cot-card.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cot-card-body { display: grid; gap: .15rem; padding: .9rem 1rem; }
.cot-card-title { font-family: var(--tf); font-weight: var(--tw, 400); text-transform: var(--tt, none); letter-spacing: var(--ts, 0); font-size: 1.05rem; color: var(--ink); }
.cot-card-desc { font-size: .82rem; color: var(--mid); }
.cot-check { position: absolute; top: .6rem; right: .6rem; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--mid); display: grid; place-items: center; color: transparent; z-index: 1; }
.cot-card.is-selected .cot-check { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (hover: hover) { .cot-card:hover { border-color: var(--ink); } }

/* Campos */
.cot-field { display: grid; gap: .5rem; margin-bottom: 1.5rem; min-width: 0; }
.cot-field label, .cot-label { font-size: .85rem; font-weight: 500; color: var(--ink); }
.cot-hint { font-size: .8rem; color: var(--mid); }
.cot-field input[type="text"], .cot-field input[type="email"], .cot-field input[type="tel"], .cot-field input[type="date"], .cot-field input[type="number"], .cot-field textarea, .cot-field select {
  width: 100%; min-width: 0; padding: .8rem 1rem; font-size: 16px; border: 1.5px solid var(--mid); border-radius: 0; background: var(--bg); color: var(--ink); transition: border-color 150ms ease;
}
.cot-field input:focus, .cot-field textarea:focus, .cot-field select:focus { border-color: var(--ink); outline: none; }
.cot-field textarea { resize: vertical; min-height: 96px; }
.cot-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cot-error { display: none; font-size: .8rem; font-weight: 500; color: var(--ink); }
.cot-error::before { content: "! "; }
.cot-field.has-error input, .cot-field.has-error textarea, .cot-field.has-error select { border-color: var(--ink); border-width: 2px; }
.cot-field.has-error .cot-error { display: block; }

.cot-stepper { display: flex; align-items: center; gap: .85rem; }
.cot-stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--mid); background: var(--bg); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.cot-field .cot-stepper input { width: 80px; text-align: center; padding: .6rem; }

/* Chips */
.cot-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.cot-chip { min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--mid); font-size: .88rem; background: var(--bg); cursor: pointer; }
.cot-chip.is-selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cot-chip .price-mini { opacity: .7; margin-left: .3rem; }
@media (hover: hover) { .cot-chip:not(.is-selected):hover { border-color: var(--ink); } }

/* Navegación y éxito (los botones reusan .btn de comun.css) */
.cot-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.cot-nav[hidden], .cot-progress[hidden] { display: none; }
.cot .btn { cursor: pointer; font-family: inherit; margin-top: 0; }
.cot-success { text-align: center; padding: 2.5rem 0 1rem; display: grid; justify-items: center; gap: .75rem; }
.cot-success p { color: var(--mid); max-width: 46ch; }
.cot-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--ink); display: grid; place-items: center; margin-bottom: .75rem; }
.cot-total { display: grid; gap: .2rem; color: var(--ink); margin-top: .5rem; }
.cot-total span { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mid); }
.cot-total strong { font-family: var(--tf); font-weight: var(--tw, 400); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; }
.cot-success .cot-nota { margin: 0; }
.cot-aviso { border: 1.5px solid var(--ink); padding: .75rem 1rem; color: var(--ink); font-weight: 500; }
.cot-success .cot-aviso { color: var(--ink); }
.cot-aviso[hidden] { display: none; }
.cot-reset { margin-top: .75rem; border: 0; background: none; padding: .6rem .25rem; color: var(--ink); text-decoration: underline; text-underline-offset: .3em; cursor: pointer; font-size: .9rem; }
.cot-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }

/* Enlace discreto al panel en el pie */
.foot .panel-link { justify-self: center; font-size: .75rem; color: var(--mid); text-underline-offset: .3em; }

@media (max-width: 900px) { .cot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cot-row { grid-template-columns: 1fr; gap: 0; } .cot-progress-step { min-width: 96px; padding: .9rem .6rem; } }
@media (max-width: 560px) {
  .cot-grid, .cot-grid.cols-2 { grid-template-columns: 1fr; }
  .cot .btn { letter-spacing: .12em; white-space: nowrap; }
  .cot-nav .btn { padding-inline: 1.25rem; }
  .cot-success-actions { width: 100%; flex-direction: column; }
  .cot-success-actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cot-step.is-active { animation: none; } .cot-card, .cot-chip { transition: none; } }

/* Pregunta de contacto en el paso 6 */
.cot-horario { display: grid; gap: .5rem; margin-top: 1rem; }
.cot-horario[hidden] { display: none; } /* si no, display:grid le gana a hidden */
#contactBox.has-error .cot-chip { border-width: 2px; }
