/* Meridiano Siete. One page, light and dark. Palette = investor dossier :root, exact hex.
   The site opens in dark for everyone; the toggle (a checkbox, no JavaScript) switches to light. */
@font-face { font-family: "League Spartan"; src: url("fonts/league-spartan-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Dark (the dossier): the default for every visitor (Julian, 28 Oct 2026) */
:root {
  --bg: #1C1E24; --card: #262930; --field: #1C1E24;
  --head: #F2EFE9; --body: #D5D8DE; --muted: #A9B0BA;
  --line: #3A3F49;
  --btn: #5FD0C3; --btn-text: #1C1E24; --btn-hover: #F2EFE9;
  --accent: #5FD0C3; --ring: rgba(213, 216, 222, .22); --ring-accent: #5FD0C3;
  --logo-light: none; --logo-dark: block; --icon-sun: block; --icon-moon: none;
  --display: "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --logo-h: clamp(8rem, 22vh, 11rem);
  color-scheme: dark;
}
/* Light: only when the visitor flips the toggle */
:root:has(#tema:checked) {
  --bg: #F2EFE9; --card: #FFFFFF; --field: #F2EFE9;
  --head: #1C1E24; --body: #30343D; --muted: #565B64;
  --line: rgba(28, 30, 36, .16);
  --btn: #1C1E24; --btn-text: #F2EFE9; --btn-hover: #0F766E;
  --accent: #0F766E; --ring: rgba(28, 30, 36, .18); --ring-accent: #5FD0C3;
  --logo-light: block; --logo-dark: none; --icon-sun: none; --icon-moon: block;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; position: relative;
  background: var(--bg); color: var(--body);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background-color .25s ease, color .25s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--head); letter-spacing: -0.01em; }
p { margin: 0; }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }

/* Theme toggle, top right: a visually hidden checkbox and its label */
#tema { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.toggle {
  position: absolute; top: clamp(.75rem, 2.5vh, 1.5rem); right: var(--gutter); z-index: 5;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--head); cursor: pointer;
  transition: border-color .2s ease;
}
.toggle:hover { border-color: var(--accent); }
#tema:focus-visible + .toggle { outline: 2px solid var(--accent); outline-offset: 3px; }
.toggle svg { width: 20px; height: 20px; }
.toggle .sun { display: var(--icon-sun); }
.toggle .moon { display: var(--icon-moon); }

/* One screen: who we are on the left, the form on the right */
.page { flex: 1; display: flex; align-items: center; padding-block: clamp(4rem, 9vh, 5.5rem) clamp(2.5rem, 7vh, 4.5rem); }
.grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
.intro h1 { margin-top: clamp(2.25rem, 5vh, 3.25rem); font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.02; }
.lead { margin-top: 1.1rem; max-width: 30ch; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; }
@media (min-width: 960px) {
  :root { --logo-h: clamp(14rem, 34vh, 20rem); }
  .grid { grid-template-columns: 5fr 6fr; align-items: center; }
}

/* The logo, alive: the particle 7 drawn on a canvas behind the page, glued to the logo's box (js/home.js).
   The image is the first paint and the fallback (reduced motion, no WebGL, slow machines). */
.mark { position: relative; width: calc(var(--logo-h) * 720 / 842); height: var(--logo-h); }
.mark .logo { position: relative; z-index: 1; width: 100%; height: 100%; transition: opacity .6s ease; }
#hero { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
html.live #hero { opacity: 1; }
html.live .mark .logo { opacity: 0; }
html.still #hero { display: none; }
.tag { position: fixed; bottom: .6rem; right: .6rem; z-index: 5; margin: 0; padding: .45rem .7rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: .8125rem; line-height: 1.2; color: var(--muted); }
.page, .foot { position: relative; z-index: 1; }

/* Form */
.contact { background: var(--card); border-radius: 12px; padding: clamp(1.5rem, 3.5vw, 2.5rem); transition: background-color .25s ease; }
.contact h2 { font-size: 1.75rem; line-height: 1.15; }
form { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
label { font-size: .9375rem; font-weight: 600; color: var(--head); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .9rem;
  background: var(--field); color: var(--head); border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 1rem;
  transition: border-color .2s ease, background-color .25s ease;
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; }
.select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.35rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* bot trap, never seen by people */
.check { display: flex; align-items: center; gap: .7rem; min-height: 44px; font-weight: 400; font-size: 1rem; color: var(--body); }
.check input { width: 1.25rem; height: 1.25rem; min-height: 0; flex: none; accent-color: var(--accent); }
.check a { text-decoration-color: var(--accent); text-underline-offset: .25em; }
.btn {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.75rem; border: 0; border-radius: 8px;
  background: var(--btn); color: var(--btn-text); font: inherit; font-weight: 600; font-size: 1.0625rem;
  cursor: pointer; text-decoration: none; transition: background-color .2s ease;
}
.btn:hover { background: var(--btn-hover); }
.fine { color: var(--muted); font-size: 1rem; line-height: 1.5; }
@media (max-width: 520px) {
  .btn { justify-self: stretch; }
}

/* Footer: the company's legal identity */
.foot { border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.6; color: var(--muted); }
.foot .wrap { padding-block: 1.5rem; display: grid; gap: .5rem 2rem; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .3em; }
.foot a:hover { color: var(--head); }
@media (min-width: 960px) {
  .foot .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

/* Legal, thanks and error pages */
.legal-head { padding-block: 2rem; }
.legal-head a { display: inline-block; }
.legal-head img { height: 72px; width: auto; }
.legal-body { flex: 1; padding-bottom: clamp(3rem, 8vw, 6rem); }
.legal-body .wrap > div { border-top: 1px solid var(--line); padding-top: 2rem; }
.legal-body h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.legal-body h2 { font-size: 1.25rem; margin: 2.25rem 0 .6rem; }
.legal-body p, .legal-body dl { max-width: 42rem; margin: 0 0 .9rem; }
.legal-body h1 + p { margin-top: 1rem; }
.legal-body dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; }
.legal-body dt { color: var(--muted); }
.legal-body dd { margin: 0; color: var(--head); }
.legal-body a { text-decoration-color: var(--accent); text-underline-offset: .25em; }
.legal-body .btn { margin-top: 1rem; }
.updated { color: var(--muted); margin-top: 2.5rem; }
@media (max-width: 520px) {
  .legal-body dl { grid-template-columns: 1fr; gap: 0; }
  .legal-body dd { margin-bottom: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
