:root {
  --ink: #141413;
  --paper: #ffffff;
  --stone: #f4f3f0;
  --tile-a: #e6e4df;
  --tile-b: #edebe7;
  --muted: #6b6963;
  --text-soft: #4a4843;
  --line: #c9c7c1;
  --dark: #141413;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.55; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.section { padding: 140px 48px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: 56px;
}
.section-title {
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.link-line {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
}

/* Recuadros de imagen */
.tile {
  background: var(--tile-a);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  min-height: 420px;
  color: #5a5853;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}
.tile:nth-child(even) { background: var(--tile-b); }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* NAV */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 40px;
  padding: 24px 48px;
  color: #fff;
}
.nav .brand { font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 400; padding: 12px 0; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 36px; list-style: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.nav li a { display: block; padding: 12px 0; }

/* Selector de idioma */
.nav li:has(.lang) { margin-left: 8px; }
.lang { display: flex; align-items: center; gap: 4px; padding: 0; }
.lang button {
  background: none; border: 0; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: 0.24em; text-transform: uppercase;
  min-width: 44px; min-height: 44px; padding: 0 6px; opacity: 0.6;
}
.lang button[aria-pressed="true"] { opacity: 1; border-bottom: 1px solid currentColor; }
.lang button:hover { opacity: 1; }
.lang span { opacity: 0.4; }

/* HERO */
.hero {
  position: relative;
  min-height: 820px;
  background: #1b1b1a;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 72px;
}
.hero-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  color: #8c8a84; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero-content { position: relative; z-index: 2; }
/* Portada interactiva (canvas) */
.hero-live { overflow: hidden; min-height: 100vh; min-height: 100svh; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero-fallback { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; opacity: 0.45; }
.hero-hint { position: absolute; right: 48px; bottom: 28px; z-index: 2; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.55); animation: hint-fade 1s ease 1.2s both, hint-out 1.2s ease 9s forwards; }
@keyframes hint-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hint-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-hint { animation: none; } }
.hero h1 {
  font-weight: 200;
  font-size: clamp(48px, 9vw, 148px);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero .sub { margin-top: 36px; font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }

/* INTRO */
.intro { padding: 140px 48px; display: flex; justify-content: center; }
.intro p { max-width: 820px; text-align: center; font-family: var(--font-serif); font-weight: 300; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.35; }

/* FOTOGRAFIA */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photos .tile { min-height: 340px; }
.photos .tile:first-child { grid-column: span 2; grid-row: span 2; min-height: 680px; }
.photos .tile:nth-child(n + 4) { min-height: 460px; }
.photos-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.photos-foot .domain { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }

/* WEB */
.web { background: var(--stone); }
.project { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; margin-bottom: 120px; }
.project:last-child { margin-bottom: 0; }
.project:nth-child(even) { flex-direction: row-reverse; }
.project .tile { flex: 1 1 560px; min-height: 480px; background: #e0ddd7; }
.project-text { flex: 1 1 320px; max-width: 460px; }
.project-text .eyebrow { margin-bottom: 20px; }
.project-text h3 { font-weight: 200; font-size: 44px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.project-text .resumen { font-family: var(--font-serif); font-size: 24px; line-height: 1.4; margin-bottom: 28px; }
.project-text .detalle { font-size: 13px; line-height: 1.8; letter-spacing: 0.04em; color: var(--text-soft); margin-bottom: 32px; }
.soon { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }

/* ARTE */
.art-lead { max-width: 560px; margin-bottom: 56px; font-family: var(--font-serif); font-size: 26px; line-height: 1.4; }
.art-cover { margin-bottom: 28px; max-width: 1200px; }
.art-cover .tile { min-height: 0; aspect-ratio: 3 / 2; width: 100%; background: #0a0a0a; padding: 0; }
.art-cover .tile video { object-fit: cover; }
.art-link { margin-bottom: 56px; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.art-grid .tile { min-height: 520px; }

/* SERVICIOS */
.services { background: var(--dark); color: #fff; }
.services .section-title { margin-bottom: 64px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.service { padding: 26px 0; border-top: 1px solid #4a4a47; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; }
.services-grid .service:nth-last-child(-n + 2) { border-bottom: 1px solid #4a4a47; }
.service small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.2em; color: #b5b3ad; }

/* SOBRE MI */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-photo { flex: 0 0 360px; width: 360px; max-width: 100%; display: flex; }
.about-photo .tile { flex: 1 1 auto; width: 100%; min-height: 0; aspect-ratio: 4 / 5; background: #0e0e0e; }
.about-text { flex: 1 1 360px; max-width: 560px; }
.about-text .section-title { margin-bottom: 32px; }
.about-text .lead { font-family: var(--font-serif); font-size: 26px; line-height: 1.45; margin-bottom: 24px; }
.about-text .body { font-size: 14px; line-height: 1.9; letter-spacing: 0.04em; color: var(--text-soft); }
.about-text .body + .body { margin-top: 18px; }

/* CONTACTO */
.contact { padding: 120px 48px 56px; background: var(--stone); text-align: center; }
.contact .big { font-weight: 200; font-size: clamp(28px, 4.4vw, 64px); letter-spacing: 0.08em; text-transform: uppercase; margin: 20px 0 56px; }
.contact .email { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
.contact .social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 72px; }
.contact .social a { display: inline-block; padding: 8px 20px; font-size: 10px; letter-spacing: 0.22em; border: 1px solid var(--text-soft); color: var(--ink); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.contact .social a:hover, .contact .social a:focus-visible { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.contact .copy { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.contact .legal { max-width: 640px; margin: 20px auto 0; line-height: 1.7; letter-spacing: 0.1em; }

/* Dificulta arrastrar o copiar las imágenes (es un freno básico, no una protección total) */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

[hidden] { display: none !important; }

/* TABLET Y CELULAR */
@media (max-width: 900px) {
  .section { padding: 96px 24px; }
  .nav { padding: 16px 24px; }
  .nav ul { gap: 0 20px; }
  .hero { padding: 0 24px 56px; min-height: 720px; }
  .hero-hint { right: 24px; bottom: 20px; }
  .intro { padding: 96px 24px; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos .tile, .photos .tile:nth-child(n + 4) { min-height: 360px; }
  .photos .tile:first-child { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .art-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service:nth-last-child(2) { border-bottom: 0; }
  .project, .project:nth-child(even) { flex-direction: column; align-items: stretch; margin-bottom: 80px; }
  /* En celular el recuadro toma la proporción de la imagen/video para no recortarlos */
  .project .tile { flex: 0 0 auto; width: 100%; min-height: 0; aspect-ratio: 3 / 2; }
  .contact { padding: 96px 24px 40px; }
}
@media (max-width: 520px) {
  .photos { grid-template-columns: 1fr; }
  .photos .tile:first-child { grid-column: auto; }
  .project-text h3 { font-size: 34px; }
  .about-photo { flex: 0 0 auto; width: 220px; }
}
