/* Trámite Global New — orientación documental privada
   Estilo: institucional bosque · verde profundo + crema + oro */
:root {
  --forest: #1b4332;
  --forest-deep: #123528;
  --forest-mid: #2d6a4f;
  --forest-soft: #40916c;
  --cream: #fefae0;
  --cream-2: #faedcd;
  --gold: #d4a373;
  --gold-deep: #bc8a5f;
  --ink: #1a2620;
  --muted: #55635b;
  --line: #e3ddc8;
  --paper: #fbf9ef;
  --white: #ffffff;
  --ok: #2d6a4f;
  --warn: #9c6644;
  --radius: 4px;
  --radius-lg: 8px;
  --wide: 1180px;
  --shadow: 0 10px 30px rgba(18, 53, 40, 0.1);
  --shadow-sm: 0 2px 10px rgba(18, 53, 40, 0.07);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Nunito Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--forest-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-deep); }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 999;
  background: var(--gold); color: var(--forest-deep); padding: 10px 18px;
  border-radius: var(--radius); font-weight: 800;
}
.skip-link:focus { top: 12px; }

/* Ribbon */
.ribbon {
  background: var(--forest-deep); color: var(--cream);
  font-size: 0.82rem; letter-spacing: 0.02em;
}
.ribbon__inner {
  max-width: var(--wide); margin: 0 auto; padding: 8px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ribbon a { color: var(--cream); font-weight: 700; }
.ribbon a:hover { color: var(--gold); }
.ribbon__meta { opacity: 0.8; }

/* Header */
.masthead {
  background: var(--forest);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.masthead__inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 24px;
  min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand__seal {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 2px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; background: var(--forest-deep);
}
.brand__seal svg { width: 26px; height: 26px; }
.brand__name {
  font-family: var(--font-serif); font-size: 1.28rem; font-weight: 600;
  line-height: 1.05; letter-spacing: -0.01em;
}
.brand__sub {
  display: block; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin-top: 3px;
}

.topnav { display: flex; align-items: center; gap: 4px; }
.topnav__link {
  padding: 10px 15px; color: var(--cream); font-weight: 700; font-size: 0.9rem;
  border-bottom: 3px solid transparent; margin-bottom: -3px; transition: border-color 0.2s, color 0.2s;
}
.topnav__link:hover { color: var(--gold); }
.topnav__link.is-active { color: #fff; border-bottom-color: var(--gold); }
.topnav__cta {
  margin-left: 10px; padding: 11px 20px; background: var(--gold); color: var(--forest-deep);
  border-radius: var(--radius); font-weight: 800; font-size: 0.9rem;
}
.topnav__cta:hover { background: var(--cream); color: var(--forest-deep); }

.burger {
  display: none; flex-direction: column; gap: 5px; padding: 9px;
  background: none; border: 1px solid rgba(212,163,115,0.5); border-radius: var(--radius); cursor: pointer;
}
.burger span { width: 22px; height: 2px; background: var(--cream); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 82% 15%, rgba(212,163,115,0.16), transparent 45%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream); padding: 68px 0 76px; position: relative;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero__eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--gold); border: 1px solid rgba(212,163,115,0.4);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { font-size: 1.1rem; color: rgba(254,250,224,0.86); max-width: 52ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; font-family: var(--font-sans); font-weight: 800; font-size: 0.95rem;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
}
.btn--gold { background: var(--gold); color: var(--forest-deep); border-color: var(--gold); }
.btn--gold:hover { background: var(--cream); border-color: var(--cream); color: var(--forest-deep); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--cream); border-color: rgba(254,250,224,0.5); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--forest { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn--forest:hover { background: var(--forest-deep); color: var(--cream); transform: translateY(-2px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Hero card / passport panel */
.hero__panel {
  background: rgba(254,250,224,0.06); border: 1px solid rgba(212,163,115,0.3);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(4px);
}
.hero__panel h2 {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--gold); margin-bottom: 16px; font-weight: 600;
}
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: 0.95rem; color: rgba(254,250,224,0.9); }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }

/* Sections */
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head__kicker {
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold-deep); margin-bottom: 12px;
}
.section-head__title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600;
  line-height: 1.14; letter-spacing: -0.02em; color: var(--forest);
}
.section-head__desc { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.tile--lg { grid-column: span 3; }
.tile--sm { grid-column: span 2; }
.tile--wide { grid-column: span 6; background: var(--forest); color: var(--cream); border-color: var(--forest); }
.tile__num {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); color: var(--forest); margin-bottom: 18px;
}
.tile--wide .tile__num { background: var(--gold); color: var(--forest-deep); }
.tile__title { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 600; margin-bottom: 10px; }
.tile--wide .tile__title { color: var(--cream); }
.tile__text { color: var(--muted); font-size: 0.96rem; flex: 1; }
.tile--wide .tile__text { color: rgba(254,250,224,0.85); }
.tile__link { margin-top: 16px; font-weight: 800; font-size: 0.88rem; color: var(--gold-deep); }
.tile--wide .tile__link { color: var(--gold); }

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  color: var(--cream); border-radius: var(--radius-lg); padding: 48px; text-align: center;
}
.banner h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; margin-bottom: 12px; }
.banner p { color: rgba(254,250,224,0.85); max-width: 52ch; margin: 0 auto 26px; }

