/* NOTARÍA 67 — Trámites y detalle de trámite (sobre css/app.css) */

/* Filtro */
.filtro {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  max-width: 560px;
  padding: 0 16px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-3);
}
.filtro:focus-within {
  border-color: var(--primary);
  box-shadow: var(--focus);
}
.filtro i {
  font-size: 19px;
}
.filtro input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}

/* Banda de acción */
.tra-banda {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 18px 20px;
}
.tra-banda .ico {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.tra-banda > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.tra-banda b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.tra-banda small {
  display: block;
  color: var(--tile-hero-2);
  font-size: 14px;
}
.lista .item small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}

/* Requisitos oficiales */
.tra-nota {
  margin: -6px 0 14px;
  color: var(--text-2);
  font-size: 14.5px;
}
.req-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.req-col h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 10px 4px;
  font-size: 15px;
  font-weight: 600;
}
.req-col h3 .mono {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}
.req-col h3 .mono:hover {
  color: var(--text);
}
.faq {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card .faq {
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.faq details + details {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary i {
  flex: none;
  color: var(--text-3);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary i {
  transform: rotate(180deg);
}
.faq summary:hover {
  background: var(--surface-2);
}
.faq details > :not(summary) {
  margin-left: 18px;
  margin-right: 18px;
}
.faq details > :last-child {
  margin-bottom: 16px;
}
.faq details > p {
  color: var(--text-2);
  font-size: 14.5px;
}
.req-sub {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text) !important;
}
.req {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.req li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
}
.req li i {
  flex: none;
  margin-top: 2px;
  font-size: 18px;
  color: var(--accent);
}
.req + .aviso,
.aviso + .aviso {
  margin-top: 12px;
}

/* Detalle */
.tra-hd {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 4px 0 26px;
}
.tra-hd-ico {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 28px;
}
.tra-cat {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
}
.tra-hd h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.tra-hd .lead {
  max-width: 64ch;
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--text-2);
}
.tra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.tra-cuerpo {
  display: grid;
  gap: 14px;
}
.tra-cuerpo .card h2 {
  margin-bottom: 12px;
}
.tra-cuerpo .card h3 {
  margin: 18px 0 10px;
  font-size: 15px;
}
.tra-req-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tra-req-hd h2 {
  margin: 0 !important;
}
.tra-intro {
  margin: 0 0 12px !important;
}
.tra-lado {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}
.tra-accion {
  min-height: 0;
}
.tra-accion h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.tra-accion p {
  margin: 0 0 18px;
}
.tra-accion .boton {
  align-self: flex-start;
}

@media (max-width: 1100px) {
  .tra-grid {
    grid-template-columns: 1fr;
  }
  .tra-lado {
    position: static;
    grid-row: 1;
  }
}
@media (max-width: 900px) {
  .req-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .tra-banda {
    flex-wrap: wrap;
  }
  .tra-banda .boton {
    flex: 1 1 100%;
  }
  .tra-hd {
    flex-direction: column;
    gap: 12px;
  }
  .tra-accion .boton {
    align-self: stretch;
  }
}
