/* IRMA · sistema de diseño compartido por las páginas internas.
   Base (tokens, menú, botones, footer, cookies) extraída de la home; abajo, componentes de blog, legales y 404. */
/* ================= Tokens (sistema Steep con marca IRMA) ================= */
    :root {
      --ink: #17191c;
      --paper: #ffffff;
      --mist: #f2f2f3;
      --fog: #fafafb;
      --line: #ececec;
      --slate: #6c707b;
      --ash: #979799;

      --orange: #f47121;
      --orange-tint: #fde7d8;
      --orange-ink: #7a3510;
      --blue: #0b808a;          /* el "azul" de IRMA */
      --blue-tint: #e2f2f3;
      --blue-ink: #075a61;
      --green: #25c26e;
      --warn-bg: #fffbea;
      --warn-line: #f6e7a8;

      --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

      --r-card: 24px;
      --r-art: 20px;
      --r-small: 16px;
      --shadow-art: 0 0 0 1px rgba(4, 23, 43, 0.05), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
      --shadow-pop: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 8px 40px rgba(0, 0, 0, 0.1);
      --max: 1200px;
      --section: 120px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--paper); color: var(--ink);
      font-family: var(--font); font-size: 17px; line-height: 1.45;
      -webkit-font-smoothing: antialiased; overflow-x: hidden;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; }
    .container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

    h1, h2 { font-weight: 450; letter-spacing: -0.035em; }
    h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.0; }
    h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
    h3 { font-size: 22px; font-weight: 480; letter-spacing: -0.012em; line-height: 1.25; }
    h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--orange); letter-spacing: -0.04em; }
    .muted { color: var(--slate); }
    .label { font-size: 14px; color: var(--ash); }

    /* Botones en píldora */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      height: 46px; padding: 0 22px; border-radius: 9999px;
      font: 450 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
      transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    }
    .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
    .btn-fill { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
    .btn-fill:hover { background: #2c2f34; }
    .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
    .btn-ghost:hover { background: var(--mist); }
    .btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
    .link-arrow { text-decoration: none; font-weight: 450; }
    .link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

    .pill {
      display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
      border-radius: 9999px; background: rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-pop);
      font-size: 14px; color: var(--ink);
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    }
    .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

    /* ================= Nav ================= */
    .nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .3s ease, box-shadow .3s ease; }
    .nav.scrolled { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
    .nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .nav-logo img { height: 22px; width: auto; }
    .nav-links { display: flex; gap: 28px; }
    .nav-links a { text-decoration: none; font-size: 15px; }
    .nav-links a:hover { color: var(--slate); }
    .nav-actions { display: flex; align-items: center; gap: 18px; }
    .nav-actions .text { text-decoration: none; font-size: 15px; }
    .nav-toggle { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
    .nav-toggle svg { width: 18px; height: 18px; }
    .nav-mobile { display: none; }

    /* ================= Secciones ================= */
    .section { padding: var(--section) 0; }
    section[id] { scroll-margin-top: 48px; }
    .band { background: var(--fog); }
    .head { max-width: 760px; margin-bottom: 56px; }
    .head.center { margin-left: auto; margin-right: auto; text-align: center; }
    .head p { margin-top: 18px; font-size: 19px; color: var(--slate); }
    .card { background: var(--mist); border-radius: var(--r-card); padding: 28px; }
    .art { background: #fff; border-radius: var(--r-art); box-shadow: var(--shadow-art); }

    /* CTA final */
    .final { text-align: center; padding: 150px 24px; position: relative; overflow: hidden; isolation: isolate; }
    .final::before {
      content: ""; position: absolute; inset: 0; z-index: -1; filter: blur(20px);
      background: radial-gradient(30% 50% at 40% 60%, rgba(244, 113, 33, 0.18), transparent 70%), radial-gradient(30% 50% at 62% 50%, rgba(11, 128, 138, 0.14), transparent 70%);
    }
    .final p.lead { max-width: 560px; margin: 20px auto 0; font-size: 19px; color: var(--slate); }
    .final .note { margin-top: 22px; font-size: 14px; color: var(--slate); }

    footer { border-top: 1px solid var(--line); padding: 64px 0 36px; }
    .foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
    .foot img { height: 20px; width: auto; margin-bottom: 14px; }
    .foot p { color: var(--slate); font-size: 14px; max-width: 260px; }
    .foot h4 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
    .foot a { display: block; color: var(--slate); text-decoration: none; font-size: 14px; padding: 4px 0; }
    .foot a:hover { color: var(--ink); }
    .foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ash); }

    .wa-float {
      position: fixed; right: 22px; bottom: calc(22px + var(--cc-h, 0px)); z-index: 10000; width: 52px; height: 52px; border-radius: 50%;
      background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-pop);
      transition: transform .2s ease, bottom .3s ease;
    }
    .wa-float:hover { transform: scale(1.06); }
    .wa-float svg { width: 24px; height: 24px; }
    .wa-float::after { content: ""; position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); }

    /* Aviso de cookies (cookieconsent) */
    .cc-window.cc-banner {
      background: #fff !important; color: var(--ink) !important;
      font-family: var(--font) !important; font-size: 15px !important;
      box-shadow: 0 -1px 0 var(--line), 0 -8px 30px rgba(0, 0, 0, 0.06);
      padding: 16px 24px !important; gap: 16px;
    }
    .cc-window .cc-link { color: var(--ink) !important; opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
    .cc-window .cc-btn {
      background: var(--ink) !important; color: #fff !important; border: 0 !important;
      border-radius: 9999px !important; font-weight: 450 !important; font-size: 15px !important;
      padding: 10px 22px !important; min-width: 120px;
    }
    .cc-window .cc-btn:hover { background: #2c2f34 !important; }

    .js-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
    .js-reveal.in { opacity: 1; transform: none; }
    

    
/* ================= Responsive (menú y footer) ================= */
@media (max-width: 1080px) {
  .foot { grid-template-columns: repeat(2, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --section: 88px; }
  .nav-links, .nav-actions .text { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile.open { display: flex; flex-direction: column; padding: 4px 24px 18px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 0 var(--line); }
  .nav-mobile a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav-mobile a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .nav-actions .btn { display: none; }
  .card { padding: 24px; }
  .foot { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Páginas internas (blog, legales, 404, resultado de pago)
   ===================================================================== */
main { display: block; }
/* Los atributos width/height del HTML sirven para reservar espacio; el alto real lo define el ancho */
img { height: auto; }

/* ---------- Encabezado de página ---------- */
.page-hero { position: relative; padding: 148px 0 56px; isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none; filter: blur(24px);
  background:
    radial-gradient(34% 55% at 80% 35%, rgba(244, 113, 33, 0.16), transparent 70%),
    radial-gradient(34% 55% at 16% 65%, rgba(11, 128, 138, 0.12), transparent 70%);
}
.page-hero h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; max-width: 880px; }
.page-hero p.lead { margin-top: 20px; max-width: 640px; font-size: 19px; color: var(--slate); }
.page-hero .hero-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.page-hero .hero-art img { width: min(380px, 100%); margin-left: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Blog: listado ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 96px; }
.post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--mist); border-radius: var(--r-card); transition: background-color .25s ease;
}
.post-card:hover { background: #ebebed; }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #e6e6e8; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.post-card .post-tag { font-size: 13px; color: var(--orange-ink); background: var(--orange-tint); align-self: flex-start; padding: 3px 11px; border-radius: 9999px; font-weight: 500; }
.post-card h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 480; }
.post-card p { color: var(--slate); font-size: 15.5px; line-height: 1.55; }
.post-card .read-more { margin-top: auto; padding-top: 6px; font-weight: 450; text-decoration: none; }
.post-card .read-more::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es clickeable */
.post-card:hover .read-more { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Blog: artículo ---------- */
.post { max-width: 780px; margin: 0 auto; padding: 132px 24px 96px; }
.post-back { display: inline-block; margin-bottom: 28px; font-size: 15px; color: var(--slate); text-decoration: none; }
.post-back:hover { color: var(--ink); }
.post-header { margin-bottom: 36px; }
.post-header .post-tag { display: inline-block; font-size: 13px; color: var(--orange-ink); background: var(--orange-tint); padding: 3px 12px; border-radius: 9999px; font-weight: 500; margin-bottom: 18px; }
.post-title { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); margin-bottom: 44px; background: var(--mist); }

.prose { font-size: 18px; line-height: 1.7; color: #2b2e33; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); margin-top: 2.2em; }
.prose h3 { font-size: 22px; color: var(--ink); margin-top: 1.8em; }
.prose strong { font-weight: 560; color: var(--ink); }
.prose a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .6em; }
.prose li::marker { color: var(--orange); }
.prose .post-quote {
  background: var(--mist); border-radius: var(--r-small); padding: 24px 28px;
  font-size: 19px; line-height: 1.55; font-style: italic; color: var(--slate);
}

/* Resumen rápido: el acento editorial de cada artículo */
.prose .tldr { background: var(--orange-tint); color: var(--orange-ink); border-radius: var(--r-card); padding: 28px 30px; margin-top: 0; }
.prose .tldr h3 { margin-top: 0; font-size: 19px; color: var(--orange-ink); }
.prose .tldr ul { margin-top: 14px; }
.prose .tldr strong { color: var(--orange-ink); }
.prose .tldr li::marker { color: var(--orange-ink); }

/* Cierre del artículo */
.prose .post-cta { background: var(--mist); border-radius: var(--r-card); padding: 34px 36px; margin-top: 3em; }
.prose .post-cta h3 { margin-top: 0; font-size: 26px; letter-spacing: -0.02em; }
.prose .post-cta p { margin-top: .6em; color: var(--slate); font-size: 17px; }
.prose .post-cta .btn { margin-top: 1.4rem; color: #fff; text-decoration: none; }

.prose .sources { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); font-size: 15px; color: var(--slate); }
.prose .sources ol { gap: .4em; }

/* ---------- Páginas legales ---------- */
.legal-hero { padding-bottom: 32px; }
.legal-hero .container { max-width: 868px; }
.legal-hero p { margin-top: 18px; max-width: 620px; font-size: 19px; color: var(--slate); }
.legal-content { max-width: 820px; margin: 0 auto; padding: 0 24px 104px; }
.legal-nav { background: var(--mist); border-radius: var(--r-card); padding: 24px 28px; margin-bottom: 8px; }
.legal-nav h4 { font-size: 14px; font-weight: 500; color: var(--ash); margin-bottom: 12px; }
.legal-nav ul { list-style: none; display: grid; gap: 8px; }
.legal-nav a { text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-document { margin-top: 64px; scroll-margin-top: 90px; }
.document-header h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; }
.document-meta { margin-top: 10px; font-size: 15px; color: var(--slate); }
.document-intro { margin-top: 20px; padding: 22px 24px; background: var(--fog); border: 1px solid var(--line); border-radius: var(--r-small); }
.legal-section { margin-top: 40px; }
.legal-section h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal-section h4 { font-size: 17px; font-weight: 550; margin: 22px 0 8px; }
.legal-document p, .legal-document li { font-size: 16.5px; line-height: 1.7; color: #2b2e33; }
.legal-document p + p, .legal-document p + ul, .legal-document ul + p { margin-top: 12px; }
.legal-document ul { padding-left: 1.3em; display: grid; gap: 6px; margin-top: 10px; }
.legal-document li::marker { color: var(--orange); }
.legal-document a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-document strong { font-weight: 560; color: var(--ink); }
.legal-warning { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-small); padding: 18px 22px; margin: 18px 0; }
.legal-highlight { background: var(--blue-tint); border-radius: var(--r-small); padding: 18px 22px; margin: 18px 0; }
.legal-highlight p, .legal-highlight li, .legal-highlight strong { color: var(--blue-ink); }
.definition-list { display: grid; margin-top: 8px; }
.definition-item { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.definition-item:first-child { border-top: 1px solid var(--line); }
.definition-term { font-weight: 550; color: var(--ink); }
.definition-desc { color: var(--slate); }

/* ---------- 404 ---------- */
.error-page { min-height: 100svh; display: grid; place-items: center; padding: 120px 24px 72px; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.error-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1; filter: blur(24px);
  background: radial-gradient(30% 45% at 62% 55%, rgba(244, 113, 33, 0.16), transparent 70%), radial-gradient(30% 45% at 36% 50%, rgba(11, 128, 138, 0.12), transparent 70%);
}
.error-page img { width: min(220px, 52vw); margin: 0 auto 8px; animation: float 6s ease-in-out infinite; }
.error-code { font-size: clamp(88px, 17vw, 190px); line-height: .95; font-weight: 400; font-style: italic; letter-spacing: -0.05em; color: var(--orange); }
.error-title { margin-top: 10px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; }
.error-description { margin: 16px auto 0; max-width: 480px; color: var(--slate); font-size: 18px; }
.error-links { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Resultado de pago ---------- */
.result-page { min-height: 100svh; display: grid; place-items: center; padding: 40px 20px; position: relative; isolation: isolate; overflow: hidden; }
.result-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1; filter: blur(24px);
  background: radial-gradient(34% 50% at 70% 30%, rgba(244, 113, 33, 0.16), transparent 70%), radial-gradient(34% 50% at 25% 70%, rgba(11, 128, 138, 0.14), transparent 70%);
}
.result-card { width: 100%; max-width: 540px; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-art); padding: 44px 40px; text-align: center; }
.result-card .logo { height: 24px; width: auto; margin: 0 auto 28px; }
.result-card .check { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-ink); display: grid; place-items: center; margin: 0 auto 22px; }
.result-card .check svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.result-card h1 { font-size: clamp(28px, 4.4vw, 38px); line-height: 1.08; }
.result-card .subtitle { margin-top: 14px; color: var(--slate); font-size: 17px; }
.result-card hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.next-steps { text-align: left; }
.next-steps h2 { font-size: 13px; font-weight: 550; letter-spacing: .06em; text-transform: uppercase; color: var(--ash); margin-bottom: 16px; }
.step { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.step-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-ink); font-size: 13px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.step p { font-size: 15.5px; color: var(--slate); line-height: 1.5; }
.step strong { color: var(--ink); font-weight: 550; }
.result-card .actions { display: grid; gap: 10px; margin-top: 28px; }
.result-card .footer-note { margin-top: 26px; font-size: 13px; color: var(--ash); }
.result-card .footer-note a { color: var(--blue-ink); text-decoration: underline; }

/* ---------- Responsive de páginas internas ---------- */
@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .page-hero { padding-top: 120px; }
  .page-hero .hero-split { grid-template-columns: 1fr; gap: 24px; }
  .page-hero .hero-art { order: -1; }
  .page-hero .hero-art img { width: min(240px, 60%); margin: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .post { padding-top: 108px; }
  .prose { font-size: 17px; }
  .definition-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .prose .post-cta { padding: 26px 24px; }
  .prose .tldr { padding: 24px; }
  .result-card { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero .hero-art img, .error-page img { animation: none; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Blog: migas de pan, fecha, FAQ y "Seguí leyendo" (generado por tools/build_blog.py) ---------- */
.crumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 14.5px; color: var(--ash); min-width: 0; }
.crumbs a { color: var(--slate); text-decoration: none; flex-shrink: 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--slate); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { margin-top: 16px; font-size: 15px; color: var(--slate); }
.prose .faq { margin-top: 3em; }
.prose .faq > h2 { margin-top: 0; }
.prose .faq h3 { font-size: 20px; margin-top: 1.4em; }
.prose .faq h3 + p { margin-top: .5em; }
.related { margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--line); }
.related h2 { font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 22px; }
.related ul { list-style: none; display: grid; gap: 12px; }
.related a { display: block; padding: 20px 24px; background: var(--mist); border-radius: 20px; text-decoration: none; transition: background-color .25s ease; }
.related a:hover { background: #ebebed; }
.related .t { display: block; font-size: 18px; font-weight: 480; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); }
.related .d { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--slate); }

/* ---------- Tablas dentro de los artículos ---------- */
.prose table { display: table; width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; font-size: 16px; line-height: 1.5; overflow: hidden; }
.prose th, .prose td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--fog); font-weight: 550; color: var(--ink); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); width: 34%; }
@media (max-width: 600px) { .prose table { font-size: 15px; } .prose th, .prose td { padding: 11px 12px; } .prose td:first-child { width: 38%; } }
