/* ==========================================================
   ARCHIVO: css/components.css
   CONTENIDO: Piezas reutilizables en varias páginas: botones, preguntas frecuentes, pasos, chips, tarjetas
   Sitio: Clásica de Seguridad Ltda.
   ========================================================== */

/* ---------- BOTONES ----------
   Botones y enlaces con aspecto de botón (.btn y sus variantes).
   ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn-primary {
  background: var(--signal);
  color: var(--signal-ink);
}
.btn-primary:hover {
  background: #ffbb1f;
  color: var(--signal-ink);
}
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover {
  background: #003a7a;
  color: #fff;
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--mist);
}
.btn-wa {
  background: #128c4a;
  color: #fff;
}
.btn-wa:hover {
  background: #0f7a40;
  color: #fff;
}
.btn-wa .icon {
  fill: #fff;
  stroke: none;
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

/* ---------- TEXTO DESTACADO ----------
   Párrafo grande bajo el título principal (Inicio y 404).
   ---------- */
.lead {
  font-size: 1.15rem;
  color: #cbd6e3;
  max-width: 56ch;
}

/* ---------- PROCESO (SECUENCIA REAL) ----------
   Pasos numerados (Inicio y Empleo).
   ---------- */
.steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-top: 3.2rem;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 3rem;
  right: -1rem;
  height: 2px;
  background: var(--line);
}
.steps li:last-child::after {
  display: none;
}
.steps p {
  color: var(--muted);
  margin: 0;
}

/* ---------- POR QUÉ ELEGIRNOS ----------
   Bloques de argumentos con borde lateral (Inicio y Nosotros).
   ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 3rem;
}
.why div {
  border-left: 4px solid var(--navy);
  padding-left: 1.1rem;
}
.why p {
  color: var(--muted);
  margin: 0;
}

/* ---------- CHIPS DE MUNICIPIOS ----------
   Etiquetas redondeadas con los municipios (Inicio y Cobertura).
   ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
}
.chips li {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.95rem;
}
.chips-light li {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

/* ---------- PREGUNTAS FRECUENTES ----------
   Acordeón de preguntas (<details>). Se usa en Inicio y Servicios.
   ---------- */
.faq {
  max-width: 50rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

/* ---------- LLAMADO A LA ACCIÓN ----------
   Banda azul oscura con botón "Solicitar cotización" al final de las páginas.
   ---------- */
.cta {
  background: var(--navy-deep);
  color: #fff;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta h2 {
  color: #fff;
  margin: 0 0 0.4rem;
}
.cta p {
  color: #cbd6e3;
  margin: 0;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- LISTAS CON MARCA DE VERIFICACIÓN ----------
   Listas con ícono de check (Servicios, Nosotros y Empleo).
   ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.6rem;
}
.checklist li {
  display: flex;
  gap: 0.6rem;
}
.checklist .icon {
  color: #14663a;
  margin-top: 0.3em;
}

/* ---------- NOTAS Y TEXTO PEQUEÑO ----------
   Caja de nota legal (.note) y texto auxiliar (.small).
   ---------- */
.note {
  background: var(--mist);
  border-left: 4px solid var(--signal);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.small {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- TARJETA Y LÍNEAS DE CONTACTO ----------
   Tarjeta lateral y líneas con ícono de dirección, teléfono y correo (varias páginas y pie).
   ---------- */
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
}
.contact-lines p {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.contact-lines .icon {
  margin-top: 0.3em;
  color: var(--navy);
}

/* ---------- PAGOS EN LÍNEA ----------
   Tarjeta destacada con el botón de pago por PSE (Inicio). Botón grande .btn-lg.
   ---------- */
.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}
.pay {
  background: var(--mist);
  padding: 2rem 0;
}
.pay-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--signal);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 21, 46, 0.08);
}
.pay-ico {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  background: var(--navy);
  color: var(--signal);
  border-radius: var(--radius);
}
.pay-ico .icon {
  width: 2rem;
  height: 2rem;
}
.pay-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
}
.pay-text h2 {
  margin: 0.1rem 0 0.3rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.pay-text p:last-child {
  margin: 0;
  color: var(--muted);
}
.pay-action {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}
.pay-action small {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 18rem;
}
