/* ============================================================
   Mi CUIL Online — cuil.css (producción)
   Sistema visual completo. Vanilla CSS, sin dependencias.
   Pensado para PHP + HTML plano. Mobile-ready vía media queries.
   Breakpoint único: 720px.
   ============================================================ */

/* Fuente self-hosted (variable, subset latin → cubre acentos español). Sin request
   externo render-blocking a Google Fonts → mejor LCP/FCP. */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --navy: #2A335C;
  --navy-deep: #222A4D;
  --navy-soft: #3D477A;
  --celeste: #1B9DD9;
  --celeste-dark: #147FB3;
  --celeste-tint: #E3F2FB;
  --celeste-border: #BCDFF2;
  --ambar: #F2A33C;
  --ambar-dark: #E08E1F;
  --ambar-tint: #FDF3E2;
  --ambar-border: #F2DDB2;
  --verde: #27AE60;
  --verde-tint: #E9F7EF;
  --verde-border: #BFE6CE;
  --rojo: #D64545;
  --rojo-tint: #FCEDED;
  --bg: #F7F9FC;
  --bg-hl: #E8F0F6;
  --surface: #FFFFFF;
  --text: #33384D;
  --text-2: #5D6580;
  --tenue: #9AA3B8;
  --border: #DCE2EC;

  /* Forma */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --sh-sm: 0 1px 2px rgba(42, 51, 92, 0.07);
  --sh-md: 0 2px 6px rgba(42, 51, 92, 0.06), 0 8px 24px rgba(42, 51, 92, 0.08);
  --sh-lg: 0 4px 12px rgba(42, 51, 92, 0.08), 0 16px 40px rgba(42, 51, 92, 0.13);

  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--celeste-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }

:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
h1, .h1 { font-size: 36px; line-height: 1.2; font-weight: 700; color: var(--navy); margin: 0 0 12px; letter-spacing: -0.2px; text-wrap: balance; }
.h-display { font-size: 42px; line-height: 1.15; font-weight: 700; color: var(--navy); margin: 0 0 14px; letter-spacing: -0.3px; text-wrap: balance; }
h2, .h2 { font-size: 25px; line-height: 1.3; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
h3, .h3 { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); margin: 0 0 18px; text-wrap: pretty; }
.small { font-size: 14px; color: var(--text-2); }
.micro { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tenue); }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@media (max-width: 720px) {
  h1, .h1 { font-size: 27px; }
  .h-display { font-size: 33px; }
  h2, .h2 { font-size: 21px; }
  .lead { font-size: 16.5px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  height: 48px; padding: 0 24px; border-radius: var(--r-sm);
  border: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ambar); color: var(--navy-deep); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--ambar-dark); }
