/* Fuente propia incrustada */
@font-face {
  font-family: "Suisse Intl";
  src: url("../assets/fonts/SuisseIntl-Medium.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-alt: #1a1a1c;
  --text: #f4f4f1;
  --text-muted: #8c8c87;
  --line: #2a2a2a;
  --invert-bg: #f4f4f1;
  --invert-text: #0b0b0c;

  --font-display: "Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1400px;
  --dur: 0.5s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.01s; }
  * { scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--gutter);
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand span { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.7rem; text-transform: none; display: block; margin-top: 0.15rem; letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 2.25rem; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.nav a { position: relative; padding-bottom: 0.2rem; color: var(--text-muted); transition: color var(--dur) var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }

@media (max-width: 720px) {
  .nav { position: fixed; inset: 0; top: 68px; background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 2rem var(--gutter); gap: 1.5rem; font-size: 1rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 14vh, 9rem) var(--gutter) clamp(3rem, 8vh, 6rem); border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, var(--bg) 95%); }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 1.5rem; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: 0.98; letter-spacing: -0.01em; margin: 0; max-width: 18ch; }
.hero-title em { font-style: normal; color: var(--text-muted); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-end; margin-top: clamp(2.5rem, 6vh, 4rem); }
.hero-desc { max-width: 46ch; color: var(--text-muted); font-size: 1.05rem; }

.btn { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--text); padding: 0.85rem 1.4rem; white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.btn:hover { background: var(--invert-bg); color: var(--invert-text); }

/* Image gallery (used across all sections in My Works) */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 1.5rem; }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-alt); }
.gallery-grid--small { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--small { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid, .gallery-grid--small { grid-template-columns: repeat(2, 1fr); }
}

/* Generic sections */
.section { padding: clamp(3rem, 8vh, 6rem) var(--gutter); border-bottom: 1px solid var(--line); }
.section-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1.25rem; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 2vw, 3rem); max-width: 22ch; margin: 0 0 1.5rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.prose { color: var(--text-muted); font-size: 1.05rem; max-width: 60ch; }
.prose p { margin: 0 0 1.2rem; }

.list-plain { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 0.85rem; }
.list-plain li { padding: 0.75rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--text-muted); }
.list-plain li span:last-child { color: var(--text); }

/* Contact */
.contact-form { display: flex; flex-direction: column; gap: 1.00rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.form-row input, .form-row textarea {
  background: none; border: none; border-bottom: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  padding: 0.6rem 0; resize: vertical; width: 100%;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--text); outline: none; }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-muted); }
.contact-form .btn { align-self: flex-start; background: none; cursor: pointer; margin-top: 0.5rem; }
.contact-form .btn-send { color: #8c8c87; }
.contact-form .btn-send:hover { color: var(--invert-text); }

/* Contact page centered layout */
.contact-center { align-items: center; text-align: center; }
.contact-center .contact-form { width: 100%; max-width: 480px; text-align: left; margin: 2.5rem auto 0; }
.contact-center .contact-form .btn { align-self: center; }
.contact-social {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c8c87;
  transition: color var(--dur) var(--ease);
}
.contact-social:hover { color: var(--text); }

/* Footer */
.site-footer { padding: 2rem var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* Category filter (pill nav) on My Works */
.pill-nav-wrap { padding: 2rem var(--gutter); border-bottom: 1px solid var(--line); }
.pill-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pill {
  display: inline-block;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pill:hover { border-color: var(--text); color: var(--text); }
