/* ============================================================
   JULIÁN CÁRDENAS — PORTAFOLIO
   Estética: Galería de Arte Europea / Museo Clásico
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Cormorant+SC:wght@300;400;500&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --cream:       #f7f2e9;
  --cream-dark:  #ede6d8;
  --cream-mid:   #e8dfc8;
  --charcoal:    #1c1c1c;
  --gray:        #5a5a5a;
  --gray-light:  #9a9a9a;
  --gold:        #c5a46d;
  --gold-light:  #d4b88a;
  --gold-pale:   #eddec4;
  --gold-deep:   #a8834a;
  --white:       #fdfaf5;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-caps:    'Cormorant SC', Georgia, serif;

  --max-width: 1200px;
  --section-gap: 7rem;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ─── Grain Overlay ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ═══════════════════════════════════════════════════════════
   SUNFLOWER INTRO
═══════════════════════════════════════════════════════════ */
#sunflower-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFade 0.5s 1.2s forwards ease-in-out;
  pointer-events: none;
}

#sunflower-intro.hidden { display: none; }

.sunflower-svg {
  width: min(340px, 70vw);
  height: min(340px, 70vw);
  animation: sunflowerBloom 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: center;
  opacity: 0;
}

@keyframes introFade {
  0%   { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

@keyframes sunflowerBloom {
  0%   { opacity: 0; transform: scale(0.1) rotate(-15deg); }
  40%  { opacity: 1; transform: scale(1.08) rotate(4deg); }
  65%  { transform: scale(0.96) rotate(-2deg); }
  80%  { transform: scale(1.02) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.petal-group {
  animation: petalSpin 20s linear infinite;
  transform-origin: 170px 170px;
}

@keyframes petalSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.center-circle {
  animation: centerPulse 1.8s ease-in-out infinite alternate;
  transform-origin: 170px 170px;
}

@keyframes centerPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* ═══════════════════════════════════════════════════════════
   BOTANICAL BACKGROUND ANIMATIONS
═══════════════════════════════════════════════════════════ */
.bg-botanicals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-petal {
  position: absolute;
  opacity: 0;
  animation: petalFloat linear infinite;
  will-change: transform, opacity;
}

@keyframes petalFloat {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.6); }
  8%   { opacity: 0.55; }
  85%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-110vh) rotate(360deg) scale(1); }
}

.bg-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: dotRise linear infinite;
  will-change: transform, opacity;
}

@keyframes dotRise {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  15%  { opacity: 0.18; transform: translateY(-20px) scale(1); }
  85%  { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-90vh) scale(0.5); }
}

.bg-vine {
  position: absolute;
  opacity: 0;
  animation: vineSway ease-in-out infinite alternate;
}

@keyframes vineSway {
  0%   { opacity: 0.06; transform: rotate(-3deg) scale(1); }
  100% { opacity: 0.12; transform: rotate(3deg) scale(1.02); }
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
  max-width: 80px;
}

.ornament--center { justify-content: center; }
.ornament--left::before { display: none; }

/* ─── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border-bottom: 1px solid rgba(197, 164, 109, 0.15);
  transition: background 0.5s ease, border-color 0.5s ease;
}

/* Dark mode: when scrolled into exposiciones / footer zone */
.nav.dark {
  background: var(--charcoal);
  border-bottom-color: rgba(197, 164, 109, 0.15);
}

.nav.dark .nav__logo  { color: var(--cream); }
.nav.dark .nav__links a { color: rgba(212, 184, 138, 0.7); }
.nav.dark .nav__links a:hover { color: var(--gold-light); }

/* Keep .scrolled as alias (used by collection pages) */
.nav.scrolled {
  background: var(--cream);
  border-bottom: 1px solid rgba(197, 164, 109, 0.2);
}

.nav__logo {
  font-family: var(--font-caps);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--charcoal);
}

.nav__links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gray);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav__links a:hover { color: var(--charcoal); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(197, 164, 109, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 1.8s forwards;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 2.0s forwards;
}

.hero__name em {
  font-style: italic;
  color: var(--gold);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s 2.2s forwards;
}

.hero__divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeIn 1s 2.6s forwards;
}

