/*
  Shared design for every site under guillermoblancovera.es.
  Served at https://guillermoblancovera.es/shared/site.css and loaded by the other sites
  (training.guillermoblancovera.es…), so a change here restyles all of them.
  Keep it to tokens and common components; page-specific styles live in each site.
*/

:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #151923;
  --border: #232937;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --accent: #6ea8fe;
  --accent-2: #a78bfa;
  --on-accent: #0b0d12;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --surface: #ffffff;
    --border: #e4e7ef;
    --text: #12151c;
    --muted: #5b6475;
    --accent: #2f6fe4;
    --accent-2: #7c4ddb;
    --on-accent: #ffffff;
    --shadow: 0 10px 30px rgba(18, 21, 28, 0.08);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.menu a:hover { color: var(--text); text-decoration: none; }
.menu a.btn { color: var(--on-accent); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent); font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-large { padding: 16px 28px; font-size: 1.05rem; word-break: break-all; }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-size: 0.88rem; font-weight: 500; background: var(--surface);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px color-mix(in srgb, #34d399 25%, transparent); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin: 20px 0; }
.grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.lead strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 48px; max-width: 24ch; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-accent { grid-column: span 2; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card-accent { grid-column: auto; } }
.card {
  padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card-accent { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); }
.card .link { display: inline-block; margin-top: 14px; font-weight: 600; }
a.card-link { display: block; color: var(--text); }
a.card-link:hover { text-decoration: none; }
.card-link .link { color: var(--accent); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tags span {
  padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--border); max-width: 820px; }
.timeline > li { position: relative; padding: 0 0 44px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); border: 3px solid var(--accent);
}
.tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; }
.tl-head h3 span { color: var(--muted); font-weight: 500; }
.tl-head time { color: var(--accent); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.timeline p, .timeline ul { color: var(--muted); font-size: 0.98rem; }
.timeline ul { margin: 0 0 1em; padding-left: 20px; }
.timeline ul li { margin-bottom: 4px; }

/* Contact */
.contact {
  text-align: center; padding: 64px 24px; border-radius: 28px; border: 1px solid var(--border);
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 70%);
}
.contact h2 { margin: 0 auto 16px; }
.contact .lead { margin: 0 auto 32px; }
.social { display: flex; justify-content: center; gap: 24px; margin-top: 28px; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-weight: 600; }
.social a:hover { color: var(--text); border-color: #0a66c2; text-decoration: none; }
.icon-in { width: 18px; height: 18px; fill: #0a66c2; flex: none; }

.footer { padding: 32px 0; color: var(--muted); font-size: 0.88rem; text-align: center; border-top: 1px solid var(--border); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; font-size: 1.05rem; }
  .menu a.btn { margin-top: 8px; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 72px 0; }
  h2 { margin-bottom: 32px; }
}

/* Language switcher */
.menu a.lang { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }
.menu a.lang:hover { border-color: var(--accent); }
@media (max-width: 860px) { .menu a.lang { align-self: flex-start; margin: 8px 0 4px; padding: 6px 14px; } }
