*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #111;
  --white: #fff;
  --gray: #999;
  --gray-light: #e0e0e0;
  --font: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--black); font-family: var(--font); font-weight: 300; font-size: 13px; line-height: 1.7; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--gray-light); display: flex; justify-content: space-between; align-items: center; padding: 0 40px; height: 52px; }
.nav-logo { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }

/* HERO */
#hero { margin-top: 52px; position: relative; width: 100%; height: 28vh; min-height: 200px; max-height: 320px; overflow: hidden; background: #f0f0f0; }
#hero img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.hero-audio-btn { position: absolute; top: 16px; right: 40px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(255,255,255,0.15); border: none; border-radius: 50%; color: #fff; cursor: pointer; transition: background 0.2s; }
.hero-audio-btn:hover { background: rgba(255,255,255,0.28); }
.hero-audio-btn svg { width: 14px; height: 14px; }
.hero-audio-btn .icon-pause { display: none; }
.hero-audio-btn.playing .icon-play { display: none; }
.hero-audio-btn.playing .icon-pause { display: block; }

.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%); pointer-events: none; }

.hero-quote-wrap { position: absolute; bottom: 36px; left: 0; right: 0; overflow: hidden; z-index: 1; }
.hero-quote-track { display: flex; width: max-content; animation: hero-quote-scroll 110s linear infinite; }
.hero-quote-track span { font-size: 16px; font-weight: 300; line-height: 1.5; color: #fff; white-space: nowrap; padding-right: 100px; }
@keyframes hero-quote-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Accesibilidad: sin movimiento si el usuario lo pidió en su sistema — cae a las 8 frases quietas, en párrafo. */
@media (prefers-reduced-motion: reduce) {
  .hero-quote-track { animation: none; width: auto; display: block; max-width: 440px; }
  .hero-quote-wrap { overflow: visible; padding-left: 40px; }
  .hero-quote-track span:nth-child(n+9) { display: none; }
  .hero-quote-track span { display: inline; white-space: normal; padding-right: 0; }
  .hero-quote-track span:nth-child(-n+7)::after { content: ' · '; opacity: 0.5; }
}

/* LAYOUT */
.page { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* ARTIST HEADER */
.artist-header { padding: 56px 0 36px; border-bottom: 1px solid var(--gray-light); margin-bottom: 64px; }
.artist-header h1 { font-size: 32px; font-weight: 400; margin-bottom: 20px; }
.artist-nav { display: flex; list-style: none; border-top: 1px solid var(--gray-light); padding-top: 16px; }
.artist-nav li a { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); text-decoration: none; margin-right: 32px; transition: color 0.2s; }
.artist-nav li a:hover, .artist-nav li a.active { color: var(--black); }

/* SECTIONS */
.section { margin-bottom: 96px; }
.section-title { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 40px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-light); }

/* BIOGRAPHY */

/* OBRA */
.artwork { margin-bottom: 72px; }
.artwork-caption { margin-top: 12px; font-size: 11px; line-height: 1.6; color: var(--gray); }
.artwork-caption strong { color: var(--black); font-weight: 500; }

.series-block { margin-bottom: 80px; }
.series-label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; color: var(--black); }
.series-year { font-size: 11px; color: var(--gray); margin-bottom: 24px; }

