/* ==========================================================================
   Jornadasí — jornadasi.mx
   Brand system: La Jornada · working standard v0.9
   Tokens mirror brand-tokens.css from the brand kit. Do not redefine colours
   outside :root — change them here and the whole site follows.
   ========================================================================== */

:root {
  /* Brand palette */
  --tinta:        #151D1A;
  --hueso:        #F7F4ED;
  --barro:        #C2532B;
  --verde:        #1F5742;
  --gris:         #4F5753;
  --white:        #FFFFFF;

  /* Derived surfaces */
  --tinta-soft:   #1E2A26;
  --line:         #E2DDD0;
  --line-dark:    #2C3A35;
  --barro-soft:   #F6E7DF;
  --verde-soft:   #E5EEE9;

  /* Type */
  --font-ui:        "Archivo", "Lato", system-ui, -apple-system, sans-serif;
  --font-editorial: "Fraunces", Georgia, "Times New Roman", serif;

  /* Radius — from brand tokens */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Rhythm */
  --pad: clamp(20px, 5vw, 80px);
  --section: clamp(64px, 9vw, 128px);
  --measure: 62ch;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--verde); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tinta); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--tinta); color: var(--hueso);
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ------------------------------------------------------------- layout --- */

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section--tinta { background: var(--tinta); color: var(--hueso); }
.section--band { background: var(--white); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--barro); margin-bottom: 18px;
}
.section--tinta .eyebrow { color: #E08A62; }

.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--gris); max-width: var(--measure); }
.section--tinta .lede { color: #C3CCC7; }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--barro); color: var(--white); }
.btn--primary:hover { background: #A8431F; color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--tinta); background: transparent; }
.btn--ghost:hover { background: var(--tinta); color: var(--hueso); }
.section--tinta .btn--ghost { color: var(--hueso); }
.section--tinta .btn--ghost:hover { background: var(--hueso); color: var(--tinta); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* --------------------------------------------------------------- nav ---- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 237, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { width: 168px; }
.nav__links { display: none; margin-left: auto; gap: 30px; }
.nav__links a {
  color: var(--tinta); text-decoration: none; font-size: 15px; font-weight: 500;
  padding-block: 8px;
}
.nav__links a:hover { color: var(--barro); }
.nav__cta { margin-left: auto; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}
@media (max-width: 560px) {
  .nav__cta .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
  .nav__logo img { width: 136px; }
}

/* -------------------------------------------------------------- hero ---- */

.hero { background: var(--tinta); color: var(--hueso); padding-block: clamp(64px, 10vw, 132px); }
.hero__grid { display: grid; gap: clamp(44px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1fr 1fr; } }

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 26px;
}
.hero h1 .accent { color: #E27A4E; }
.hero__sub { font-size: clamp(17px, 1.8vw, 21px); color: #C3CCC7; max-width: 50ch; }
.hero__note { margin-top: 26px; font-size: 14px; color: #93A09A; max-width: 46ch; }

.hero__tag {
  font-family: var(--font-editorial);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 400; font-style: italic;
  color: var(--hueso); margin-bottom: 30px;
  padding-left: 18px; border-left: 3px solid var(--barro);
}

/* Phone mock ------------------------------------------------------------ */

.phone {
  width: min(320px, 100%); margin-inline: auto;
  background: var(--tinta-soft); border: 1px solid var(--line-dark);
  border-radius: 28px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.phone__bar {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); margin-bottom: 18px;
}
.phone__avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.phone__who { font-size: 14px; font-weight: 600; }
.phone__status { font-size: 12px; color: #93A09A; }
.bubble { max-width: 86%; padding: 11px 14px; font-size: 14.5px; line-height: 1.45; margin-bottom: 12px; }
.bubble--in  { background: #253330; border-radius: 14px 14px 14px 4px; }
.bubble--out { background: var(--verde); border-radius: 14px 14px 4px 14px; margin-left: auto; font-weight: 600; }
.bubble__time { display: block; font-size: 11px; color: #93A09A; margin-top: 5px; }
.bubble--out .bubble__time { color: #B9D2C6; }

/* ------------------------------------------------------------- steps ---- */

.steps { display: grid; gap: 28px; margin-top: 48px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

.step { padding-top: 26px; border-top: 2px solid var(--tinta); }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--barro); color: var(--white);
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--gris); font-size: 16px; }

/* -------------------------------------------------------------- cards --- */

.cards { display: grid; gap: 22px; margin-top: 48px; }
@media (min-width: 760px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--gris); font-size: 16px; }
.card__role {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--verde); margin-bottom: 14px;
}

/* Feature list ---------------------------------------------------------- */

.features { display: grid; gap: 2px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { background: var(--white); padding: 28px 30px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--gris); font-size: 15.5px; }

/* --------------------------------------------------------------- FAQ ---- */

.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; gap: 16px;
  padding-block: 24px;
  font-size: 18px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex-shrink: 0;
  width: 13px; height: 13px; margin-top: 7px;
  border-right: 2.5px solid var(--barro); border-bottom: 2.5px solid var(--barro);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding-bottom: 26px; color: var(--gris); max-width: var(--measure); }

/* ------------------------------------------------------------- form ----- */

.form { display: grid; gap: 18px; margin-top: 10px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--tinta);
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 14px; min-height: 50px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--barro); outline: none; }
.field__hint { font-size: 13px; color: var(--gris); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 680px) { .form__row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--gris); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--barro); }

