:root {
  --bg: #e9e7c9;
  --ink: #161614;
  --pink: #f38db8;
  --line: #161614;
  --line-soft: #cfcdb0;
  --muted: #6d6b5f;
  --btn-bg: #161614;
  --btn-ink: #f5f3e6;
  --gutter: 16px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161614;
    --ink: #ece9cf;
    --line: #ece9cf;
    --line-soft: #3a3a35;
    --muted: #a9a79a;
    --btn-bg: #ece9cf;
    --btn-ink: #161614;
  }
}

:root[data-theme="dark"] {
  --bg: #161614;
  --ink: #ece9cf;
  --line: #ece9cf;
  --line-soft: #3a3a35;
  --muted: #a9a79a;
  --btn-bg: #ece9cf;
  --btn-ink: #161614;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.6; }

button { font: inherit; color: inherit; }

section[id] { scroll-margin-top: 24px; }

/* Layout */
main, .site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-title {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* Menú: tags + botón about en una sola fila */
main > .menu {
  padding-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.menu-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.btn-dark {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

/* Filtros: mismo tamaño, con borde */
.tag {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.tag:hover { background: var(--line-soft); }

.tag[aria-pressed="true"] {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

/* Botón about: cuadro negro, texto blanco */
.btn-dark {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--btn-bg);
}

.btn-dark:hover { opacity: 0.8; }

/* Lista de links */
.link-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.link-list li { border-bottom: 1px solid var(--line-soft); }

.link-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  transition: background 0.15s;
}

.link-row:hover { opacity: 1; }
.link-row:hover .link-title { color: var(--pink); }

.link-title { font-size: 1.05rem; font-weight: 400; }

.link-tags {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: right;
}

.empty { padding: 24px 0; }

/* About */
.about {
  padding: 72px 0 64px;
}

.about-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 20px;
}

.about-hero {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.about-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 560px;
}

.about-text p + p { margin-top: 1.1em; }
.about-text a { text-decoration: underline; color: var(--ink); }

.about-sub {
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.3em;
}

.about-text .about-sub:first-of-type { margin-top: 0; }

.about-note { opacity: 0.8; }

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.about-cols ul { list-style: none; }
.about-cols a { text-decoration: underline; color: var(--muted); }

.about-cols .about-sub { margin-top: 0; }
.about-cols .about-sub + ul { margin-bottom: 1.2em; }

/* CTA rosa */
.cta {
  padding: 64px 0 40px;
}

.cta h2 {
  color: var(--pink);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cta-link {
  color: var(--pink);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Contacto */
.contact {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.contact p { margin-bottom: 8px; }
.social { display: flex; gap: 20px; }
.social a { text-decoration: underline; }

/* Footer rosa */
.site-footer {
  padding-bottom: var(--gutter);
}

.footer-panel {
  background: var(--pink);
  color: #161614;
  padding: 32px var(--gutter) 24px;
  overflow: hidden;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.footer-cols p + p { margin-top: 12px; }
.footer-cols a { text-decoration: underline; }

.bold { font-weight: 800; font-size: 0.85rem; }

.wordmark {
  margin-top: 40px;
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(2.4rem, 10.5vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .link-row { flex-direction: column; gap: 4px; }
  .link-tags { text-align: left; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
}
