/* Consultation Coordination Desk — "Fichero" site: cream stationery, navy desk, folder tabs. */

@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
  --cream: #f7f1e6;
  --card: #fffdf8;
  --sunk: #ede5d6;
  --line: #ded4c3;
  --navy: #232e47;
  --navy-2: #1b2438;
  --ink-soft: #4a5268;
  --coral: #f64c3c;
  --coral-deep: #b8352a;
  --amber: #fc9c3a;
  --amber-deep: #8f4c06;
  --teal: #0c9891;
  --teal-deep: #08635f;
  --slate: #5b6b8c;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 400 17px/1.6 var(--text); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 22ch; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.kicker { font: 700 .78rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: .8em; }

/* Header */
.top { background: var(--cream); position: sticky; top: 0; z-index: 5; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font: 700 1.05rem/1.2 var(--display); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 8px 8px 0 0; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.tabs-rule { height: 10px; border-bottom: 3px solid var(--navy); display: flex; gap: 5px; align-items: flex-end; padding-left: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); }
.tabs-rule span { width: 34px; height: 7px; border-radius: 4px 4px 0 0; background: var(--amber); }
.tabs-rule span:nth-child(2) { background: var(--teal); }
.tabs-rule span:nth-child(3) { width: 22px; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); margin-bottom: .45em; }
.hero h1 span { display: block; }
.hero h1 .hl { color: var(--coral-deep); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 28px 0 22px; }
.link-arrow { font-weight: 700; color: var(--navy); }
.link-arrow::after { content: " ↓"; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-weight: 700; font-size: .85rem; padding: 6px 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 8px 8px 8px 2px; }

