/* PQRS Casa Inglesa — estilo público. Marca del sitio: Montserrat, negro, gris #7A7A7A y rojo #D41D18 (solo acentos). */
:root {
  --rojo: #D41D18; --tinta: #1d1d1b; --texto: #3c3c3b; --gris: #7a7a7a; --linea: #dcdcdc; --suave: #f5f5f4;
  --ok: #1f7a3f; --error: #b3261e; --radio: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: #fff; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.envoltura { max-width: 820px; margin: 0 auto; padding: 32px 20px 56px; }
body.incrustado .envoltura { padding-top: 8px; }
body.incrustado .cabecera { display: none; }

.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--linea); }
.cabecera .logo { display: flex; align-items: flex-end; gap: 7px; }
.cabecera .logo img { height: 24px; width: auto; display: block; }
@media (max-width: 480px) { .cabecera .logo img { height: 18px; } }
.cabecera nav a { display: inline-block; color: var(--rojo); font-weight: 700; font-size: 14px; text-decoration: none; border: 2px solid var(--rojo); border-radius: var(--radio); padding: 8px 16px; transition: background .15s, color .15s; }
.cabecera nav a:hover { background: var(--rojo); color: #fff; }
@media (max-width: 480px) { .cabecera nav a { font-size: 13px; padding: 7px 12px; } }

h1 { font-size: 28px; line-height: 1.2; color: var(--tinta); margin: 0 0 10px; font-weight: 800; letter-spacing: -.01em; }
.ya-radicaste { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; background: var(--suave);
  border-radius: var(--radio); padding: 14px 16px; margin: -10px 0 30px; color: var(--tinta); font-weight: 600; }
.ya-radicaste .boton { padding: 10px 20px; }
.intro { margin: 0 0 28px; color: var(--texto); max-width: 640px; }
.intro a { color: var(--tinta); font-weight: 600; }

fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
legend { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); padding: 0; margin-bottom: 16px; width: 100%; }
legend span { color: var(--tinta); }

.rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.rejilla .ancho { grid-column: 1 / -1; }
@media (max-width: 640px) { .rejilla { grid-template-columns: 1fr; } h1 { font-size: 24px; } }

.campo label, .campo .etiqueta { display: block; font-weight: 600; font-size: 14px; color: var(--tinta); margin-bottom: 6px; }
.campo .opcional { color: var(--gris); font-weight: 500; }
.campo .ayuda { display: block; font-size: 13px; color: var(--gris); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--tinta); background: #fff; border: 1px solid #c9c9c9; border-radius: var(--radio);
  padding: 11px 12px; min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(29,29,27,.12); }
.campo.con-error input, .campo.con-error select, .campo.con-error textarea { border-color: var(--error); }
.campo .msg-error { display: none; color: var(--error); font-size: 13px; margin-top: 5px; font-weight: 500; }
.campo.con-error .msg-error { display: block; }

/* Selector segmentado (persona natural / empresa) */
.segmento { display: inline-flex; border: 1px solid #c9c9c9; border-radius: var(--radio); overflow: hidden; }
.segmento label { margin: 0; cursor: pointer; }
.segmento input { position: absolute; opacity: 0; pointer-events: none; }
.segmento span { display: block; padding: 10px 20px; font-weight: 600; font-size: 14px; color: var(--texto); }
.segmento input:checked + span { background: var(--tinta); color: #fff; }
.segmento input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--rojo); }

/* Tipo de solicitud: tarjetas */
.tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .tipos { grid-template-columns: 1fr 1fr; } }
.tipo { position: relative; cursor: pointer; }
.tipo input { position: absolute; opacity: 0; }
.tipo div { border: 1px solid #c9c9c9; border-radius: var(--radio); padding: 12px 12px 11px; height: 100%; transition: border-color .15s; }
.tipo strong { display: block; color: var(--tinta); font-size: 14px; }
.tipo small { display: block; color: var(--gris); font-size: 12.5px; line-height: 1.35; margin-top: 3px; }
.tipo:hover div { border-color: var(--tinta); }
.tipo input:checked + div { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.tipo input:checked + div strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); margin-right: 7px; vertical-align: 2px; }
.tipo input:focus-visible + div { outline: 2px solid var(--rojo); outline-offset: 2px; }

.bloque-vehiculo { display: none; background: var(--suave); border-radius: var(--radio); padding: 16px; }
.bloque-vehiculo.visible { display: block; }
.bloque-vehiculo p { margin: 0 0 12px; font-size: 13.5px; }
.contador { float: right; font-weight: 500; color: var(--gris); font-size: 12.5px; }

/* Adjuntos */
.zona { border: 1px dashed #b5b5b5; border-radius: var(--radio); padding: 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.zona:hover, .zona.encima { border-color: var(--tinta); background: var(--suave); }
.zona strong { color: var(--tinta); }
.zona input { display: none; }
.archivos { list-style: none; margin: 10px 0 0; padding: 0; }
.archivos li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--linea); border-radius: var(--radio); padding: 8px 12px; margin-top: 6px; font-size: 14px; }
.archivos li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archivos li small { color: var(--gris); margin-left: 6px; }
.archivos button { border: 0; background: none; color: var(--gris); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--tinta); flex: none; }
.check a { color: var(--tinta); font-weight: 600; }
.campo label.check { display: flex; font-weight: 500; color: var(--texto); font-size: 13.5px; margin-bottom: 0; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; border-radius: var(--radio);
  padding: 14px 30px; border: 2px solid var(--rojo); background: var(--rojo); color: #fff; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.boton:hover { background: #b01813; border-color: #b01813; }
.boton.secundario { background: #fff; color: var(--rojo); }
.boton.secundario:hover { background: var(--rojo); color: #fff; }
.boton:disabled { opacity: .55; cursor: wait; }
.acciones { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.nota { font-size: 13px; color: var(--gris); }

.alerta { border-radius: var(--radio); padding: 12px 14px; margin: 0 0 20px; font-size: 14px; display: none; }
.alerta.visible { display: block; }
.alerta.error { background: #fbeae9; color: var(--error); }
.alerta.ok { background: #e9f4ec; color: var(--ok); }
.progreso { height: 4px; background: var(--linea); border-radius: 2px; overflow: hidden; width: 180px; display: none; }
.progreso.visible { display: block; }
.progreso i { display: block; height: 100%; width: 0; background: var(--tinta); transition: width .2s; }

/* Confirmación y consulta */
.tarjeta { border: 1px solid var(--linea); border-radius: 10px; padding: 26px; }
.radicado { font-size: 30px; font-weight: 800; color: var(--tinta); letter-spacing: .02em; margin: 4px 0 6px; }
.dato { color: var(--gris); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.estado { display: inline-block; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid currentColor; }
.estado.abierto { color: var(--tinta); }
.estado.en-tramite { color: #8a5a00; }
.estado.cerrada { color: var(--ok); }
.linea-tiempo { list-style: none; padding: 0; margin: 18px 0 0; border-left: 2px solid var(--linea); }
.linea-tiempo li { position: relative; padding: 0 0 16px 18px; }
.linea-tiempo li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--tinta); }
.linea-tiempo time { display: block; font-size: 12.5px; color: var(--gris); }
.respuesta { white-space: pre-wrap; border-left: 3px solid var(--rojo); padding: 4px 0 4px 14px; margin: 10px 0 0; color: var(--tinta); }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