.btn-secondary { background: var(--surface); color: var(--celeste-dark); border: 1.5px solid var(--celeste); }
.btn-secondary:hover { background: var(--celeste-tint); }
.btn-ghost { background: transparent; color: var(--celeste-dark); padding: 0 12px; }
.btn-lg { height: 56px; font-size: 18px; padding: 0 32px; border-radius: 10px; }
.btn-sm { height: 40px; font-size: 15px; padding: 0 18px; }
.btn-block { width: 100%; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.input {
  font-family: var(--font); font-size: 20px; font-variant-numeric: tabular-nums;
  height: 54px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  outline: none; width: 100%;
}
.input::placeholder { color: var(--tenue); font-size: 18px; }
.input:focus { border-color: var(--celeste); box-shadow: 0 0 0 3px var(--celeste-tint); }
.input--error { border-color: var(--rojo); background: #FFFDFD; }
.input--error:focus { box-shadow: 0 0 0 3px var(--rojo-tint); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--rojo); }
.field-hint { font-size: 13.5px; color: var(--text-2); }

/* Selector segmentado (género) — radios reales, accesibles */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-opt {
  display: inline-flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 15px; font-weight: 600; color: var(--text-2);
  cursor: pointer; white-space: nowrap; user-select: none;
}
.seg-opt:hover { border-color: var(--tenue); }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--tenue); background: #fff; flex: none; transition: border 0.12s; }
.seg-opt:has(input:checked), .seg-opt.on { border-color: var(--celeste); background: var(--celeste-tint); color: var(--celeste-dark); }
.seg-opt:has(input:checked) .seg-dot, .seg-opt.on .seg-dot { border: 5px solid var(--celeste); }
.seg-opt:has(input:focus-visible) { outline: 3px solid var(--celeste); outline-offset: 2px; }
@media (max-width: 720px) { .seg-opt { height: 42px; padding: 0 13px; font-size: 14px; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy); color: #fff;
  display: flex; align-items: center; gap: 32px;
  height: 72px; padding: 0 40px;
  position: sticky; top: 0; z-index: 50;
}
.wordmark { display: flex; align-items: center; gap: 11px; flex: none; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.2px; }
.wordmark-name em { font-style: normal; font-weight: 400; color: #8FCBEA; }
.wordmark-sub { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #9AA3C4; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: #fff; box-shadow: 0 2px 0 var(--ambar); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; padding: 8px; cursor: pointer; }
@media (max-width: 720px) {
  .site-header { height: 62px; padding: 0 18px; gap: 14px; }
  .site-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .wordmark-name { font-size: 17px; }
  .site-header .btn { height: 36px; padding: 0 13px; font-size: 14px; }
}

/* ---------- Drawer mobile ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(34, 42, 77, 0.45); z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--surface); z-index: 61; display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(34, 42, 77, 0.3);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; color: var(--navy); font-size: 17px; }
.drawer-nav { display: flex; flex-direction: column; padding: 10px 8px; gap: 2px; overflow-y: auto; }
.drawer-nav a { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--navy); }
.drawer-nav a:hover, .drawer-nav a.active { background: var(--celeste-tint); text-decoration: none; }
.drawer-nav a svg { color: var(--celeste-dark); }
.drawer-foot { margin-top: auto; padding: 18px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); padding: 14px 0; flex-wrap: wrap; }
.crumbs .sep { color: var(--tenue); }
.crumbs .here { color: var(--tenue); }
@media (max-width: 720px) { .crumbs { font-size: 12.5px; } }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 44px; }
.hero--hl { background: var(--bg-hl); }
@media (max-width: 720px) { .hero { padding: 30px 0 34px; } }

/* ---------- Tarjeta calculadora ---------- */
.calc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 32px; position: relative; overflow: hidden;
}
.calc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--celeste) 0%, var(--celeste) 60%, var(--ambar) 60%); }
.calc-title { font-size: 23px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.calc-sub { font-size: 15.5px; color: var(--text-2); margin: 0 0 22px; }
.calc-form { display: flex; flex-direction: column; gap: 18px; }
.privacy-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.privacy-note svg { flex: none; color: var(--verde); }
@media (max-width: 720px) {
  .calc-card { padding: 24px 20px; }
  .calc-title { font-size: 20px; }
}

/* ---------- Resultados de la calculadora ---------- */
.result { border-radius: var(--r-md); padding: 22px 24px; margin-top: 22px; }
.result--ok { background: var(--verde-tint); border: 1px solid var(--verde-border); }
.result--na { background: var(--bg-hl); border: 1px solid var(--border); }
.result-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--verde); margin-bottom: 6px; }
.result--na .result-label { color: var(--text-2); }
.cuil-num { font-size: 40px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1.15; }
.result-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--celeste-border); background: var(--surface);
  font-size: 15px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; cursor: pointer;
}
.chip:hover { border-color: var(--celeste); background: var(--celeste-tint); }
@media (max-width: 720px) { .cuil-num { font-size: 31px; } }

