/* ============================================================
   Landing de recursos · Cómo hacer la declaración de la renta
   Mismo lenguaje visual que el resto de landings de recursos.
   ============================================================ */

:root {
  --bg: #07080a;
  --bg-2: #0d0e11;
  --ink: #f1ece1;
  --ink-soft: #a39d92;
  --ink-muted: #6a655c;
  --line: rgba(241, 236, 225, 0.08);
  --line-strong: rgba(241, 236, 225, 0.16);
  --accent: #d8c9a3;
  --accent-warm: #c89b6c;
  --danger: #c9222a;
  --ok: #6fbf73;
  --info: #6ec1c9;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 30px 80px -40px rgba(0, 0, 0, 0.7), 0 6px 20px -10px rgba(0, 0, 0, 0.5);
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ====== Background ====== */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.aurora__blob--1 {
  width: 100vmax; height: 100vmax; left: -30vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(216, 201, 163, 0.16), transparent 70%);
}
.aurora__blob--2 {
  width: 90vmax; height: 90vmax; right: -35vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(200, 155, 108, 0.13), transparent 70%);
}
.aurora__blob--3 {
  width: 110vmax; height: 110vmax; left: 10%; bottom: -55vmax;
  background: radial-gradient(closest-side, rgba(216, 201, 163, 0.10), transparent 70%);
}
.mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.85;
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 78% 65% at center, transparent 30%, var(--bg) 100%);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* ====== Header ====== */
.site-header {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 36px; gap: 20px;
  animation: fadeDown 1.1s var(--ease-out-quint) both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translate3d(0, -12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.brand {
  position: relative; display: inline-flex; align-items: center;
  gap: 10px; text-decoration: none; color: var(--ink);
  padding: 6px 12px 6px 6px; border: 1px solid var(--line);
  background: rgba(20, 20, 24, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px;
  transition: border-color .5s var(--ease-soft), transform .6s var(--ease-out-quint), background .5s var(--ease-soft);
}
.brand:hover { border-color: var(--line-strong); background: rgba(28, 28, 32, 0.6); transform: translate3d(0, -1px, 0); }
.brand__avatar {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #2a2a2e, #1a1a1d);
  display: inline-grid; place-items: center; border: 1px solid var(--line-strong);
}
.brand__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__avatar-fallback { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 14px; }
.brand__avatar::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(216, 201, 163, 0.3);
  animation: avatarPulse 3.6s var(--ease-out-quint) infinite;
  pointer-events: none; will-change: transform, opacity;
}
@keyframes avatarPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  60%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 13px; font-weight: 600; }
.brand__handle { font-size: 11px; color: var(--ink-soft); margin-top: 2px; font-family: var(--font-mono); }
.brand__yt {
  width: 28px; height: 28px; border-radius: 50%;
  background: #ff0033; color: #fff;
  display: inline-grid; place-items: center; margin-left: 4px;
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease-soft);
  box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.6);
}
.brand:hover .brand__yt { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255, 0, 51, 0); }
.header-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-soft); text-transform: uppercase;
}
.header-tag::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-warm); margin-right: 8px;
  vertical-align: middle; transform: translate3d(0, -1px, 0);
  box-shadow: 0 0 8px var(--accent-warm);
  animation: pulse 2.4s ease-in-out infinite; will-change: opacity;
}

/* ====== Hero ====== */
.hero {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 76px auto 26px; padding: 0 36px;
  text-align: center; will-change: transform;
}
.eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255, 255, 255, 0.02);
  animation: heroIn 0.9s var(--ease-out-quint) 0.1s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.dot {
  position: relative; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-warm); box-shadow: 0 0 10px var(--accent-warm);
  animation: pulse 2.4s ease-in-out infinite; will-change: opacity;
}
.dot::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent-warm);
  animation: ripple 2.4s var(--ease-out-quint) infinite;
  pointer-events: none; will-change: transform, opacity;
}
@keyframes pulse { 0%,100% {opacity: 1;} 50% {opacity: .35;} }
@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.7; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 5.4vw, 74px);
  line-height: 1.06; letter-spacing: -0.022em;
  margin: 24px auto 22px; max-width: 18ch; color: var(--ink);
  animation: heroIn 1.1s var(--ease-out-quint) 0.25s both;
}
.hero__title em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero__sub {
  max-width: 660px; margin: 0 auto 30px; color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6;
  animation: heroIn 1s var(--ease-out-quint) 0.4s both;
}
.scroll-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted);
  margin: 6px auto 0; background: none; border: 0; cursor: pointer;
  animation: heroIn 1s var(--ease-out-quint) 0.55s both;
}
.scroll-hint::after {
  content: '↓'; font-family: var(--font-sans); color: var(--accent-warm);
  animation: hintDown 1.8s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--ink-soft); }
@keyframes hintDown {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(3px); opacity: 1; }
}

/* ====== Reveal ====== */
.reveal {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--ease-out-quint), transform .9s var(--ease-out-quint);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ====== Layout: sidebar + content ====== */
.layout {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto; padding: 30px 36px 90px;
  display: grid; grid-template-columns: 232px 1fr; gap: 56px;
  align-items: start;
}

