/* ============================================================
   LEXGO — Página pública de reclutamiento de abogados
   (abogados.html). Complementa css/styles.css.
   ============================================================ */

.btn-ghost-nav {
  background: transparent;
  color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 14px;
  padding: 9px 16px;
}
.btn-ghost-nav:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Hero ---------- */
.ab-hero {
  background:
    radial-gradient(1000px 480px at 12% -10%, rgba(37, 99, 235, .32), transparent 60%),
    radial-gradient(760px 420px at 92% 8%, rgba(212, 175, 55, .18), transparent 62%),
    var(--navy);
  color: #fff;
  padding: 84px 0 96px;
}

.ab-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.ab-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin: 18px 0 18px;
  color: #fff;
}
.ab-hero h1 .accent { color: var(--gold); font-style: italic; }

.ab-hero .lead {
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 28px;
}

.ab-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }

.ab-hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.ab-hero-stats div { display: flex; flex-direction: column; }
.ab-hero-stats strong {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  line-height: 1.1;
}
.ab-hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .62); }

/* ---------- Vista previa del portal ---------- */
.ab-preview {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.ab-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: var(--navy-800);
}
.ab-preview-bar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.ab-preview-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .06em;
}

.ab-preview-body { padding: 16px; }

.ab-prev-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.ab-online { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--success); }
.ab-online i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}
.ab-prev-earn { color: var(--gray); }

.ab-prev-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
}
.ab-prev-card.new {
  border-color: rgba(37, 99, 235, .4);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
.ab-prev-card p { font-size: 13.5px; color: var(--navy); margin: 8px 0 11px; }

.ab-prev-top { display: flex; justify-content: space-between; align-items: center; }
.ab-prev-time { font-size: 11.5px; color: var(--gray); }

.ab-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gray-200);
  color: var(--navy);
}
.ab-tag.laboral   { background: #DBEAFE; color: #1D4ED8; }
.ab-tag.familia   { background: #FCE7F3; color: #BE185D; }
.ab-tag.civil     { background: #E0E7FF; color: #4338CA; }
.ab-tag.penal     { background: #FEE2E2; color: #B91C1C; }
.ab-tag.comercial { background: #D1FAE5; color: #047857; }
.ab-tag.transito  { background: #FEF3C7; color: #B45309; }
.ab-tag.tributario{ background: #E0F2FE; color: #0369A1; }
.ab-tag.migratorio{ background: #EDE9FE; color: #6D28D9; }

.ab-prev-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--gray);
}
.ab-prev-foot b { color: var(--navy); }
.ab-prev-btn {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 999px;
}

/* ---------- Tarjetas de beneficios ---------- */
.ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.ab-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ab-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, .3);
}
.ab-card h3 { font-size: 18px; margin-bottom: 8px; }
.ab-card p { font-size: 14.5px; color: var(--gray); }

.ab-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 15px;
}
.ab-ico svg { width: 22px; height: 22px; }

/* ---------- Pasos ---------- */
.ab-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  counter-reset: paso;
}
.ab-steps li {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
}
.ab-step-n {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 13px;
}
.ab-steps h3 { font-size: 16.5px; margin-bottom: 6px; }
.ab-steps p { font-size: 14px; color: var(--gray); }

/* ---------- Requisitos + ganancias ---------- */
.ab-req-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
}

.ab-check { list-style: none; margin: 22px 0; }
.ab-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  font-size: 15px;
  color: var(--navy);
}
.ab-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.ab-note {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 15px 18px;
  font-size: 14px;
  color: var(--navy);
}

.ab-money {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-lg);
}
.ab-money h3 { font-size: 22px; color: #fff; margin-bottom: 4px; }
.ab-money-sub { font-size: 14px; color: rgba(255, 255, 255, .65); margin-bottom: 18px; }

.ab-money-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ab-money-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.ab-money-table th:last-child, .ab-money-table td:last-child { text-align: right; }
.ab-money-table td {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
}
.ab-money-table td b { color: var(--gold); font-size: 15.5px; }

.ab-money-foot { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 18px; }
.ab-money-foot b { color: #fff; }

/* ---------- Formulario ---------- */
.ab-form-wrap { max-width: 780px; }

.ab-form {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.ab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.ab-form .field label em {
  font-style: normal;
  font-weight: 400;
  color: var(--gray);
  font-size: 12.5px;
}

.ab-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  resize: vertical;
  color: var(--navy);
  background: #fff;
}
.ab-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.counter { display: block; text-align: right; font-size: 12px; color: var(--gray); margin-top: 4px; }

/* Mensajes de error: ocultos hasta que el campo se marque como inválido */
.field .err { display: none; font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.field.invalid .err { display: block; }
.field.invalid input,
.field.invalid textarea { border-color: var(--danger); }
.field.invalid .chip-select { outline: 1px solid var(--danger); outline-offset: 4px; border-radius: var(--radius); }

.err-block { display: none; font-size: 12.5px; color: var(--danger); margin: -8px 0 14px 30px; }
.err-block.show { display: block; }

/* Chips de selección múltiple */
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip-select button {
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  transition: all .15s;
}
.chip-select button:hover { border-color: var(--blue); color: var(--blue); }
.chip-select button.on {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
  font-weight: 600;
}
.chip-select button.shake { animation: abShake .4s; }
@keyframes abShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.ab-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--gray);
  margin: 8px 0 18px;
  cursor: pointer;
  line-height: 1.55;
}
.ab-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.ab-consent a { color: var(--blue); text-decoration: underline; }
.ab-consent.invalid span { color: var(--danger); }

.ab-submit { width: 100%; justify-content: center; font-size: 16px; padding: 14px; }

.ab-form-note { text-align: center; font-size: 12.5px; color: var(--gray); margin-top: 12px; }

.ab-form-error {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 13.5px;
  text-align: center;
}

/* ---------- Éxito ---------- */
.ab-success {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.ab-success-ico {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(22, 163, 74, .12);
  color: var(--success);
  margin: 0 auto 18px;
}
.ab-success-ico svg { width: 28px; height: 28px; }
.ab-success h3 { font-size: 25px; margin-bottom: 12px; }
.ab-success p { color: var(--gray); max-width: 480px; margin: 0 auto 14px; }
.ab-success-next {
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--navy) !important;
  margin-bottom: 24px !important;
}
.ab-success-next a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ---------- FAQ ---------- */
.ab-faq { max-width: 780px; }
.ab-faq details {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.ab-faq details[open] { border-color: rgba(37, 99, 235, .32); }
.ab-faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -2px;
  font-size: 21px;
  color: var(--blue);
  font-weight: 400;
}
.ab-faq details[open] summary::after { content: "−"; }
.ab-faq details p { color: var(--gray); font-size: 14.5px; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ab-hero-grid, .ab-req-grid { grid-template-columns: 1fr; gap: 40px; }
  .ab-preview { transform: none; }
  .ab-hero { padding: 60px 0 68px; }
}

@media (max-width: 640px) {
  .ab-row { grid-template-columns: 1fr; gap: 0; }
  .ab-form { padding: 22px 18px; }
  .ab-hero-stats { gap: 22px; }
  .ab-hero-stats strong { font-size: 25px; }
  .ab-money { padding: 24px 20px; }
  .ab-money-table { font-size: 13.5px; }
}
