/* Fraude.org.mx — hoja de estilos base */
:root {
  --navy-900: #0B1B33;
  --navy-800: #12284A;
  --navy-700: #1B3A66;
  --navy-100: #E6ECF5;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #5B6B80;
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --line: #D9DEE6;
  --line-2: #EDF0F4;
  --alert: #A4161A;
  --alert-bg: #FBECEC;
  --amber: #8A5A00;
  --amber-bg: #FFF4DC;
  --green: #1E6B3A;
  --green-bg: #E5F3EA;
  --ring: #2D5DA8;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Barra de aviso */
.notice { background: var(--navy-900); color: #C9D4E5; font-size: 13px; }
.notice .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.notice a { color: #E8EEF7; text-decoration: none; }
.notice a:hover { text-decoration: underline; color: #fff; }
.notice nav { display: flex; gap: 18px; }

/* Encabezado */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font: 700 22px/1 var(--serif); letter-spacing: -0.01em; }
.brand-name span { color: var(--alert); }
.brand-sub { display: block; font: 500 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 10px 12px; font-weight: 500; font-size: 15px; color: var(--ink-2); text-decoration: none; border-radius: var(--r); }
.menu a:hover { background: var(--line-2); color: var(--ink); }
.menu a[aria-current] { color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--navy-900); border-radius: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-alert { background: var(--alert); color: #fff; }
.btn-alert:hover { background: #861114; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r); width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

/* Portada */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 64px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--alert); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero h1 { font: 700 clamp(36px, 5vw, 58px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 18px 0 16px; color: var(--navy-900); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 58ch; margin: 0 0 28px; }

.search { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06); }
.search-row { display: flex; gap: 8px; }
.search select, .search input { font: 400 16px/1.2 var(--sans); color: var(--ink); border: 0; background: transparent; min-height: 52px; }
.search select { padding: 0 32px 0 12px; border-right: 1px solid var(--line); appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235B6B80' stroke-width='1.75'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.search input { flex: 1; min-width: 0; padding: 0 12px; }
.search input:focus, .search select:focus { outline: none; }
.search:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(45,93,168,.18); }
.search .btn { min-height: 52px; padding: 0 22px; }
.search-hint { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13px; text-decoration: none; }
.chip:hover { border-color: var(--navy-700); color: var(--navy-900); }

.ledger { background: var(--navy-900); color: #DCE4F0; border-radius: 10px; padding: 28px; position: relative; overflow: hidden; }
.ledger::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.04) 31px 32px); pointer-events: none; }
.ledger h2 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #9FB2CE; margin: 0 0 20px; }
.ledger ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
.ledger li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.ledger .num { font: 500 13px/36px var(--mono); text-align: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; }
.ledger strong { display: block; color: #fff; font: 600 17px/1.3 var(--serif); margin-bottom: 2px; }
.ledger p { margin: 0; font-size: 14px; line-height: 1.5; color: #B9C6D9; }
.ledger .foot { position: relative; z-index: 1; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: #9FB2CE; }

/* Secciones */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--serif); letter-spacing: -0.01em; margin: 10px 0 0; color: var(--navy-900); }
.section-head p { margin: 8px 0 0; color: var(--ink-3); max-width: 60ch; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 44px; }

/* Expedientes */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .18s ease, box-shadow .18s ease; }
.case:hover { border-color: var(--navy-700); box-shadow: 0 6px 20px rgba(15,23,42,.08); color: inherit; }
.case-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px dashed var(--line); font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.case-body { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px; }
.case-photo { width: 72px; height: 88px; border-radius: 4px; background: var(--navy-100); color: #8DA0BC; display: grid; place-items: center; }
.case-photo .icon { width: 36px; height: 36px; stroke-width: 1.25; }
.case h3 { font: 600 19px/1.25 var(--serif); margin: 0 0 6px; color: var(--ink); }
.case .alias { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.case dt { color: var(--ink-3); }
.case dd { margin: 0; color: var(--ink-2); font-weight: 500; }
.case-foot { margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.case-foot .src { display: inline-flex; align-items: center; gap: 6px; }
.case-foot .src .icon { width: 16px; height: 16px; color: var(--green); }
.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.2 var(--sans); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-denuncia { background: var(--amber-bg); color: var(--amber); }
.status-proceso { background: var(--alert-bg); color: var(--alert); }
.status-sentencia { background: var(--navy-100); color: var(--navy-800); }
.sample { font: 600 10px/1 var(--sans); letter-spacing: .12em; padding: 4px 7px; border-radius: 3px; background: #FDE68A; color: #6B4E00; }

/* Modalidades */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.type { background: var(--surface); padding: 22px 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; min-height: 150px; transition: background .18s ease; }
.type:hover { background: #F4F7FB; color: inherit; }
.type .icon { width: 28px; height: 28px; color: var(--navy-700); stroke-width: 1.5; }
.type h3 { font: 600 17px/1.3 var(--serif); margin: 0; color: var(--ink); }
.type p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* Método */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: paso; }
.step { border-top: 2px solid var(--navy-900); padding-top: 18px; }
.step-n { font: 500 13px/1 var(--mono); color: var(--alert); letter-spacing: .06em; }
.step h3 { font: 600 20px/1.25 var(--serif); margin: 10px 0 8px; color: var(--navy-900); }
.step p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Llamado */
.cta { background: var(--navy-900); color: #DCE4F0; border-radius: 12px; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--serif); color: #fff; margin: 0 0 12px; }
.cta p { margin: 0; color: #B9C6D9; }
.cta ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.cta li { display: flex; gap: 10px; align-items: flex-start; }
.cta li .icon { color: #F2B8B9; margin-top: 2px; width: 18px; height: 18px; }
.cta-actions { display: grid; gap: 12px; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn-ghost:hover { border-color: #fff; }
.cta small { color: #9FB2CE; font-size: 13px; }

/* Pie */
.footer { background: #08142A; color: #9FB2CE; font-size: 14px; padding: 56px 0 28px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #C9D4E5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand-sub { color: #7F93B2; }
.disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; line-height: 1.6; color: #7F93B2; display: grid; gap: 8px; }
.disclaimer p { margin: 0; max-width: 110ch; }

/* Responsivo */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu, .header .btn { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .header.open .menu { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .cta { grid-template-columns: 1fr; padding: 32px 24px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .notice .wrap { flex-direction: column; gap: 4px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .search-row { flex-wrap: wrap; }
  .search select { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .search .btn { width: 100%; }
  .cases, .types, .method, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .ledger { padding: 22px; }
  .header .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