.series-grid { display: grid; gap: 3px; }
.series-grid.col2 { grid-template-columns: 1fr 1fr; }
.series-grid.col3 { grid-template-columns: 1fr 1fr 1fr; }
.series-grid.col4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.img-wrap { position: relative; overflow: hidden; background: #f0f0f0; cursor: zoom-in; }
.img-wrap::after { content: ''; display: block; padding-bottom: 130%; }
.img-wrap.landscape::after { padding-bottom: 70%; }
.img-wrap.square::after { padding-bottom: 100%; }
.img-wrap.tall::after { padding-bottom: 155%; }
.img-wrap.span2 { grid-column: span 2; }
.img-wrap.span2::after { padding-bottom: 65%; }
.img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.img-wrap.pos-left img { object-position: left center; }
.img-wrap.pos-right img { object-position: right center; }
.img-wrap:hover img { transform: scale(1.03); }

.ver-todas-btn {
  display: block;
  margin: 20px auto 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  background: none;
  border: 1px solid var(--gray-light);
  padding: 9px 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.ver-todas-btn:hover { color: var(--black); border-color: var(--black); }

/* SOBRE */
.sobre-body p { font-size: 13px; line-height: 1.9; color: #555; margin-bottom: 18px; }
.sobre-body p strong { font-weight: 500; color: var(--black); }
.sobre-body blockquote { border-left: 2px solid var(--black); padding-left: 20px; margin: 24px 0; font-size: 14px; color: var(--black); line-height: 1.7; }

/* TIENDA */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.shop-item { display: flex; flex-direction: column; }
.shop-img { position: relative; overflow: hidden; background: #f5f5f5; cursor: zoom-in; margin-bottom: 14px; }
.shop-img::after { content: ''; display: block; padding-bottom: 125%; }
.shop-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shop-img:hover img { transform: scale(1.03); }
.shop-status { position: absolute; top: 10px; left: 10px; font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; background: var(--white); color: var(--black); }
.shop-status.sold { background: var(--black); color: var(--white); }
.shop-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.shop-meta { font-size: 11px; color: var(--gray); margin-bottom: 10px; }
.shop-price { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.shop-note { font-size: 12px; color: var(--gray); margin-bottom: 40px; max-width: 540px; line-height: 1.8; }
.shop-cta { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--black); border: 1px solid var(--black); padding: 9px 16px; text-align: center; transition: background 0.2s, color 0.2s; }
.shop-cta:hover { background: var(--black); color: var(--white); }
.shop-cta.disabled { color: var(--gray); border-color: var(--gray-light); pointer-events: none; }

/* EXPOSICIONES */
.expo-year-block { display: grid; grid-template-columns: 80px 1fr; gap: 0 32px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.expo-year { font-size: 12px; font-weight: 500; }
.expo-list { list-style: none; }
.expo-list li { font-size: 12px; line-height: 1.7; color: #555; }

/* CONTACTO */
#contacto { padding: 80px 0; border-top: 1px solid var(--gray-light); margin-top: 64px; }
#contacto h2 { font-size: 18px; font-weight: 400; margin-bottom: 8px; }
#contacto p { font-size: 12px; color: var(--gray); margin-bottom: 28px; }
#contacto p.contacto-hook { font-size: 16px; font-weight: 300; color: var(--black); margin-bottom: 12px; }
.contact-links { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-link { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--white); background: var(--black); padding: 10px 24px; transition: background 0.2s; }
.contact-link:hover { background: #444; }

/* FOOTER */
footer { padding: 24px 40px; border-top: 1px solid var(--gray-light); display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(255,255,255,0.96); align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 24px; right: 32px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--black); cursor: pointer; background: none; border: none; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--black); background: rgba(0,0,0,0.06); border: none; border-radius: 50%; cursor: pointer; transition: background 0.2s; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(0,0,0,0.12); }
.lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* RESPONSIVE */
@media (max-width: 768px) {

  /* NAV — hamburger oculto, solo logo */
  nav { padding: 0 20px; height: 48px; }
  .nav-links { display: none; }

  /* HERO */
  #hero { height: 22vh; min-height: 140px; max-height: 200px; }
  .hero-audio-btn { top: 12px; right: 16px; width: 32px; height: 32px; }
  .hero-audio-btn svg { width: 12px; height: 12px; }
  .hero-quote-track span { font-size: 14px; }
  .hero-quote-wrap { bottom: 30px; }

  /* PAGE */
  .page { padding: 0 16px; }

  /* ARTIST HEADER */
  .artist-header { padding: 32px 0 24px; margin-bottom: 32px; }
  .artist-header h1 { font-size: 24px; margin-bottom: 14px; }
  .artist-nav { flex-wrap: wrap; gap: 4px; padding-top: 12px; }
  .artist-nav li a { margin-right: 12px; font-size: 10px; }

  /* BIOGRAFIA — stack vertical */
  #biografia { grid-template-columns: 1fr !important; gap: 28px !important; }
  #biografia > div:first-child { height: 320px !important; }

  /* COLLAGE */
  #obra > div:first-child > div { grid-template-columns: repeat(2,1fr) !important; }
  #obra > div:first-child > div > div[style*="span 2"] { grid-column: span 2 !important; }

  /* SERIES */
  .section { margin-bottom: 56px; }
  .series-block { margin-bottom: 48px; }
  .series-label { font-size: 16px; }
  .series-grid.col2,
  .series-grid.col3,
  .series-grid.col4 { grid-template-columns: 1fr 1fr; }
  .img-wrap.span2 { grid-column: span 2; }

  /* TIENDA */
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .shop-title { font-size: 12px; }
  .shop-meta { font-size: 10px; }
  .shop-cta { font-size: 9px; padding: 8px 12px; }
  .shop-note { font-size: 11px; }

  /* EXPOSICIONES */
  .expo-year-block { grid-template-columns: 52px 1fr; gap: 0 16px; }

  /* CONTACTO */
  #contacto { padding: 48px 0; }
  .contact-links { flex-direction: column; gap: 8px; }
  .contact-link { text-align: center; padding: 14px; }

  /* DIVIDERS */
  div[style*="calc(100% + 80px)"] { width: 100% !important; margin: 0 !important; }

  /* FOOTER */
  footer { padding: 20px 16px; flex-direction: column; gap: 6px; text-align: center; }
}

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
  .shop-grid { grid-template-columns: 1fr; }
  .series-grid.col3,
  .series-grid.col4 { grid-template-columns: 1fr 1fr; }
}