/* Timeline (mapa) */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 36px 64px; }
.tl-item__dot {
  position: absolute; left: 12px; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); border: 4px solid var(--cream-2); box-shadow: 0 0 0 1px var(--line);
}
.tl-item__phase {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-deep);
}
.tl-item__title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--forest); margin: 4px 0 8px; }
.tl-item__text { color: var(--muted); }

/* Ledger table (criterio) */
.ledger {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.ledger th, .ledger td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger thead th {
  background: var(--forest); color: var(--cream); font-family: var(--font-serif); font-weight: 600; font-size: 1rem;
}
.ledger tbody tr:last-child td { border-bottom: none; }
.ledger td:first-child { font-weight: 700; color: var(--forest); width: 34%; }
.ledger .yes { color: var(--ok); font-weight: 800; }
.ledger .no { color: var(--warn); font-weight: 800; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.faq__q {
  width: 100%; padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 800; color: var(--forest);
  text-align: left; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq__q::after { content: '+'; color: var(--gold-deep); font-size: 1.4rem; font-weight: 700; }
.faq__item[open] .faq__q::after { content: '−'; }
.faq__a { padding: 0 24px 20px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.topic-pill {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-weight: 700; font-size: 0.88rem; color: var(--forest); cursor: pointer; transition: all 0.2s;
}
.topic-pill:hover, .topic-pill.is-active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 7px; color: var(--forest); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent;
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.aside-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
}
.aside-card h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--forest); margin-bottom: 14px; font-weight: 600; }
.aside-card dl { display: grid; gap: 12px; }
.aside-card dt { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.aside-card dd { font-weight: 700; color: var(--forest); }

/* Wizard */
.wizard { max-width: 680px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.wizard__track { display: flex; gap: 8px; margin-bottom: 30px; }
.wizard__seg { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.wizard__seg.is-done { background: var(--forest); }
.wizard__seg.is-current { background: var(--gold); }
.wizard__step-label { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-deep); margin-bottom: 8px; }
.wizard__step-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--forest); margin-bottom: 22px; }
.wizard__nav { display: flex; justify-content: space-between; margin-top: 28px; }

/* Legal / prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--forest); margin: 30px 0 12px; font-weight: 600; }
.prose p { margin-bottom: 15px; color: var(--muted); }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.page-head { padding: 56px 0 12px; }
.page-head__kicker { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-deep); margin-bottom: 10px; }
.page-head__title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--forest); line-height: 1.1; }
.page-head__desc { margin-top: 14px; color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

.scope-note {
  background: var(--cream-2); border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: 18px 22px; color: var(--forest-deep); font-size: 0.94rem; margin: 24px 0;
}

/* Footer */
.footer { background: var(--forest-deep); color: rgba(254,250,224,0.75); padding: 56px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 36px; }
.footer__brand-name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--cream); margin-bottom: 12px; font-weight: 600; }
.footer h4 { color: var(--gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(254,250,224,0.75); font-size: 0.92rem; }
.footer a:hover { color: var(--gold); }
.footer__scope { font-size: 0.86rem; line-height: 1.6; margin-top: 12px; }
.footer__bottom { border-top: 1px solid rgba(254,250,224,0.15); padding-top: 22px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .tile--lg, .tile--sm { grid-column: span 2; }
  .tile--wide { grid-column: span 4; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .topnav { display: none; }
  .burger { display: flex; }
  .topnav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 78px; left: 0; right: 0; background: var(--forest);
    padding: 12px 24px 20px; border-bottom: 3px solid var(--gold); gap: 2px;
  }
  .topnav.is-open .topnav__cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; }
  .tile--lg, .tile--sm, .tile--wide { grid-column: span 1; }
  .ledger, .ledger thead, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger thead { display: none; }
  .ledger td { border-bottom: 1px solid var(--line); }
  .ledger td:first-child { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}