/* ---------- Cards de acceso (spokes) ---------- */
.spokes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spoke {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--sh-sm); text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.spoke:hover { box-shadow: var(--sh-md); border-color: var(--celeste-border); text-decoration: none; }
.spoke-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--celeste-tint); display: grid; place-items: center; color: var(--celeste-dark); flex: none; }
.spoke-title { display: flex; align-items: center; gap: 6px; font-size: 17.5px; font-weight: 700; color: var(--navy); }
.spoke-title svg { color: var(--tenue); }
.spoke-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.5; margin: 0; }
@media (max-width: 720px) {
  .spokes { grid-template-columns: 1fr; gap: 12px; }
  .spoke { flex-direction: row; align-items: center; padding: 16px 18px; }
}

/* ---------- Bloques de contenido ---------- */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 32px 36px; box-shadow: var(--sh-sm); }
.box ul, .box ol { margin: 0 0 14px; padding-left: 22px; }
.box li { margin-bottom: 6px; }
.box > :last-child { margin-bottom: 0; }
@media (max-width: 720px) { .box { padding: 22px 20px; } }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 13px; padding: 16px 20px; border-radius: var(--r-md); font-size: 15.5px; line-height: 1.55; }
.callout svg { flex: none; margin-top: 2px; }
.callout--info { background: var(--celeste-tint); border: 1px solid var(--celeste-border); }
.callout--info svg { color: var(--celeste-dark); }
.callout--news { background: var(--ambar-tint); border: 1px solid var(--ambar-border); }
.callout--news svg { color: var(--ambar-dark); }
.callout p { margin: 0; }
.tag { display: inline-flex; align-items: center; height: 21px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tag--news { background: var(--ambar); color: var(--navy-deep); }
.tag--info { background: var(--celeste); color: #fff; }

/* ---------- Tablas ---------- */
.tbl-wrap { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 13px 18px; font-size: 15px; }
.tbl th:first-child { background: var(--bg-hl); }
.tbl td { padding: 13px 18px; border-top: 1px solid var(--border); vertical-align: top; }
.tbl td:first-child { font-weight: 600; color: var(--navy); background: var(--bg-hl); width: 180px; }
.tbl tr:nth-child(even) td:not(:first-child) { background: #FBFCFE; }

/* Versión mobile: tarjetas apiladas. Desktop muestra .tbl-wrap, mobile .tbl-cards */
.tbl-cards { display: none; flex-direction: column; gap: 12px; }
.tbl-card { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; box-shadow: var(--sh-sm); }
.tbl-card-head { background: var(--navy); color: #fff; font-weight: 700; font-size: 16px; padding: 12px 18px; }
.tbl-card dl { margin: 0; }
.tbl-card-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 18px; border-top: 1px solid var(--border); font-size: 14.5px; }
.tbl-card-row dt { color: var(--text-2); font-weight: 600; flex: none; }
.tbl-card-row dd { margin: 0; text-align: right; }
@media (max-width: 720px) {
  .tbl-wrap { display: none; }
  .tbl-cards { display: flex; }
}

/* ---------- FAQ (nativo, sin JS: details/summary) ---------- */
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 22px; font-size: 16.5px; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2.2px solid var(--celeste-dark); border-bottom: 2.2px solid var(--celeste-dark);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.18s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq .faq-a { padding: 0 22px 18px; font-size: 15.5px; color: var(--text-2); line-height: 1.6; }
.faq .faq-a p { margin: 0 0 10px; }
.faq .faq-a > :last-child { margin-bottom: 0; }

/* ---------- Publicidad (altura SIEMPRE reservada → cero CLS) ---------- */
.ad-slot {
  background: var(--bg-hl); border-radius: var(--r-sm);
  display: grid; place-items: center; overflow: hidden;
  margin-left: auto; margin-right: auto;
}
/* Ubicación 1 y 2: leaderboard en desktop, rectángulo en mobile */
.ad-slot--lead { width: 728px; height: 90px; max-width: 100%; }
/* Ubicación 3 (pre-footer) y sidebars: rectángulo */
.ad-slot--box { width: 300px; height: 250px; }
.ad-slot--fluid { width: 100%; height: 250px; }
@media (max-width: 720px) {
  .ad-slot--lead { width: 300px; height: 250px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 48px 0 36px; }
.footer-h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9AA3C4; margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14.5px; }
.footer-about { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); margin: 12px 0 0; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 18px 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 0 28px; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}

/* ---------- Utilidades ---------- */
.section { padding: 44px 0; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.pill-nooficial {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.75); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   Glue del sitio ar-cuil (no es del handoff): layout de página,
   stacking de bloques, fallback de tablas en mobile, infografías.
   ============================================================ */
main { display: block; }
/* OJO: usar padding-top/bottom, NO el shorthand (pisaría el padding horizontal de .wrap). */
.page { padding-top: 14px; padding-bottom: 56px; }
.page > * + * { margin-top: 22px; }
.hero { padding: 0px 0 8px; }
.hero .lead, .hero p { max-width: 680px; }

/* Tablas: en mobile, scroll horizontal (no construimos .tbl-cards todavía). */
@media (max-width: 720px) {
  .tbl-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl { min-width: 540px; }
}

/* Lista con viñeta celeste dentro de los box. */
.box ul { list-style: none; padding-left: 4px; }
.box ul li { position: relative; padding-left: 22px; }
.box ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--celeste); }
.box ol { padding-left: 22px; }

/* Infografías (figuras HTML on-brand, livianas, sin CLS). */
/* margin-inline:0 mata SOLO el margen lateral del <figure> (que lo angostaba);
   el margen vertical lo sigue dando .page > * + * (si no, queda pegado al callout). */
.ig { margin-inline: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 28px 30px; }
@media (max-width: 720px) { .ig { padding: 20px 16px; } }
/* Anatomía: SVG que escala a lo ancho (nunca se corta). */
.ig-svg { display: block; width: 100%; height: auto; max-width: 520px; margin: 6px auto 4px; }
.ig-h { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 3px; }
.ig-sub { font-size: 14.5px; color: var(--text-2); margin: 0 0 20px; }
.ig-anat { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ig-seg { border-radius: 14px; padding: 14px 20px; font-size: clamp(26px, 7vw, 46px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1; color: #fff; }
.ig-seg--pref { background: var(--celeste); }
.ig-seg--dni { background: var(--navy); }
.ig-seg--dv { background: var(--ambar); color: var(--navy-deep); }
.ig-dash { font-size: 34px; font-weight: 700; color: var(--tenue); }
.ig-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.ig-lbl { text-align: center; }
.ig-lbl b { display: block; color: var(--navy); font-size: 16px; }
.ig-lbl span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.ig-rows { display: flex; flex-direction: column; gap: 12px; }
.ig-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.ig-row > .ig-case { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-weight: 600; color: var(--navy); font-size: 15px; }
.ig-prefs { display: flex; gap: 7px; }
.ig-pref { color: #fff; border-radius: 9px; padding: 8px 0; width: 48px; text-align: center; font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.ig-note { font-size: 13px; color: var(--text-2); grid-column: 1 / -1; margin-top: -4px; }
.ig-cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) {
  .ig-cmp { grid-template-columns: 1fr; }
  .ig-labels { grid-template-columns: 1fr; gap: 12px; }
  /* Prefijos: apilar caso (ancho completo) y chips debajo → el texto no se aprieta. */
  .ig-row { grid-template-columns: 1fr; gap: 8px; }
  .ig-row > .ig-case { font-size: 14.5px; }
  .ig-prefs { flex-wrap: wrap; }
}
.ig-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ig-card-h { background: var(--navy); color: #fff; padding: 13px 16px; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.ig-card-h svg { color: #8FCBEA; }
.ig-card-b { padding: 14px 16px; font-size: 14.5px; line-height: 1.5; }
.ig-card-b .micro { display: block; margin-bottom: 1px; }
.ig-card-b strong { color: var(--navy); }
.ig-card-b .field-row { margin-bottom: 10px; }

/* Drawer mobile animado: slide-in/out del panel + fade del backdrop.
   No usa [hidden]: el panel vive off-screen (translateX) y `visibility` difiere el
   ocultado hasta terminar la transición de salida (si no, el slide-out no se vería). */
.drawer {
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.26s ease, visibility 0s linear 0.26s;
}
.drawer-backdrop {
  opacity: 0; visibility: hidden;
  transition: opacity 0.26s ease, visibility 0s linear 0.26s;
}
body.nav-open .drawer { transform: translateX(0); visibility: visible; transition: transform 0.26s ease; }
body.nav-open .drawer-backdrop { opacity: 1; visibility: visible; transition: opacity 0.26s ease; }
body.nav-open { overflow: hidden; }

/* Header: la franja navy va full-width, pero el contenido (logo + nav) se alinea
   al .wrap central, igual que el footer. */
.site-header { display: block; height: auto; padding: 0; }
.site-header > .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
@media (max-width: 720px) {
  .site-header > .wrap { height: 62px; gap: 14px; }
  .site-header > .wrap > .btn { margin-left: auto; } /* empuja CTA + hamburguesa a la derecha */
}

/* Spokes del home: 2 columnas (son 4 accesos → 2×2 parejo). */
.spokes { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .spokes { grid-template-columns: 1fr; } }

/* FAQ: animación suave con grid-template-rows (la habilita app.js agregando .js;
   los <details> quedan open para renderizar el contenido y se colapsan por grid). */
.faq.js .faq-a {
  display: grid; grid-template-rows: 0fr; padding-top: 0; padding-bottom: 0;
  transition: grid-template-rows 0.28s ease, padding 0.28s ease;
}
.faq.js .faq-a > * { overflow: hidden; min-height: 0; }
.faq.js details.expanded > .faq-a { grid-template-rows: 1fr; padding-bottom: 18px; }
.faq.js details[open] > summary::after { transform: rotate(45deg) translateY(-3px); }
.faq.js details.expanded > summary::after { transform: rotate(225deg) translateY(-2px); }

/* Home: el título arranca un poco más abajo (en las internas queda pegado arriba). */
.hero--home { padding-top: 22px; }

/* Resultado: el número y el botón "Copiar número" en la misma fila. */
.cuil-row { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.cuil-row .cuil-num { margin: 0; }

/* Chips de variantes: clickeables, con ícono de copiar y feedback. */
.chip { gap: 7px; }
.chip svg { color: var(--celeste-dark); opacity: 0.6; }
.chip:hover svg { opacity: 1; }

/* Feedback de "copiado" (número principal y chips). */
@keyframes copiedPulse { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
.is-copied { animation: copiedPulse 0.3s ease; }
.btn-ghost.is-copied { color: var(--verde); }
.chip.is-copied { border-color: var(--verde-border); background: var(--verde-tint); color: var(--verde); }
.chip.is-copied svg { color: var(--verde); opacity: 1; }

/* Acción "calcular otro" debajo del resultado. */
.result-again { margin-top: 16px; }

/* Ads: separación generosa + contenedor en BLOQUE (no grid). Un <ins> responsive
   en un grid centrado no obtiene ancho → AdSense ve ancho 0 y no llena. En bloque,
   con el ins a width:100%, el responsive calcula bien y llena. Sin overflow:hidden
   (recortaría) y sin fondo gris cuando está vacío/cargando. */
.ad-slot {
  display: block; overflow: visible; background: transparent; text-align: center;
  margin-top: 30px; margin-bottom: 30px;
}
.ad-slot .adsbygoogle { display: block; width: 100%; }
.ad-slot--lead, .ad-slot--fluid { width: 100%; height: auto; min-height: 100px; }
@media (max-width: 720px) { .ad-slot--lead, .ad-slot--fluid { min-height: 280px; } }
