:root {
  --ink: #1d1d1d;
  --paper: #f4f5f5;
  --red: #ee3d24;
  --orange: #f5a31a;
  --white: #ffffff;
  --muted: #b9b9b9;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--white);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:where(a, button):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Portada: papel cuadriculado con el logo ─────────────────────────── */
.hero {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(120, 140, 160, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 160, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: clamp(40px, 9vw, 96px) 20px clamp(36px, 7vw, 70px);
  text-align: center;
}

.hero img {
  display: block;
  margin: 0 auto;
  width: min(78vw, 460px);
  height: auto;
}

/* Borde de papel rasgado que une la portada con la zona oscura */
.torn {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
  /* el PNG es la silueta clara del papel: lo transparente deja ver el fondo oscuro */
}

.torn-wrap { line-height: 0; }

/* ── Zona oscura ─────────────────────────────────────────────────────── */
.main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 56px;
  text-align: center;
}

.tagline {
  margin: clamp(30px, 6vw, 52px) 0 0;
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tagline small {
  display: block;
  margin-top: 4px;
  font-size: 0.85em;
  font-weight: 400;
  color: var(--muted);
}

.disciplines {
  margin: 18px auto 0;
  max-width: 640px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.disciplines li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.actions {
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 3px solid var(--orange);
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn--solid { background: var(--orange); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--orange); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--ghost:hover { background: var(--orange); color: var(--ink); }
}

.btn svg { width: 20px; height: 20px; flex: none; }

.contact-title {
  margin: 54px 0 16px;
  color: var(--orange);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.socials {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  text-align: left;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

@media (hover: hover) {
  .socials a:hover { border-color: var(--orange); background: rgba(245, 163, 26, 0.08); }
}

.badge {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.badge svg { width: 20px; height: 20px; }

.socials .label { display: block; font-weight: 700; line-height: 1.2; }
.socials .handle { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.2; }

.note {
  margin: 48px auto 0;
  max-width: 560px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer a { color: var(--white); text-underline-offset: 3px; }

/* ── Página del portafolio ──────────────────────────────────────────── */
.viewer-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(29, 29, 29, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.viewer-bar a { text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.viewer-bar .btn { min-height: 40px; padding: 0 16px; font-size: 0.85rem; border-width: 2px; }

.viewer { max-width: 1679px; margin: 0 auto; }
.viewer img { display: block; width: 100%; height: auto; background: #2a2a2a; }
.viewer .hint { margin: 0; padding: 10px 14px; text-align: center; font-size: 0.82rem; color: var(--muted); }
