/* ---------- Cotizador de auto ---------- */
.cotizador {
  margin: 38px 0 12px; padding: 28px 28px 26px;
  background: var(--gris-suave); border: 1px solid var(--linea); border-top: 3px solid var(--dorado);
  border-radius: 4px; scroll-margin-top: 24px;
}
.seguro .cotizador h2 { margin-top: 0; }
.cotizador .cot-intro { margin: 0 0 22px; color: #4a4650; font-size: .98rem; }
.cot-bloque { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.cot-bloque legend {
  font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.02rem;
  color: var(--violeta); padding: 0; margin-bottom: 12px;
}
.cot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.cot-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cot-campo.ancho { grid-column: 1 / -1; }
.cot-campo[hidden] { display: none; }
.cot-campo label { font-size: .88rem; font-weight: 600; color: var(--grafito); line-height: 1.3; }
.cot-campo label small { font-weight: 400; color: #77727f; font-size: .85rem; }
.cot-campo select, .cot-campo input, .cot-campo textarea {
  font: inherit; font-size: .98rem; line-height: 1.4; color: var(--texto);
  background: #fff; border: 1px solid #cfcad6; border-radius: 4px;
  padding: 11px 12px; min-height: 46px; width: 100%; min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
.cot-campo textarea { min-height: 84px; resize: vertical; }
.cot-campo select:disabled { background: #efedf2; color: #8a8592; cursor: not-allowed; }
.cot-campo select:focus, .cot-campo input:focus, .cot-campo textarea:focus {
  outline: 0; border-color: var(--dorado); box-shadow: 0 0 0 3px rgba(217, 154, 0, .25);
}
.cot-vista {
  background: #fff; border: 1px solid var(--linea); border-left: 3px solid var(--violeta);
  border-radius: 4px; padding: 14px 18px; margin: 0 0 18px;
}
.cot-vista h3 {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 600;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #77727f; margin: 0 0 6px;
}
.cot-vista pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .93rem; line-height: 1.55; color: var(--texto);
}
.cot-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cot-acciones .boton-wa[aria-disabled="true"] {
  background: #cfcad6; color: #6a6a6a; border-bottom-color: #bdb7c6; pointer-events: none; cursor: not-allowed;
}
.cot-acciones .boton-wa:focus-visible, .cot-copiar:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }
.cot-copiar {
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--violeta); border: 1px solid #cfcad6; border-radius: 4px; padding: 13px 20px;
  transition: border-color .2s, background .2s;
}
.cot-copiar:hover { border-color: var(--violeta); background: #faf9fb; }
.cot-ayuda { margin: 12px 0 0; min-height: 1.4em; font-size: .88rem; color: #5b5663; }
.cot-ayuda.pendiente { color: #7a5200; }
.cot-nota { margin: 16px 0 0; font-size: .82rem; color: #77727f; }

/* Página "Cotizar" */
.pagina-cotizar { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.pagina-cotizar h1 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 600;
  font-size: 2.3rem; color: var(--violeta); line-height: 1.2;
}
.pagina-cotizar h1::after { content: ""; display: block; width: 56px; height: 3px; background: var(--dorado); margin: 16px 0 26px; }
.pagina-cotizar .intro { font-size: 1.1rem; margin-bottom: 8px; }
.pagina-cotizar .cotizador { margin-top: 28px; }
.pagina-cotizar .otro-seguro { margin-top: 28px; font-size: .95rem; color: #4a4650; }
.pagina-cotizar .otro-seguro a { color: var(--violeta); font-weight: 600; }
@media (max-width: 820px) { .pagina-cotizar { padding: 36px 20px 56px; } .pagina-cotizar h1 { font-size: 1.9rem; } }

@media (max-width: 560px) {
  .cotizador { padding: 22px 18px 20px; }
  .cot-grid { grid-template-columns: minmax(0, 1fr); }
  .cot-acciones .boton-wa, .cot-copiar { width: 100%; justify-content: center; }
}

/* ---------- Envío de póliza (PDF) ---------- */
.poliza {
  margin-top: 34px; padding: 26px 28px 22px; background: #fff;
  border: 1px solid var(--linea); border-left: 3px solid var(--violeta); border-radius: 4px;
}
.pagina-cotizar .poliza h2 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.3rem;
  color: var(--violeta); margin: 0 0 6px; line-height: 1.3;
}
.poliza .pol-texto { font-size: 1.05rem; margin: 0 0 18px; color: var(--texto); }
.poliza .cot-acciones { margin-top: 16px; }
.poliza input[type="file"] {
  font: inherit; font-size: .95rem; color: var(--texto); background: var(--gris-suave);
  border: 1px dashed #b9b3c4; border-radius: 4px; padding: 12px; width: 100%; min-width: 0; cursor: pointer;
}
.poliza input[type="file"]:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }
.poliza input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; color: var(--violeta); background: #fff;
  border: 1px solid #cfcad6; border-radius: 4px; padding: 8px 14px; margin-right: 12px; cursor: pointer;
}
button.boton-poliza { border: 0; border-bottom: 3px solid var(--dorado); font-family: inherit; cursor: pointer; }
button.boton-poliza[aria-disabled="true"] {
  background: #cfcad6; color: #6a6a6a; border-bottom-color: #bdb7c6; cursor: not-allowed; transform: none;
}
button.boton-poliza:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }
.cot-ayuda.error { color: #a1260f; }
@media (max-width: 560px) {
  .poliza { padding: 22px 18px 18px; }
  button.boton-poliza { width: 100%; justify-content: center; }
}