.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 10px 10px 10px 2px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.cta:hover { background: var(--coral-deep); color: #fff; }
.cta--soon { background: var(--sunk); color: var(--navy); border: 1.5px dashed var(--ink-soft); cursor: default; }

/* The navy desk with two index cards standing in it */
.desk { position: relative; min-height: 600px; border-radius: 22px; background: var(--navy) url("/assets/app/desk.webp") center / cover; padding: 40px 28px 0; display: flex; justify-content: center; align-items: flex-end; gap: 22px; overflow: hidden; }
.desk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: var(--navy-2); border-top: 6px solid var(--coral); }
.file-card { position: relative; margin: 0; width: 46%; max-width: 260px; background: var(--cream); border-radius: 14px 14px 0 0; padding: 8px 8px 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.file-card img { border-radius: 9px 9px 0 0; }
.file-card--a { transform: translateY(24px); }
.file-card--b { transform: translateY(-18px); }
.file-tab { position: absolute; top: -26px; left: 18px; height: 26px; padding: 0 14px; border-radius: 8px 8px 0 0; font: 700 .74rem/26px var(--text); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.file-tab--amber { background: var(--amber); color: var(--navy); }
.file-tab--teal { background: var(--teal); }

/* Stages */
.stages { padding: 72px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stage { position: relative; padding: 26px 20px 20px; background: var(--cream); border: 1.5px solid var(--line); border-top: 6px solid var(--amber); border-radius: 0 10px 10px 10px; }
.stage::before { content: ""; position: absolute; top: -20px; left: -1.5px; width: 76px; height: 16px; border-radius: 8px 8px 0 0; background: inherit; border: inherit; border-bottom: 0; border-top-width: 0; background: var(--amber); }
.stage--slate { border-top-color: var(--slate); } .stage--slate::before { background: var(--slate); }
.stage--teal { border-top-color: var(--teal); } .stage--teal::before { background: var(--teal); }
.stage--grey { border-top-color: #8b8f9c; } .stage--grey::before { background: #8b8f9c; }
.stage__num { font: 700 2.2rem/1 var(--display); color: var(--navy); display: block; margin-bottom: 10px; }
.stage h3 { font-size: 1.2rem; }
.stage p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Features: alternating text card and real screen */
.features { padding: 80px 0 64px; }
.feature { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center; margin: 64px 0; }
.feature--flip { grid-template-columns: 300px 1fr; }
.feature--flip .feature__text { order: 2; }
.feature__text { background: var(--card); border: 1.5px solid var(--line); border-radius: 0 14px 14px 14px; padding: 34px 34px 26px; position: relative; max-width: 560px; justify-self: end; }
.feature--flip .feature__text { justify-self: start; }
.feature__tab { position: absolute; top: -30px; left: -1.5px; height: 30px; padding: 0 16px; border-radius: 10px 10px 0 0; background: var(--navy); color: #fff; font: 700 .76rem/30px var(--text); letter-spacing: .12em; text-transform: uppercase; }
.feature h3 { font-size: 1.7rem; }
.feature p { color: var(--ink-soft); margin: 0; }
.feature__shot { margin: 0; background: var(--navy); padding: 10px; border-radius: 18px; box-shadow: 0 14px 34px rgba(35, 46, 71, .25); }
.feature__shot img { border-radius: 10px; }

.extras { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.extras li { border-left: 4px solid var(--coral); padding: 6px 0 6px 18px; }
.extras h3 { font-size: 1.15rem; margin-bottom: .3em; }
.extras p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Note */
.note { padding: 24px 0 72px; }
.note__card { background: var(--sunk); border-radius: 0 16px 16px 16px; padding: 34px 36px 22px; position: relative; }
.note__card::before { content: ""; position: absolute; top: -14px; left: 0; width: 120px; height: 14px; background: var(--sunk); border-radius: 10px 10px 0 0; }
.note h2 { font-size: 1.7rem; }

/* FAQ */
.faq { padding: 72px 0; background: var(--card); border-top: 1px solid var(--line); }
details { border-bottom: 1.5px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.18rem/1.35 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 700 1.5rem/1 var(--text); color: var(--coral-deep); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); padding-bottom: 8px; }

/* Download band */
.download { background: var(--navy) url("/assets/app/desk.webp") right center / cover; color: #fff; padding: 64px 0; position: relative; }
.download::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 46, 71, .96) 0%, rgba(35, 46, 71, .9) 55%, rgba(35, 46, 71, .55) 100%); }
.download__inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.download__inner img { border-radius: 22px; }
.download h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: none; margin-bottom: .2em; }
.download p { margin: 0; color: #d9dde8; }
.download a { color: var(--amber); }
.download__cta { display: grid; gap: 12px; justify-items: start; }
.download .cta { background: var(--coral-deep); }
.download .cta--soon { background: transparent; color: #fff; border-color: #c9cedb; }

/* Documents (privacy, 404) */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; max-width: none; }
.doc__meta { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }

/* Footer */
.foot { background: var(--navy-2); color: #d9dde8; padding: 48px 0 28px; border-top: 6px solid var(--coral); }
.foot a { color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot__brand { display: flex; align-items: center; gap: 12px; font: 700 1.15rem/1.2 var(--display); color: #fff; }
.foot__brand img { border-radius: 10px; }
.foot__label { font: 700 .78rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.foot__small { font-size: .9rem; color: #b8bfd0; }
.foot__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid #34405c; font-size: .88rem; color: #b8bfd0; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .desk { min-height: 520px; }
  .stage-list { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature__text { order: 0; }
  .feature__text, .feature--flip .feature__text { justify-self: stretch; max-width: none; }
  .feature__shot { max-width: 300px; justify-self: center; }
  .extras { grid-template-columns: 1fr; }
  .download__inner { grid-template-columns: auto 1fr; }
  .download__cta { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top__row { min-height: 64px; }
  .brand span { font-size: .95rem; max-width: 12ch; }
  .nav a { padding: 10px 8px; font-size: .9rem; }
  .hero { padding: 36px 0 48px; }
  .desk { min-height: 420px; padding: 34px 14px 0; gap: 12px; }
  .stage-list { grid-template-columns: 1fr; }
  .feature__text { padding: 28px 22px 20px; }
  .note__card { padding: 28px 22px 16px; }
  .download__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