.hero__scroll {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gray-light);
  opacity: 0;
  animation: fadeIn 1s 2.8s forwards;
}

.hero__contact-btn {
  display: inline-block;
  margin-top: 2.2rem;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.85rem 2.6rem;
  border-radius: 0;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s 3.1s forwards;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 8px rgba(197, 164, 109, 0.35),
    0 0 20px rgba(197, 164, 109, 0.15),
    inset 0 0 8px rgba(197, 164, 109, 0.05);
  text-shadow: 0 0 12px rgba(197, 164, 109, 0.6);
}

.hero__contact-btn:hover {
  color: var(--gold-light);
  background: rgba(197, 164, 109, 0.07);
  box-shadow:
    0 0 14px rgba(197, 164, 109, 0.55),
    0 0 36px rgba(197, 164, 109, 0.25),
    inset 0 0 12px rgba(197, 164, 109, 0.08);
  text-shadow: 0 0 18px rgba(197, 164, 109, 0.9);
}

/* ─── Artist Photo (sobre el artista) ──────────────────── */
.artist-photo {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4rem;
}

.artist-photo__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.artist-photo__img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.08) saturate(0.95);
}

.artist-photo__frame {
  position: absolute;
  inset: -12px;
  border: 1px solid var(--gold-pale);
  pointer-events: none;
}

.artist-photo__caption {
  text-align: center;
  margin-top: 1.2rem;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gray-light);
}

/* ─── Sections ──────────────────────────────────────────── */
.section {
  padding: var(--section-gap) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1;
}

.section--dark {
  background: var(--charcoal);
  color: var(--cream);
  max-width: 100%;
  padding: var(--section-gap) 4rem;
  position: relative;
  z-index: 1;
}

.section__header { margin-bottom: 4rem; }

.section__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
}

/* ─── About ─────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about__bio {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--gray);
}

.about__bio p::first-letter {
  font-size: 3.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin-right: 0.1em;
  color: var(--gold);
  padding-top: 0.05em;
}

.about__info {
  border: 1px solid var(--gold-pale);
  padding: 2rem;
}

.about__info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}

.about__info-item:last-child { border-bottom: none; }

.about__info-label {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  min-width: 60px;
}

/* ─── Timeline ──────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-pale), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1.5rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -3rem; top: 8px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--gold-pale);
}

.timeline__period {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.timeline__org {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--charcoal);
}

/* ─── Education ─────────────────────────────────────────── */
.education__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.education__item {
  background: var(--cream-dark);
  padding: 3rem;
  transition: background var(--transition);
}

.education__item:hover { background: var(--gold-pale); }

.education__icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  opacity: 0.45;
}

.education__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.education__desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   COLECCIONES
═══════════════════════════════════════════════════════════ */
.colecciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.coleccion-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}

.coleccion-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
  filter: saturate(0.75) brightness(0.95);
}

.coleccion-card:hover img {
  transform: scale(1.07);
  filter: saturate(1) brightness(1);
}

.coleccion-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 28, 28, 0.88) 0%,
    rgba(28, 28, 28, 0.3) 40%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: background 0.5s ease;
}

.coleccion-card__nombre {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
  transform: translateY(6px);
  transition: transform 0.5s ease;
}

.coleccion-card__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(237, 222, 196, 0.75);
  line-height: 1.55;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  max-width: 340px;
}

.coleccion-card:hover .coleccion-card__nombre { transform: translateY(0); }
.coleccion-card:hover .coleccion-card__desc   { transform: translateY(0); opacity: 1; }

.coleccion-card__ver {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(197, 164, 109, 0.4);
  padding-bottom: 2px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s 0.05s ease, opacity 0.5s 0.05s ease;
}