.contact__grid { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 940px) { .contact__grid { grid-template-columns: 1fr 1fr; } }

.contact__alt { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.contact__alt a { color: #E6BFAE; font-weight: 600; }
.contact__alt a:hover { color: var(--hueso); }

/* ------------------------------------------------------------ footer ---- */

.footer { background: var(--tinta); color: #93A09A; padding-block: 56px 40px; border-top: 1px solid var(--line-dark); }
.footer__top { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.footer__logo img { width: 180px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; }
.footer__links a { color: #C3CCC7; text-decoration: none; }
.footer__links a:hover { color: var(--hueso); }
.footer__legal { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 13.5px; line-height: 1.65; max-width: 80ch; }
.footer__legal p + p { margin-top: 10px; }

/* ------------------------------------------------- simple content page -- */

.doc { padding-block: clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 20px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--gris); max-width: var(--measure); font-size: 16.5px; }
.doc p + p { margin-top: 14px; }
.doc ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.doc li + li { margin-top: 8px; }
.doc .updated { font-size: 14px; color: var(--gris); }
.doc .todo {
  background: var(--barro-soft); border-left: 4px solid var(--barro);
  padding: 18px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 28px 0; font-size: 15px; color: var(--tinta); max-width: var(--measure);
}

/* =========================================================================
   Additions for the multi-page site (depth pages, SEO content, calculator)
   ========================================================================= */

/* ------------------------------------------------------- page header ---- */
.pagehead { background: var(--tinta); color: var(--hueso); padding-block: clamp(48px, 7vw, 86px); }
.pagehead h1 { font-size: clamp(32px, 5vw, 56px); max-width: 20ch; }
.pagehead .lede { color: #C3CCC7; margin-top: 20px; font-size: clamp(17px, 1.7vw, 20px); }
.pagehead .eyebrow { color: #E08A62; }

/* ------------------------------------------------------- breadcrumbs ---- */
.crumbs { font-size: 13.5px; color: #93A09A; margin-bottom: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: #5E6B66; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: #C3CCC7; text-decoration: none; }
.crumbs a:hover { color: var(--hueso); text-decoration: underline; }

/* ----------------------------------------------------------- article ---- */
.article { padding-block: clamp(48px, 7vw, 88px); }
.article__grid { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 1000px) { .article__grid { grid-template-columns: minmax(0,1fr) 258px; } }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 56px 0 16px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(19px, 2vw, 22px); margin: 36px 0 10px; scroll-margin-top: 92px; }
.prose p, .prose li { color: var(--gris); font-size: 17px; }
.prose p + p { margin-top: 16px; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 9px; }
.prose strong { color: var(--tinta); font-weight: 600; }
.prose a { font-weight: 500; }

/* ------------------------------------------------------------- aside ---- */
.toc { position: sticky; top: 92px; align-self: start; font-size: 14.5px; }
.toc h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: 14px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0 7px 16px; color: var(--gris); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--tinta); border-left-color: var(--barro); }
@media (max-width: 999px) { .toc { display: none; } }

/* ------------------------------------------------- answer summary box --- */
.summary { background: var(--verde-soft); border-radius: var(--r-md); padding: 26px 28px; margin-bottom: 40px; }
.summary h2 { font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--verde); margin: 0 0 12px !important; font-weight: 700; }
.summary p, .summary li { color: #27403A; font-size: 16.5px; }
.summary ul { margin-top: 10px; padding-left: 20px; list-style: disc; }

/* ------------------------------------------------------------- notes ---- */
.note { border-left: 3px solid var(--barro); background: var(--barro-soft); padding: 20px 24px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 28px 0; }
.note p { color: #5C2E18; font-size: 16px; }
.note strong { color: #4A2412; }

.note--plain { border-left-color: var(--gris); background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gris); }
.note--plain p { color: var(--gris); }

/* ------------------------------------------------------------ tables ---- */
.tablewrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
table.ftable { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--white); }
.ftable caption { text-align: left; padding: 16px 20px 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.ftable th, .ftable td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ftable thead th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); border-bottom: 2px solid var(--tinta); }
.ftable tbody tr:last-child td { border-bottom: 0; }
.ftable td { color: var(--gris); }
.ftable td:first-child, .ftable th:first-child { color: var(--tinta); font-weight: 600; }
.ftable .num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- glossary ---- */
.glossary { margin-top: 36px; border-top: 1px solid var(--line); }
.gterm { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.gterm h2 { font-size: 20px !important; margin: 0 0 4px !important; }
.gterm__src { font-size: 13.5px; color: var(--barro); font-weight: 600; margin-bottom: 10px; }
.gterm p { color: var(--gris); font-size: 16.5px; max-width: var(--measure); }

.alphabet { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.alphabet a {
  display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--tinta); background: var(--white);
}
.alphabet a:hover { background: var(--tinta); color: var(--hueso); border-color: var(--tinta); }

/* -------------------------------------------------------- calculator ---- */
.calc { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: 8px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc__panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); }
.calc__out { background: var(--tinta); color: var(--hueso); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); position: sticky; top: 92px; }
.calc__row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 15.5px; }
.calc__row span:first-child { color: #C3CCC7; }
.calc__row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.calc__total { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-top: 22px; padding-top: 20px; border-top: 2px solid #E08A62; }
.calc__total span { color: #C3CCC7; font-size: 15px; }
.calc__total strong { font-size: clamp(26px, 4vw, 36px); color: var(--hueso); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calc__note { margin-top: 20px; font-size: 13.5px; color: #93A09A; line-height: 1.6; }
.calc__legal { margin-top: 26px; font-size: 13.5px; color: var(--gris); max-width: var(--measure); }

/* ---------------------------------------------------------- sectors ----- */
.sector { padding: 30px 0; border-top: 1px solid var(--line); }
.sector h3 { font-size: 21px; margin-bottom: 8px; }
.sector p { color: var(--gris); font-size: 16.5px; max-width: var(--measure); }
.sector__tag { display: inline-block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--verde); margin-bottom: 8px; }

/* --------------------------------------------------------- CTA band ----- */
.band { background: var(--verde); color: var(--hueso); padding-block: clamp(48px, 7vw, 76px); }
.band h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 22ch; }
.band p { color: #CBE0D6; margin-top: 16px; max-width: 52ch; font-size: 17px; }
.band .btn--primary { background: var(--hueso); color: var(--tinta); }
.band .btn--primary:hover { background: var(--white); color: var(--tinta); }
.band .btn--ghost { color: var(--hueso); }
.band .btn--ghost:hover { background: var(--hueso); color: var(--verde); }

/* ------------------------------------------------------ misc helpers ---- */
.meta-line { font-size: 14px; color: var(--gris); margin-top: 18px; }
.meta-line time { font-weight: 600; color: var(--tinta); }
.linklist { margin-top: 20px; display: grid; gap: 10px; }
.linklist a { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --------------------------------------------- footer multi-column ------ */
.footer__cols { display: grid; gap: 32px 48px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 760px) { .footer__cols { grid-template-columns: repeat(3, auto); gap: 32px 64px; } }
.footer__h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6F7C77; margin-bottom: 14px; font-weight: 700; }
.footer__col { display: grid; gap: 9px; font-size: 15px; }
.footer__col a { color: #C3CCC7; text-decoration: none; }
.footer__col a:hover { color: var(--hueso); text-decoration: underline; }
@media (max-width: 759px) { .footer__top { flex-direction: column; gap: 36px; } }
