/* ==========================================================
   Documentación — Land Colombia
   (se carga después de styles.css)
   ========================================================== */

/* ---------- Page hero ---------- */
.doc-hero { padding: 48px 0 32px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-2); margin-bottom: 20px; }
.crumbs a { color: var(--muted-2); text-decoration: none; }
.crumbs a:hover { color: var(--orange-text); }
.crumbs svg { color: #A9BAC4; }
.doc-hero h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; color: var(--teal); max-width: 820px; }
.doc-hero__lead { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 720px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--teal-2); }
.pill svg { color: var(--orange-text); }

/* ---------- Topic cards ---------- */
.topics { padding: 8px 0 56px; }
.topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.topic {
  display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px;
  background: #fff; border: 1px solid var(--line); color: var(--teal); text-decoration: none;
}
.topic:hover { color: var(--teal); border-color: rgba(242, 92, 5, .35); }
.topic__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.topic strong { font-size: 18px; line-height: 1.25; font-weight: 700; }
.topic small { font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.topic__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--orange-text); }
.topic__go svg { transition: transform .25s ease; }
.topic:hover .topic__go svg { transform: translateX(4px); }
.ic-o { background: var(--orange-soft); color: var(--orange-text); }
.ic-g { background: var(--green-bg); color: var(--green); }
.ic-t { background: #DCEFF6; color: var(--teal); }
.ic-d { background: var(--teal); color: #fff; }

/* ---------- Layout with sticky index ---------- */
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.toc__title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: 6px 10px 10px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.toc a:hover { background: var(--bg-2); color: var(--ink); }
.toc a.is-active { background: var(--teal); color: #fff; }
.toc a span { flex: 0 0 24px; height: 24px; border-radius: 8px; background: var(--bg-2); color: var(--teal); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background-color .25s ease, color .25s ease; }
.toc a.is-active span { background: var(--orange-2); color: var(--teal); }
.toc__help { overflow-wrap: anywhere; margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--bg); font-size: 13px; color: var(--muted); }
.toc__help b { display: block; color: var(--teal); font-size: 14px; margin-bottom: 4px; }
.toc__help a { display: inline; padding: 0; color: var(--orange-text); font-weight: 600; background: none; }

.doc-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

/* ---------- Doc section shell ---------- */
.doc { padding: 40px; border-radius: 32px; background: #fff; border: 1px solid var(--line); }
.doc__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #E6EDF2; }
.doc__num { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 10px; }
.doc__num i { font-style: normal; width: 28px; height: 28px; border-radius: 9px; background: var(--orange-soft); display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
.doc h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--teal); }
.doc__intro { margin-top: 12px; color: var(--muted); max-width: 760px; }
.doc__tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--teal-2); }
.doc h3 { font-size: 20px; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.block + .block { margin-top: 36px; }

/* ---------- Lists ---------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--bg); font-size: 15px; color: var(--muted-3); line-height: 1.55; }
.checks li svg { flex: 0 0 22px; margin-top: 1px; }
.checks--g li svg { color: var(--green); }
.checks--o li svg { color: var(--orange-text); }
.checks--t li svg { color: var(--teal); }

/* Tabs (no JS: radio inputs) */
.tabs { position: relative; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs__bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 18px; background: var(--bg); margin-bottom: 20px; }
.tabs__bar label { flex: 1 1 200px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 8px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; text-align: center; }
.tabs__bar label:hover { color: var(--teal); }
.tabs__bar label b { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--muted-2); }
.tabs__panel { display: none; animation: fadeUp .45s var(--ease) both; }
#t-der:checked ~ .tabs__bar label[for="t-der"],
#t-emp:checked ~ .tabs__bar label[for="t-emp"],
#t-usu:checked ~ .tabs__bar label[for="t-usu"] { background: #fff; color: var(--teal); box-shadow: 0 6px 16px rgba(6, 63, 85, .1); }
#t-der:checked ~ .tabs__bar label[for="t-der"] b { background: var(--green-bg); color: var(--green); }
#t-emp:checked ~ .tabs__bar label[for="t-emp"] b { background: var(--orange-soft); color: var(--orange-text); }
#t-usu:checked ~ .tabs__bar label[for="t-usu"] b { background: #DCEFF6; color: var(--teal); }
#t-der:checked ~ .p-der, #t-emp:checked ~ .p-emp, #t-usu:checked ~ .p-usu { display: block; }
.tabs > input:focus-visible ~ .tabs__bar { outline: 3px solid var(--orange-2); outline-offset: 3px; }

