/* Sitio de TeeFore. Colores de la marca: crema #F3F0E7, azul #1F2A2E, salvia #9FB8B2. */
:root {
  --bg: #f3f0e7;
  --surface: #e9e5d8;
  --ink: #1f2a2e;
  --text: #1f2a2e;
  --muted: #55625f;
  --line: rgba(31, 42, 46, 0.14);
  --sage: #9fb8b2;
  --accent: #1f2a2e;
  --on-accent: #f3f0e7;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e282e;
    --surface: #26333a;
    --text: #ece8dc;
    --muted: #a9b5b2;
    --line: rgba(236, 232, 220, 0.14);
    --accent: #e9e4d2;
    --on-accent: #1e282e;
  }
  .logo-ink { display: none; }
  .logo-cream { display: block !important; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; z-index: 10; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; }
.logo { height: 34px; width: auto; }
.logo-cream { display: none; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s; }
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line); }
.btn[aria-disabled] { cursor: default; }

/* Inicio */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; }
.sub { font-size: 20px; color: var(--muted); max-width: 30ch; margin: 0 0 32px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { background: var(--ink); border-radius: 32px; aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 30px 80px rgba(31, 42, 46, 0.22); }
.hero-art img { width: 52%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-art { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-art { animation-delay: 0.08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 80px; }
.f { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.f h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.f p { margin: 0; color: var(--muted); }
.f-big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.f-big img { margin-top: auto; padding-top: 24px; border-radius: 12px; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.f-ink { background: var(--ink); color: #f3f0e7; }
.f-ink p { color: #b9c4c1; }
.f-sage { background: var(--sage); color: #1f2a2e; }
.f-sage p { color: #2f3d3f; }
.features .f:last-child { grid-column: span 3; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.features .f:last-child h2 { margin: 0; }

.clubs { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.clubs h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px; }
.clubs p { margin: 0; color: var(--muted); max-width: 56ch; }

/* Documentos */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 8px; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.lead { font-size: 19px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; scroll-margin-top: 84px; }
.doc section { scroll-margin-top: 84px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.toc { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0 8px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.contact > div { background: var(--surface); border-radius: var(--radius); padding: 4px 24px 12px; }
.contact h2 { margin-top: 20px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

.foot { background: var(--ink); color: #c9d1ce; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 32px; padding-bottom: 40px; }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto !important; }
.foot a { text-decoration: none; color: #ece8dc; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 14px; font-size: 14px; }
  .logo { height: 28px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 48px; }
  .hero-art { max-width: 280px; width: 100%; justify-self: center; border-radius: 24px; }
  .features { grid-template-columns: 1fr; }
  .f-big, .features .f:last-child { grid-column: auto; grid-row: auto; }
  .features { padding-bottom: 48px; }
  .clubs { flex-direction: column; align-items: flex-start; padding-top: 40px; padding-bottom: 64px; }
  .features .f:last-child { display: block; }
  .features .f:last-child h2 { margin-bottom: 8px; }
  .toc ol { columns: 1; }
  .contact { grid-template-columns: 1fr; }
  .foot-links { margin-left: 0 !important; }
}

/* Modo oscuro: superficies que en claro usan el azul de la marca (va al final para ganarle a las reglas base). */
@media (prefers-color-scheme: dark) {
  .hero-art { background: #26333a; box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.35); }
  .f-ink { background: #2f3f46; }
  .foot { border-top: 1px solid var(--line); background: #1a2328; }
}