/* ====== Sidebar nav ====== */
.sidenav { position: sticky; top: 26px; align-self: start; }
.sidenav__title {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-muted);
  padding: 0 12px 14px; margin: 0;
}
.sidenav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidenav__link {
  display: flex; align-items: baseline; gap: 11px;
  text-decoration: none; color: var(--ink-soft);
  padding: 9px 12px; border-radius: 10px;
  border-left: 2px solid transparent;
  transition: color .35s var(--ease-soft), background .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
.sidenav__link:hover { color: var(--ink); background: rgba(255,255,255,0.025); }
.sidenav__link.is-active {
  color: var(--ink); background: rgba(216,201,163,0.07);
  border-left-color: var(--accent-warm);
}
.sidenav__num {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent-warm);
  flex-shrink: 0; opacity: 0.85;
}
.sidenav__label { font-size: 13.5px; line-height: 1.3; }
.sidenav__foot {
  margin-top: 22px; padding: 14px 12px 0; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--ink-muted); line-height: 1.7;
}

/* ====== Content / bloques ====== */
.content { min-width: 0; display: flex; flex-direction: column; gap: 76px; }
.bloque { scroll-margin-top: 26px; }
.bloque__head { max-width: 64ch; margin-bottom: 30px; }
.bloque__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.bloque__kicker-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(216,201,163,0.10); border: 1px solid rgba(216,201,163,0.22);
  color: var(--accent); font-size: 11px;
}
.bloque__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink);
}
.bloque__title em { font-style: italic; color: var(--accent); }
.bloque__lead { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }

/* ====== Document grid ====== */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  gap: 22px;
}
.doc-card {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 21, 26, 0.6), rgba(12, 13, 16, 0.6));
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color .45s var(--ease-soft), transform .55s var(--ease-out-quint), box-shadow .45s var(--ease-soft);
  will-change: transform;
}
.doc-card:hover {
  border-color: rgba(216, 201, 163, 0.34);
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 40px 90px -42px rgba(0,0,0,0.8), 0 10px 26px -12px rgba(0,0,0,0.6);
}
.doc-card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #0a0b0d; border-bottom: 1px solid var(--line);
}
.doc-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
  transition: transform .8s var(--ease-out-quint), filter .5s var(--ease-soft);
  filter: saturate(1.02);
}
.doc-card:hover .doc-card__thumb img { transform: scale(1.04); filter: saturate(1.1) brightness(1.03); }
.doc-card__thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7,8,10,0.45));
}
.doc-card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px;
  background: rgba(7, 8, 10, 0.66); color: var(--accent);
  border: 1px solid rgba(216,201,163,0.26);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.doc-card__body {
  display: flex; flex-direction: column; gap: 9px;
  padding: 18px 19px 16px; flex: 1;
}
.doc-card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; line-height: 1.22; letter-spacing: -0.01em; margin: 0;
  color: var(--ink);
}
.doc-card__desc {
  color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; margin: 0;
  flex: 1;
}
.doc-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 6px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.doc-card__meta {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.doc-card__dl {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--accent);
  transition: color .35s var(--ease-soft), gap .35s var(--ease-soft);
}
.doc-card__dl svg { width: 15px; height: 15px; }
.doc-card:hover .doc-card__dl { color: #fff; gap: 9px; }

/* ====== Toast ====== */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translate3d(-50%, 20px, 0);
  background: var(--ink); color: #0a0b0d;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  padding: 10px 16px; border-radius: 999px;
  pointer-events: none; opacity: 0;
  transition: opacity .4s var(--ease-soft), transform .5s var(--ease-spring);
  z-index: 200; box-shadow: 0 14px 30px -10px rgba(0,0,0,.55);
}
.toast.show { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* ====== Footer ====== */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  padding: 36px 36px 44px;
}
.footer__inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.footer__logo img {
  height: 34px; filter: brightness(0) invert(1); opacity: 0.85;
  transition: opacity .4s var(--ease-soft), transform .5s var(--ease-spring);
}
.footer__logo:hover img { opacity: 1; transform: translate3d(0, -2px, 0); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer__nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 13px;
  transition: color .35s var(--ease-soft);
}
.footer__nav a:hover { color: var(--ink); }
.footer__credit {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-muted); margin: 4px 0 0;
}
.footer__disclaimer {
  max-width: 720px; font-size: 11.5px; line-height: 1.6;
  color: var(--ink-muted); margin: 6px 0 0;
}

/* ====== Responsive ====== */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding: 18px 24px 70px; }
  .sidenav { display: none; }
  .content { gap: 60px; }
}
@media (max-width: 980px) {
  .hero { margin: 50px auto 22px; padding: 0 22px; }
  .site-header { padding: 16px 22px; }
  .header-tag { display: none; }
  .site-footer { padding: 30px 22px 38px; }
  .aurora { display: none !important; }
  body {
    background:
      radial-gradient(ellipse 90% 50% at 50% 0%, rgba(216, 201, 163, 0.08), transparent 60%),
      radial-gradient(ellipse 80% 40% at 50% 100%, rgba(200, 155, 108, 0.05), transparent 60%),
      var(--bg);
    background-attachment: scroll;
  }
  .grain { display: none !important; }
  #particles { display: none !important; }
  .mesh { position: absolute; min-height: 100vh; }
  .vignette { position: absolute; min-height: 100vh; }
  .brand { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20, 20, 24, 0.85); }
  .doc-card__badge { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(7,8,10,0.8); }
  .doc-card { transition: border-color .4s var(--ease-soft); }
  .doc-card:hover { transform: none; }
  .doc-card:hover .doc-card__thumb img { transform: none; }
}
@media (max-width: 540px) {
  .brand__handle { display: none; }
  .brand__text { line-height: 1.1; }
  .doc-grid { grid-template-columns: 1fr; }
  .layout { padding: 14px 18px 56px; }
}
