/* Design tokens follow the meWork commercial proposal (drafts/Proposta-Comercial-meWork-modelo-2026-10-01.html).
   No inline styles anywhere: the Plesk CSP is style-src 'self'. Fonts: system stack, Inter when installed locally. */
:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #475467;
  --muted-2: #667085;
  --line: #E4E7EC;
  --surface: #F8FAFC;
  --teal: #28B2A2;
  --teal-d: #0F766E;
  --teal-bg: #E9F7F5;
  --teal-line: #BFE6E0;
  --teal-soft: #8FD9CF;
  --navy: #0B1220;
  --amber-bg: #FEF6E0;
  --amber-ink: #7A4D00;
  --radius: 16px;
  --radius-sm: 14px;
  --shadow: 0 8px 22px -16px rgba(15, 23, 42, 0.35);
  --shadow-lift: 0 10px 30px -12px rgba(15, 23, 42, 0.28), 0 2px 6px -2px rgba(15, 23, 42, 0.08);
  --mono: "JetBrains Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Inter, "Inter Display", system-ui, -apple-system, "Segoe UI", Roboto, "DejaVu Sans", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
}

a { color: var(--teal-d); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-d); outline-offset: 3px; border-radius: 4px; }

.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;
}

.skip { position: absolute; left: 12px; top: -48px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Color bar (7 brand colors) */
.colorbar { display: inline-flex; gap: 6px; align-items: center; }
.colorbar i { display: block; width: 30px; height: 6px; border-radius: 99px; }
.colorbar i:nth-child(1) { background: #5ECCC4; }
.colorbar i:nth-child(2) { background: #FFCD00; }
.colorbar i:nth-child(3) { background: #2581C4; }
.colorbar i:nth-child(4) { background: #84D0F5; }
.colorbar i:nth-child(5) { background: #BA589E; }
.colorbar i:nth-child(6) { background: #EA5045; }
.colorbar i:nth-child(7) { background: #95C23D; }

/* Hero: same language as the proposal cover */
.hero {
  position: relative;
  color: #fff;
  padding: 28px 0 40px;
  background:
    radial-gradient(60% 90% at 92% 10%, rgba(40, 178, 162, 0.50) 0%, rgba(40, 178, 162, 0) 70%),
    radial-gradient(50% 80% at 70% 100%, rgba(186, 89, 156, 0.40) 0%, rgba(186, 89, 156, 0) 70%),
    radial-gradient(50% 90% at 0% 100%, rgba(46, 130, 196, 0.45) 0%, rgba(46, 130, 196, 0) 70%),
    linear-gradient(160deg, #0E1730 0%, #0A0F1E 55%, #070B16 100%);
}
.hero :focus-visible { outline-color: var(--teal-soft); }
.hero a { color: #fff; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.brand img { display: block; height: 25px; width: auto; }
.hero-flag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 99px; padding: 3px 12px;
}
.crumbs { font-size: 0.88rem; color: #CBD5E1; margin-bottom: 18px; }
.crumbs a { color: #fff; }
.hero-eyebrow { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-soft); }
.hero h1 { margin: 10px 0 0; max-width: 820px; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.hero-lead { margin: 14px 0 0; max-width: 680px; font-size: 1.1rem; font-weight: 300; color: #CBD5E1; }
.hero .colorbar { margin-top: 28px; }

.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; font-size: 1rem; color: #E3E8EF; font-variant-numeric: tabular-nums; }
.hero-status span:not(.seal) + span::before { content: "·"; margin-right: 18px; color: rgba(255, 255, 255, 0.45); }
.seal {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: var(--navy); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  border-radius: 99px; padding: 4px 14px 4px 10px;
}
.seal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.seal-soon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.seal-soon::before { background: #FFCD00; }
.hero-signed { margin: 8px 0 0; color: #CBD5E1; font-size: 0.95rem; }
.hero-cta { margin: 26px 0 0; }

.url-box {
  margin-top: 18px; max-width: 760px; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-sm);
}
.url-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-soft); margin-bottom: 4px; }
.url-box code.url { color: #fff; font-size: 0.95rem; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; border-radius: 12px; padding: 12px 20px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
}
.button-hero { background: var(--teal); color: var(--navy); font-size: 1.1rem; padding: 16px 26px; box-shadow: 0 12px 30px -12px rgba(40, 178, 162, 0.75); }
.hero a.button-hero { color: var(--navy); }
.hero a.button-hero:hover { background: #5ECCC4; color: var(--navy); }
.button-hero::after, .button-primary::after, .button-secondary::after { content: "↗"; font-weight: 600; }
.button-primary { background: var(--teal-d); color: #fff; }
.button-primary:hover { background: var(--ink); color: #fff; }
.button-secondary { background: #fff; color: var(--teal-d); border-color: var(--teal-line); }
.button-secondary:hover { background: var(--teal-bg); color: var(--ink); }

button.copy {
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--teal-line); background: #fff; color: var(--teal-d); border-radius: 8px; padding: 4px 12px;
}
button.copy:hover { background: var(--teal-bg); }
.hero button.copy { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.hero button.copy:hover { background: rgba(255, 255, 255, 0.22); }

code, .url { font-family: var(--mono); font-size: 0.86rem; overflow-wrap: anywhere; }
.url-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* Main */
main.wrap { flex: 1; padding-top: 40px; padding-bottom: 64px; }

h2.sec { display: flex; margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h2.sec .t { border-bottom: 2px solid var(--teal); padding-bottom: 5px; }
.lead { margin: 0 0 22px; max-width: 720px; color: var(--ink-2); }
.empty { color: var(--muted); }

.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 99px; padding: 2px 10px; border: 1px solid transparent; white-space: nowrap;
}
.badge-vigente { background: var(--teal-bg); color: var(--teal-d); border-color: var(--teal-line); }
.badge-superada { background: #F2F4F7; color: var(--ink-2); border-color: var(--line); }
.badge-soon { background: var(--amber-bg); color: var(--amber-ink); border-color: #F5DC9C; }

/* Home cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px; box-shadow: inset 0 4px 0 var(--teal), var(--shadow);
}
.card.is-soon { box-shadow: inset 0 4px 0 var(--line), var(--shadow); }
.card-eyebrow { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.card h3 { margin: 8px 0 0; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.card-d { margin: 8px 0 0; color: var(--muted); font-size: 0.94rem; }
.card-status { margin: 16px 0 0; color: var(--ink-2); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 20px; }
.link-more { font-weight: 600; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: 40px; margin-bottom: 20px; }
.tl-item::before {
  content: ""; position: absolute; left: 2px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid #98A2B3;
}
.tl-item.is-current::before { border-color: var(--teal); background: var(--teal-bg); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.tl-item.is-current .tl-card { border-color: var(--teal-line); box-shadow: inset 4px 0 0 var(--teal), var(--shadow-lift); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tl-head h3 { margin: 0; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tl-period { margin: 8px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.tl-meta { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.tl-actions { margin: 16px 0 0; }
.tl-url { margin: 12px 0 0; color: var(--ink-2); }

details.auth { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.auth summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
details.auth p { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
details.auth dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 0.9rem; }
details.auth dt { color: var(--muted-2); }
details.auth dd { margin: 0; min-width: 0; }
.hash { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hash code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 0.8rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.site-footer p { margin: 0; }
.site-footer .colorbar i { width: 18px; height: 4px; }

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 20px 0 32px; }
  .hero-top { margin-bottom: 26px; }
  .brand img { height: 21px; }
  .hero-status { gap: 6px 12px; }
  .hero-status span:not(.seal) + span::before { margin-right: 12px; }
  .button-hero { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .tl-item { padding-left: 30px; }
  .timeline::before { left: 7px; }
  .tl-item::before { left: 0; }
  .tl-card { padding: 18px; }
  details.auth dl { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .skip, button.copy, .colorbar, .button::after { display: none !important; }
  .hero { background: #fff; color: var(--ink); padding: 0 0 12pt; border-bottom: 1pt solid var(--line); }
  .hero a, .hero .crumbs, .hero-lead, .hero-signed, .hero-status { color: var(--ink-2); }
  .hero-eyebrow, .url-label { color: var(--teal-d); }
  .brand img { content: url("me360-logo.png"); }
  .hero-flag { color: var(--muted); border-color: var(--line); }
  .seal { background: none; color: var(--teal-d); border: 1pt solid var(--teal-d); }
  .url-box { background: none; border-color: var(--line); }
  .url-box code.url { color: var(--ink); }
  .button { background: none !important; color: var(--teal-d) !important; border: 1pt solid var(--teal-d); box-shadow: none; padding: 4pt 10pt; }
  .card, .tl-card { box-shadow: none !important; break-inside: avoid; }
  main.wrap { padding-top: 16pt; padding-bottom: 0; }
  .site-footer { border-top: 1pt solid var(--line); }
}
