/* ════════════════════════════════════════════════════════════════════
   LORENA POZUETA — Fotografía · Diseño · Arquitectura
   v2 · Editorial dark
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg:      #0a0a09;
  --bg2:     #121110;
  --line:    #262420;
  --text:    #eae6de;
  --soft:    #c9c3b6;
  --muted:   #8b8578;
  --accent:  #c8a96e;
  --accent-soft: rgba(200, 169, 110, .35);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grano fotográfico sutil sobre toda la página */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: #14120d; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2b2823; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

img { max-width: 100%; }

/* ── NAV ─────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 6vw;
  transition: padding .45s ease, background .45s ease, border-color .45s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  padding: 14px 6vw;
  background: rgba(10, 10, 9, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand span { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2, .6, .2, 1);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ── HERO ────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  background: url('../img/portfolio/Insta_SN_Puerto_madero_lluvia.jpg') center 65% / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,10,9,.25) 0%, rgba(10,10,9,.72) 100%),
    linear-gradient(to bottom, rgba(10,10,9,.55) 0%, rgba(10,10,9,.25) 45%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 6vw; }

.hero-eyebrow {
  font-size: clamp(14px, 1.3vw, 17px);
  letter-spacing: .52em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  animation: fadeUp 1.1s cubic-bezier(.2, .6, .2, 1) .25s both;
}
#hero h1 {
  font-family: var(--serif);
  font-size: clamp(58px, 11vw, 150px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: .01em;
  animation: fadeUp 1.1s cubic-bezier(.2, .6, .2, 1) .45s both;
}
#hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--soft);
  animation: fadeUp 1.1s cubic-bezier(.2, .6, .2, 1) .68s both;
}
.hero-sub::before,
.hero-sub::after {
  content: '';
  width: 64px;
  height: 1px;
  background: var(--accent-soft);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  z-index: 1;
  transition: color .3s;
  animation: fadeUp 1.1s ease 1.1s both;
}
.hero-scroll:hover { color: var(--accent); }
.scroll-line {
  width: 1px;
  height: 52px;
  background: var(--accent-soft);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollDrop 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scrollDrop {
  0%   { top: -50%; }
  60%, 100% { top: 110%; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ── SECCIONES ───────────────────────────────────────────────────── */
section { padding: 150px 6vw; max-width: 1400px; margin: 0 auto; }
#hero { max-width: none; padding: 0; }

.section-head { margin-bottom: 70px; }
.sec-meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
}
.sec-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--accent);
}
.sec-label {
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-meta::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(46px, 6.5vw, 92px);
  font-weight: 500;
  line-height: 1.02;
}

/* ── FILTROS ─────────────────────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: -22px 0 58px;
}
.filter-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.filter-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2, .6, .2, 1);
}
.filter-btn:hover { color: var(--soft); }
.filter-btn.active { color: var(--text); }
.filter-btn.active::after { transform: scaleX(1); }

/* ── GALERÍA ─────────────────────────────────────────────────────── */
.gallery { columns: 3; column-gap: 18px; }

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg2);
}
.gallery-item img {
  width: 100%;
  display: block;
  transform: scale(1.001);
  transition: transform 1.4s cubic-bezier(.2, .6, .2, 1), filter .8s ease;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.055); }

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid transparent;
  z-index: 2;
  pointer-events: none;
  transition: border-color .6s ease;
}
.gallery-item:hover::before { border-color: var(--accent-soft); }

.gallery-item .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 56px 22px 18px;
  background: linear-gradient(to top, rgba(6, 6, 5, .88), transparent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .04em;
  color: #f2ecdd;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .6, .2, 1);
  pointer-events: none;
}
.gallery-item:hover .caption { opacity: 1; transform: none; }

.gallery-item .img-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.gallery-item.hidden { display: none; }

/* ── SOBRE MÍ ────────────────────────────────────────────────────── */
#sobre { background: transparent; }

