/* Gallito Studio: a studio sign at sunrise above a short shelf of apps; policy pages are plain reading columns. */
:root {
  --bg: #FFF6E3;          /* morning cream */
  --surface: #FFFFFF;
  --ink: #1E1B2E;
  --muted: #59536A;
  --line: #E8D6B0;
  --band: #0F3A40;        /* night teal, from the logo badge */
  --on-band: #FFF4DE;
  --on-band-muted: #BFD3CF;
  --comb: #B8291F;        /* rooster red, deep enough for text on cream */
  --sun: #F5A623;         /* marigold beak and sunrise */
  --focus: #2F5BD8;
  --display: 'Alfa Slab One', 'Rockwell', 'Georgia', serif;
  --body: 'Figtree', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --measure: 66ch;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B2A2F; --surface: #113840; --ink: #FFF4DE; --muted: #B9CCC8; --line: #24545C;
    --band: #071E22; --on-band: #FFF4DE; --on-band-muted: #A9C2BE; --comb: #FF7A6B; --sun: #F7B23F; --focus: #8DB0FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B2A2F; --surface: #113840; --ink: #FFF4DE; --muted: #B9CCC8; --line: #24545C;
  --band: #071E22; --on-band: #FFF4DE; --on-band-muted: #A9C2BE; --comb: #FF7A6B; --sun: #F7B23F; --focus: #8DB0FF;
  color-scheme: dark;
}

/* Language switch: only ever hides, so no element needs its display restored */
:root:not([data-lang="es"]) [data-l="es"] { display: none !important; }
:root[data-lang="es"] [data-l="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--comb); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; display: block; }
.brand span { font-family: var(--display); font-size: 1.3rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding-block: 10px; }
.nav a:hover { color: var(--comb); }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 2px; }
.lang button {
  font: 700 0.85rem/1 var(--body); letter-spacing: 0.06em; color: var(--ink);
  background: transparent; border: 0; border-radius: 999px; padding: 8px 12px; min-height: 36px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border-radius: 14px; border: 2px solid var(--ink);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  background: var(--sun); color: #1E1B2E; box-shadow: 0 4px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { color: #1E1B2E; transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.quiet { background: var(--surface); color: var(--ink); }
.btn.quiet:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 24px 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.eyebrow { font-weight: 800; color: var(--comb); letter-spacing: 0.04em; font-size: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.sunrise { width: 100%; max-width: 440px; justify-self: center; color: var(--ink); }
.sunrise .rays { transform-origin: 200px 228px; }
@media (prefers-reduced-motion: no-preference) {
  .sunrise .rays { animation: rise 1100ms cubic-bezier(.2, .8, .2, 1) both; }
  .sunrise .sun { animation: rise 900ms cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes rise { from { transform: translateY(18px); opacity: 0.4; } }

/* Apps */
.section { padding-block: 56px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); max-width: var(--measure); }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.app {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 6px 0 var(--ink);
}
.app-top { display: flex; align-items: center; gap: 16px; }
.app-top img { width: 76px; height: 76px; border-radius: 18px; flex: none; display: block; }
.app h3 { font-size: 1.6rem; }
.kind { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.app .desc { flex: 1; }
.app-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 6px; border-top: 2px dashed var(--line); }
.chip { display: inline-block; font-size: 0.82rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--sun); color: #1E1B2E; }
.platforms { font-size: 0.9rem; color: var(--muted); }
.app-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.app-links a { padding-block: 6px; }

/* Promise band */
.band { background: var(--band); color: var(--on-band); }
.band .section-head p { color: var(--on-band-muted); }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.promise { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.promise h3 { font-size: 1.3rem; color: var(--sun); }
.promise p { color: var(--on-band-muted); }

/* Footer */
.site-foot { padding-block: 40px 56px; border-top: 2px solid var(--line); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; }
.foot-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.foot-col h2 { font-family: var(--body); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.foot-col a { color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--comb); text-decoration: underline; }
.small { font-size: 0.9rem; color: var(--muted); }
.addr { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* Reading pages (support, privacy) */
.page { padding-block: 16px 64px; }
.page .wrap { max-width: 820px; }
.page-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 2px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.updated { color: var(--muted); font-size: 0.95rem; }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: var(--measure); }
.prose h2 { font-size: 1.45rem; padding-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.summary { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.summary h2 { padding-top: 0; font-size: 1.2rem; }
.contact-card {
  display: flex; flex-direction: column; gap: 14px; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 0 var(--ink); margin-bottom: 36px;
}
.copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-row .addr { font-size: 1.25rem; }
.faq { display: flex; flex-direction: column; gap: 28px; }
.faq-group { display: flex; flex-direction: column; gap: 10px; }
.faq-group h2 { font-size: 1.5rem; }
details { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 0 18px; }
details[open] { border-color: var(--ink); }
summary { cursor: pointer; font-weight: 700; padding-block: 14px; min-height: 48px; }
details > div { padding-bottom: 16px; display: flex; flex-direction: column; gap: 10px; max-width: var(--measure); }
.other { margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--line); display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: baseline; }

/* 404 */
.lost { padding-block: 40px 96px; text-align: center; }
.lost .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.lost img { width: 140px; height: 140px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .sunrise { max-width: 260px; order: -1; }
  .apps, .promises { grid-template-columns: minmax(0, 1fr); }
}