/* ---------- Callouts ---------- */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #FFF6EC; border: 1px solid #FFD9B5; font-size: 14px; color: #6A3A14; }
.note svg { flex: 0 0 22px; color: var(--orange-text); }
.note--teal { background: #EAF6FB; border-color: #C5E4F0; color: var(--teal); }
.note--teal svg { color: var(--teal); }
.note b { font-weight: 700; }

/* ---------- Key figures ---------- */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.figure { padding: 20px; border-radius: 20px; background: var(--teal); color: #fff; }
.figure strong { display: block; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: #FFA24D; }
.figure span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--on-dark); text-transform: uppercase; letter-spacing: .08em; }
.figure p { margin-top: 8px; font-size: 14px; color: var(--on-dark); }

/* ---------- Steps (timeline) ---------- */
.steps { position: relative; display: flex; flex-direction: column; gap: 14px; }
.step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
.step::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: -14px; width: 2px; background: repeating-linear-gradient(to bottom, #CFE0E8 0 6px, transparent 6px 12px); }
.step:last-child::before { display: none; }
.step__dot { width: 52px; height: 52px; border-radius: 16px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; box-shadow: 0 8px 18px rgba(242, 92, 5, .28); }
.step__body { padding: 16px 20px; border-radius: 18px; background: var(--bg); border: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease; }
.step:hover .step__body { background: #fff; border-color: rgba(242, 92, 5, .3); }
.step__body h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--teal); }
.step__body p { font-size: 15px; color: var(--muted-3); }
.step__body ul { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.step__body ul li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted-3); }
.step__body ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-2); }
.time { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 700; }
.steps--teal .step__dot { background: var(--teal); box-shadow: 0 8px 18px rgba(6, 63, 85, .22); }

/* ---------- Requirement cards ---------- */
.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.req { display: flex; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.req b { flex: 0 0 34px; height: 34px; border-radius: 11px; background: var(--orange-soft); color: var(--orange-text); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.req p { font-size: 15px; color: var(--muted-3); }

/* Denial reasons */
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--red-bg); color: #7A1A12; font-size: 14px; font-weight: 500; }
.reasons li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-dot); }

/* ---------- Accordion (details) ---------- */
.acc { border-radius: 18px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--teal); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { flex: 0 0 auto; transition: transform .3s ease; color: var(--orange-text); }
.acc[open] summary svg { transform: rotate(180deg); }
.acc[open] summary { border-bottom: 1px solid #E6EDF2; }
.acc__body { padding: 16px 20px 20px; animation: fadeUp .4s var(--ease) both; }
.law li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px dashed #E6EDF2; font-size: 14px; }
.law li:last-child { border-bottom: 0; }
.law b { color: var(--teal); }
.law span { color: var(--muted); }

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.channel { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--bg); font-size: 14px; color: var(--teal); text-decoration: none; }
a.channel:hover { color: var(--teal); background: var(--bg-2); }
.channel svg { color: var(--orange-text); margin-bottom: 6px; }
.channel small { font-size: 12px; color: var(--muted-2); }
.channel b { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Declaration (letter) ---------- */
.letter { position: relative; padding: 44px; border-radius: 24px; background: #FCFDFE; border: 1px solid #DCE6EC; box-shadow: 0 1px 0 #fff inset, 0 24px 48px rgba(6, 63, 85, .06); overflow: hidden; }
.letter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--orange-2), var(--orange-3)); }
.letter__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #E6EDF2; }
.letter__head img { height: 44px; width: auto; }
.letter__head small { font-size: 13px; color: var(--muted-2); text-align: right; }
.letter h3 { font-size: 18px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 4px; }
.letter__sub { font-size: 14px; font-weight: 600; color: var(--orange-text); margin-bottom: 20px; }
.letter p { color: var(--muted-3); font-size: 15px; }
.letter p + p { margin-top: 14px; }
.clauses { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.clause { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--bg); }
.clause b { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--teal); }
.clause p { font-size: 15px; }
.sign { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.sign__line { width: 220px; height: 1px; background: #B9C9D2; margin-bottom: 10px; }
.sign b { color: var(--teal); }
.sign span { font-size: 14px; color: var(--muted-2); }

/* ---------- Help strip ---------- */
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 36px; border-radius: 28px; background: linear-gradient(135deg, #FF8A1F 0%, var(--orange-3) 100%); color: #fff; }
.help h2 { font-size: 26px; line-height: 1.2; font-weight: 800; color: #fff; }
.help p { margin-top: 6px; color: #fff; opacity: .95; }
.help__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--white { background: #fff; color: var(--teal); }
.btn--white:hover { color: var(--teal); }
.btn--outline-w { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
.btn--outline-w:hover { color: #fff; }

.top-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--muted-2); text-decoration: none; }
.top-link:hover { color: var(--orange-text); }


/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 8px; gap: 6px; -webkit-overflow-scrolling: touch; }
  .toc__title, .toc__help { display: none; }
  .toc a { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 760px) {
  .doc { padding: 24px; border-radius: 24px; }
  .letter { padding: 28px 22px 28px 26px; }
  .checks, .reqs, .figures, .step__body ul { grid-template-columns: 1fr; }
  .topics__grid, .channels { grid-template-columns: 1fr; }
  .clause { grid-template-columns: 1fr; gap: 6px; }
  .law li { grid-template-columns: 1fr; gap: 2px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .step__dot { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
  .step::before { left: 19px; top: 40px; }
  .help { padding: 26px; }
  .letter__head small { text-align: left; }
}

@media print {
  .header, .toc, .wa, .to-top, .help, .topics, .footer, .skip-link { display: none !important; }
  body { background: #fff; }
  .doc-layout { display: block; }
  .doc { border: 0; padding: 0; margin-bottom: 32px; break-inside: avoid-page; }
  .tabs__panel { display: block !important; }
  .tabs__bar { display: none; }
  .acc__body { display: block; }
}