.coleccion-card:hover .coleccion-card__ver { transform: translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   EXPOSICIONES — Horizontal Scroll Strip
═══════════════════════════════════════════════════════════ */
.exposiciones {
  overflow: hidden;
  padding: var(--section-gap) 0;
  background: var(--charcoal);
  position: relative;
  z-index: 1;
}

.exposiciones__header {
  padding: 0 4rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.exposiciones__track-wrapper {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.exposiciones__track-wrapper:active { cursor: grabbing; }

.exposiciones__track {
  display: flex;
  gap: 3px;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.exposicion-img {
  flex: 0 0 auto;
  height: 420px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.exposicion-img img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: saturate(0.85);
  transition: filter 0.4s ease;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   IMAGEN FINAL
═══════════════════════════════════════════════════════════ */
.imagen-final {
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--charcoal);
}

.imagen-final__img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center top;
  filter: sepia(0.12) saturate(0.9) brightness(0.92);
  display: block;
}

.imagen-final__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--charcoal) 100%);
}

/* ─── Contacto ──────────────────────────────────────────── */
.contacto {
  background: var(--charcoal);
  padding: 5rem 4rem 6rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contacto__inner { max-width: 600px; margin: 0 auto; }

.contacto__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.contacto__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-light);
  margin-bottom: 3rem;
}

.contacto__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-caps);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  padding: 1.1rem 2.4rem;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.25);
}

.contacto__btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.38);
}

.contacto__icon {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 5rem 4rem 6rem;
  position: relative;
  z-index: 1;
}

.footer__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--gold-light);
}

.footer__divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto;
}

.footer__name {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
}

.footer__country {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray-light);
  font-style: italic;
}

/* ─── CTA Button ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.btn:hover::before { transform: scaleX(1); }

.btn span {
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.btn:hover span { color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   COLLECTION PAGES
═══════════════════════════════════════════════════════════ */
.col-hero {
  padding: 12rem 4rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.col-hero__back {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  transition: color var(--transition);
}

.col-hero__back:hover { color: var(--charcoal); }

.col-hero__title {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

.col-hero__desc {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.85;
  font-style: italic;
}

.col-count {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  padding: 0 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.col-grid {
  columns: 3;
  column-gap: 3px;
  padding: 0 2px 2px;
}

.col-grid__item {
  break-inside: avoid;
  margin-bottom: 3px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.col-grid__item img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85);
  transition: transform 0.8s ease, filter 0.5s ease;
}

.col-grid__item:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.col-grid__item__hover {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0);
  transition: background 0.4s ease;
}

.col-grid__item:hover .col-grid__item__hover {
  background: rgba(28, 28, 28, 0.15);
}

/* ─── Divinidad Special ─────────────────────────────────── */
.divinidad-intro {
  padding: 0 4rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.divinidad-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.divinidad-tag {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold-pale);
  color: var(--gold-deep);
  background: rgba(197, 164, 109, 0.06);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 18, 14, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}

.lightbox__caption {
  margin-top: 1.2rem;
  text-align: center;
}

.lightbox__num {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
}

.lightbox__close {
  position: fixed;
  top: 2rem; right: 2rem;
  background: none;
  border: 1px solid rgba(197, 164, 109, 0.3);
  color: var(--gold-light);
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox__close:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(237, 222, 196, 0.45);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem 1.5rem;
  transition: color var(--transition);
  font-family: var(--font-display);
  line-height: 1;
}

.lightbox__nav:hover { color: var(--gold-light); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ─── Scroll Animations ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.fade-in.visible { opacity: 1; }

/* ─── Keyframes ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .col-grid { columns: 2; }
}

@media (max-width: 900px) {
  html { font-size: 16px; }
  .nav { padding: 1.2rem 2rem; }
  .nav__links { gap: 1.5rem; }
  .section { padding: 5rem 2rem; }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .colecciones-grid { grid-template-columns: 1fr; }
  .education__grid { grid-template-columns: 1fr; }
  .col-hero { padding: 9rem 2rem 3rem; }
  .col-count { padding: 0 2rem 2rem; }
  .divinidad-intro { padding: 0 2rem 3rem; }
  .exposiciones__header { padding: 0 2rem 2.5rem; }
  .exposicion-img { height: 260px; }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .colecciones-grid { grid-template-columns: 1fr; }
  .col-grid { columns: 1; }
  .artist-photo { padding: 0 1.5rem; }
}
