/* ==========================================================================
   Cotizador en línea
   ========================================================================== */

.cw-head { max-width: 46em; margin: 0 auto clamp(22px, 2.6vw, 38px); text-align: center; }
.cw-head h2 { margin: 8px 0 12px; }
.cw-head p { color: var(--texto-secundario); }

.cw-uf {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--petroleo-claro);
  color: var(--petroleo-profundo);
  font-size: var(--t-chico);
  font-weight: 700;
}

.cw-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: var(--radio-l);
  background: var(--superficie);
  box-shadow: var(--sombra-elevada);
}

@media (min-width: 900px) {
  .cw-card { grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); }
}

.cw-side { padding: clamp(18px, 2vw, 32px); border-right: 1px solid var(--borde); background: var(--gris-claro); }

@media (max-width: 899px) {
  .cw-side { border-right: 0; border-bottom: 1px solid var(--borde); }
}
.cw-side h3 { margin-bottom: 16px; font-size: 1.25rem; }

.cw-cats { display: grid; gap: 10px; }

@media (min-width: 560px) and (max-width: 899px) {
  .cw-cats { grid-template-columns: 1fr 1fr; }
}

.cw-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-m);
  background: var(--superficie);
  text-align: left;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.cw-cat:hover { transform: translateX(2px); border-color: var(--petroleo-suave); box-shadow: var(--sombra-suave); }
.cw-cat:active { background: var(--petroleo-claro); }
.cw-cat[aria-pressed="true"] { border-color: var(--accion); background: var(--superficie); box-shadow: var(--foco-anillo); }

.cw-cat__icono {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.cw-cat:nth-child(1) .cw-cat__icono { background: var(--petroleo-claro); color: var(--petroleo-profundo); }
.cw-cat:nth-child(2) .cw-cat__icono { background: var(--celeste-claro); color: var(--celeste-oscuro); }
.cw-cat:nth-child(3) .cw-cat__icono { background: var(--lima-claro); color: var(--lima-oscuro); }
.cw-cat:nth-child(4) .cw-cat__icono { background: var(--amarillo-claro); color: var(--grafito); }

.cw-cat[aria-pressed="true"] .cw-cat__icono { background: var(--accion); color: var(--accion-texto); }

.cw-cat__titulo {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.cw-cat__detalle {
  display: block;
  margin-top: 2px;
  color: var(--texto-secundario);
  font-size: var(--t-chico);
  line-height: 1.35;
}

.cw-main { min-width: 0; padding: clamp(18px, 2.4vw, 40px); scroll-margin-top: calc(var(--alto-header) + 28px); }
.cw-main:focus { outline: none; }

.cw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: clamp(180px, 30vw, 380px);
  color: var(--texto-secundario);
  text-align: center;
}

.cw-empty__circulo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--petroleo-claro);
  color: var(--petroleo-profundo);
}

/* Flecha horizontal en escritorio; hacia abajo cuando la lista queda arriba */
@media (max-width: 899px) {
  .cw-empty__circulo .icono { transform: rotate(-90deg); }
}

.cw-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 22px;
}

.cw-step:focus,
.cw-res-head h3:focus { outline: none; }

.cw-pill {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--petroleo-claro);
  color: var(--petroleo-profundo);
  font-family: var(--fuente-texto);
  font-size: var(--t-chico);
  font-weight: 700;
  letter-spacing: 0;
}

.cw-grid { display: grid; gap: 16px; }

@media (min-width: 640px) {
  .cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cw-field { display: block; min-width: 0; }

.cw-field__rotulo {
  display: block;
  margin-bottom: 6px;
  font-size: var(--t-chico);
  font-weight: 700;
}

/* 16px evita el zoom automático de iOS al enfocar un campo */
.cw-field input,
.cw-field select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio-s);
  background-color: var(--superficie);
  color: var(--texto);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cw-field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23007A7B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.cw-field input:hover,
.cw-field select:hover { border-color: var(--petroleo-profundo); }

.cw-field input:focus,
.cw-field select:focus {
  border-color: var(--accion);
  outline: none;
  box-shadow: var(--foco-anillo);
}

.cw-field input:disabled,
.cw-field select:disabled { border-color: var(--borde); background-color: var(--gris-claro); color: var(--deshabilitado-texto); cursor: not-allowed; }

.cw-sub { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--borde); }
.cw-sub h4 { margin-bottom: 14px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }

.cw-full { grid-column: 1 / -1; }

.cw-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--petroleo-suave);
  border-radius: 0 var(--radio-s) var(--radio-s) 0;
  background: var(--petroleo-claro);
  color: var(--petroleo-profundo);
  font-size: var(--t-chico);
}

.cw-enviar { padding-top: 18px; }

.cw-legal { margin-top: 10px; color: var(--texto-secundario); font-size: var(--t-chico); text-align: center; }

.cw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 14px;
  border: 1.5px solid transparent;
  border-radius: var(--radio-s);
  font-family: var(--fuente-titulo);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.cw-btn:disabled,
.cw-btn[aria-disabled="true"] { border-color: transparent; background: var(--deshabilitado-fondo); color: var(--deshabilitado-texto); cursor: not-allowed; }

.cw-btn--principal { background: var(--accion); color: var(--accion-texto); }
.cw-btn--principal:hover { background: var(--accion-hover); }
.cw-btn--principal:active { background: var(--accion-activa); }