.about-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.35;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 72px;
}
.about-quote strong {
  font-weight: 400;
  color: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 90px;
  align-items: start;
}
.about-text p {
  font-size: 16.5px;
  font-weight: 300;
  color: var(--soft);
  margin-bottom: 26px;
}
.about-text p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  line-height: .8;
  float: left;
  margin: 8px 12px 0 0;
  color: var(--accent);
}

.fact {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact-label {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}
.fact-value { font-size: 14px; line-height: 1.65; color: var(--soft); }
.fact-note {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ── EXPOSICIONES ────────────────────────────────────────────────── */
.expo-list { border-bottom: 1px solid var(--line); }
.expo-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  align-items: baseline;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .45s cubic-bezier(.2, .6, .2, 1);
}
.expo-item:hover { padding-left: 18px; }
.expo-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  color: var(--accent);
}
.expo-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  transition: color .3s;
}
.expo-venue {
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── CONTACTO ────────────────────────────────────────────────────── */
#contacto { text-align: center; }
#contacto .section-head { text-align: left; }
.contact-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--soft);
  margin: -20px 0 56px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.contact-link {
  padding: 17px 36px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  transition: border-color .35s, color .35s, transform .35s, background .35s;
}
.contact-link::after { content: '\2009\2197'; color: var(--accent); }
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  background: rgba(200, 169, 110, .05);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  align-items: center;
  padding: 46px 6vw;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-brand span { font-style: italic; color: var(--accent); }
footer p { font-size: 11.5px; letter-spacing: .12em; color: var(--muted); }

/* ── VOLVER ARRIBA ───────────────────────────────────────────────── */
#back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 9, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s, border-color .3s, color .3s;
}
#back-top.show { opacity: 1; pointer-events: auto; transform: none; }
#back-top:hover { border-color: var(--accent); color: var(--accent); }

/* ── LIGHTBOX ────────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 6, .93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
#lightbox.open { opacity: 1; pointer-events: auto; }

#lb-img {
  max-width: 86vw;
  max-height: 76vh;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  transform: scale(.97);
  transition: transform .45s cubic-bezier(.2, .6, .2, 1);
}
#lightbox.open #lb-img { transform: none; }

.lb-caption {
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--text);
  text-align: center;
  padding: 0 6vw;
}
#lb-count {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--muted);
}

#lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--serif);
  transition: color .3s, transform .3s;
  z-index: 2;
}
#lightbox button:hover { color: var(--accent); }
#lb-close { top: 24px; right: 34px; font-size: 42px; font-weight: 300; }
#lb-prev, #lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 58px;
  padding: 20px;
}
#lb-prev { left: 22px; }
#lb-next { right: 22px; }
#lb-prev:hover { transform: translateY(-50%) translateX(-4px); }
#lb-next:hover { transform: translateY(-50%) translateX(4px); }

/* ── REVEAL ON SCROLL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .6, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1050px) {
  .gallery { columns: 2; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  section { padding: 110px 6vw; }
}
@media (max-width: 760px) {
  nav { flex-direction: column; gap: 10px; padding: 16px 4vw; }
  nav.scrolled { padding: 11px 4vw; }
  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 9.5px; letter-spacing: .15em; white-space: nowrap; }
  .hero-eyebrow { letter-spacing: .34em; }
  .hero-sub { font-size: 10.5px; letter-spacing: .26em; white-space: nowrap; gap: 14px; }
  .hero-sub::before, .hero-sub::after { width: 26px; }
  .expo-item { grid-template-columns: 74px 1fr; gap: 20px; }
  .expo-year, .expo-title { font-size: 22px; }
}
@media (max-width: 580px) {
  .gallery { columns: 1; }
  section { padding: 92px 6vw; }
  .contact-link { width: 100%; text-align: center; }
}

/* ── ACCESIBILIDAD: menos movimiento ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .scroll-line::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #hero h1, .hero-eyebrow, .hero-sub, .hero-scroll { animation: none; }
}
