@font-face {
  font-family: "Quicksand";
  src: url("/fonts/Quicksand-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #fff8ec;
  --card: #ffffff;
  --ink: #2b2d42;
  --muted: #6b6e88;
  --primary: #3a86ff;
  --pink: #ff7eb6;
  --yellow: #ffd93d;
  --green: #2ebd59;
  --shadow: 0 10px 30px rgba(43, 45, 66, 0.12);
}

:root:not([data-theme="light"]) {
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.6;
}

a { color: var(--primary); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 48px; height: 48px; border-radius: 12px; box-shadow: var(--shadow); }
.brand .word { font-size: 30px; font-weight: 900; letter-spacing: 0.5px; }
.word span:nth-child(7n+1) { color: #ff4d4d; }
.word span:nth-child(7n+2) { color: #ff9f1c; }
.word span:nth-child(7n+3) { color: #e0b400; }
.word span:nth-child(7n+4) { color: #2ebd59; }
.word span:nth-child(7n+5) { color: #3a86ff; }
.word span:nth-child(7n+6) { color: #8e5cf7; }
.word span:nth-child(7n+7) { color: #ff7eb6; }

.lang { display: flex; gap: 6px; }
.lang button {
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: #eef3ff;
  color: #2a6fdb;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 24px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; font-weight: 900; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 20px; }
.hero img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); background: #fff; }

.badge {
  display: inline-block;
  background: var(--yellow);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 900;
  margin-bottom: 14px;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.card { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 6px 0 6px; font-size: 20px; font-weight: 900; }
.card p { margin: 0; color: var(--muted); }
.dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.shots img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }

.doc { background: var(--card); border-radius: 28px; padding: 28px clamp(18px, 4vw, 44px); box-shadow: var(--shadow); margin: 8px 0 40px; }
.doc h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; font-weight: 900; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; font-weight: 900; }
.doc .meta { color: var(--muted); margin: 0 0 18px; }
.doc li { margin-bottom: 6px; }

footer { padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }

[data-lang="es"] .en, [data-lang="en"] .es { display: none; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .brand .word { font-size: 24px; }
}