/* WhatsApp conserva el lima: acento reconocible para ese canal */
.cw-btn--wa { margin-top: 10px; background: var(--lima); color: var(--grafito); }
.cw-btn--wa:hover { background: var(--lima-profundo); }
.cw-btn--wa:active { background: var(--lima-suave); }

.cw-btn--pdf { margin-top: 12px; border-color: var(--petroleo-suave); background: var(--superficie); color: var(--texto-marca); }
.cw-btn--pdf:hover { border-color: var(--accion); background: var(--petroleo-claro); }

.cw-btn--otra { margin-top: 12px; border-color: var(--borde); background: var(--superficie); color: var(--texto); }
.cw-btn--otra:hover { border-color: var(--borde-control); background: var(--gris-claro); }

/* Tabla de capacidades */

.cw-captitle { margin-bottom: 8px; font-weight: 800; }

.cw-capscroll {
  overflow-x: auto;
  border: 1px solid var(--borde);
  border-radius: var(--radio-s);
  -webkit-overflow-scrolling: touch;
}

.cw-capscroll table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: var(--t-chico); }

.cw-capscroll th {
  padding: 10px;
  background: var(--petroleo-claro);
  color: var(--petroleo-profundo);
  font-family: var(--fuente-titulo);
  font-weight: 600;
  text-align: center;
}

.cw-capscroll td { padding: 8px 10px; border-top: 1px solid var(--borde); text-align: center; }

.cw-capscroll th[scope="row"] {
  background: var(--gris-claro);
  color: var(--grafito);
  text-align: left;
  white-space: nowrap;
  border-top: 1px solid var(--borde);
}

.cw-capnote { margin-top: 6px; color: var(--texto-secundario); font-size: var(--t-chico); }

/* Resultado */

.cw-res-head { margin-bottom: 22px; text-align: center; }

.cw-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--lima-claro);
  color: var(--grafito);
}

.cw-box {
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid var(--borde);
  border-radius: var(--radio-m);
  background: var(--gris-claro);
}

.cw-box--mejor { border: 1.5px solid var(--accion); background: var(--petroleo-claro); }
.cw-box--comparar { margin-top: 14px; }

.cw-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cw-fila--resumen { padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--borde); }
.cw-fila--etiquetas { margin-bottom: 10px; }

.cw-derecha { text-align: right; }

.cw-sobre { color: var(--texto-secundario); font-size: var(--t-chico); letter-spacing: 0.06em; text-transform: uppercase; }

.cw-nombre { font-size: 1.125rem; font-weight: 800; }
.cw-nombre--grande { font-size: 1.25rem; }
.cw-nombre--tarjeta { font-size: 1rem; font-weight: 800; }

.cw-big {
  color: var(--petroleo);
  font-family: var(--fuente-titulo);
  font-size: 1.625rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cw-big--media { font-size: 1.1875rem; }

.cw-muted { color: var(--texto-secundario); font-size: var(--t-chico); }
.cw-muted b { color: var(--grafito); }
.cw-mes { font-family: var(--fuente-texto); font-weight: 400; letter-spacing: 0; color: var(--texto-secundario); font-size: var(--t-chico); }

.cw-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 8px 0 2px; }

.cw-linea {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--borde);
  color: var(--texto-secundario);
  font-size: var(--t-chico);
}

.cw-box--mejor .cw-linea { border-top-color: var(--borde-marca); }

.cw-linea span:last-child { flex: none; color: var(--grafito); font-weight: 700; }

.cw-linea--total { color: var(--grafito); font-weight: 800; }
.cw-linea--total span:last-child { color: var(--petroleo-profundo); font-size: 1.125rem; font-weight: 900; }

.cw-tag-mejor,
.cw-tag-ok {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: var(--t-chico);
  font-weight: 700;
}

.cw-tag-mejor { background: var(--accion); color: var(--accion-texto); }
.cw-tag-ok { background: var(--lima-claro); color: var(--grafito); }

.cw-space > * + * { margin-top: 14px; }

.cw-alts { display: grid; gap: 12px; }

@media (min-width: 560px) {
  .cw-alts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cw-alt { padding: 14px; border: 1px solid var(--borde); border-radius: var(--radio-s); background: var(--gris-claro); }
.cw-alt--elegida { border: 1.5px solid var(--accion); background: var(--petroleo-claro); }

.cw-comparar-titulo { margin-bottom: 10px; font-weight: 800; }
.cw-comparar-nota { margin-top: 10px; }

.cw-ext-precios { margin-top: 10px; }
.cw-ext-total { margin-top: 4px; }
.cw-ext-total > span:first-child { color: var(--grafito); font-weight: 700; }

.cw-disclaimer {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-s);
  background: var(--blanco);
  color: var(--texto-secundario);
  font-size: var(--t-chico);
}

.cw-warn {
  padding: 14px;
  border: 1px solid var(--amarillo-suave);
  border-left: 3px solid var(--amarillo);
  border-radius: var(--radio-s);
  background: var(--amarillo-claro);
}

.cw-warn__detalle { margin-top: 4px; }

@media (max-width: 479px) {
  /* En teléfonos el total baja bajo el nombre y se alinea a la izquierda */
  .cw-derecha { width: 100%; text-align: left; }
}
