/* ============================================================
   MAGG'S GALLERY — Hoja de estilos
   Identidad: Negro · Charcoal · Oro · Trigo · Arena
   Tipografía: Playfair Display · Inter · Pinyon Script
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --black:        #000000;
  --bg:           #080706;
  --bg-2:         #100f0c;
  --bg-3:         #19170f;
  --bg-card:      #16140f;
  --bg-card-2:    #211d14;

  --gold:         #a07f3a;
  --gold-bright:  #c8aa6f;
  --wheat:        #c8aa6f;
  --sand:         #e3d5bb;
  --cream:        #ece6d8;
  --cream-mute:   #9b9079;
  --charcoal:     #2f2f2f;

  --line:         rgba(227, 213, 187, 0.12);
  --line-strong:  rgba(227, 213, 187, 0.30);

  --serif:  "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --script: "Pinyon Script", "Segoe Script", cursive;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1280px;
  --nav-h: 84px;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--black); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.serif-italic { font-style: italic; }
.gold { color: var(--gold-bright); }

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
}

.kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 3rem, 880px);
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--gold-bright);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 1.1rem;
}
.section-head p {
  color: var(--cream-mute);
  font-size: 1.02rem;
  max-width: 60ch;
}
.section-head--center p { margin-inline: auto; }

.divider {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.4rem 0;
}
.section-head--center .divider { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border-radius: 2px;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform 0.45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a140a;
  box-shadow: 0 14px 38px -16px rgba(160, 127, 58, 0.7);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -16px rgba(200, 170, 111, 0.85);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--cream);
}
.btn-ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-3px);
}
.btn-dark {
  background: var(--black);
  color: var(--sand);
  border: 1px solid var(--line);
}
.btn-dark:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-bright); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.45s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold-bright);
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease);
}
.cursor.is-hover .cursor-ring {
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--black);
  display: grid;
  place-items: center;
  animation: splashSafety 0.01s 4.6s forwards;
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}
.splash-inner { text-align: center; }
.splash .splash-logo {
  animation: splashPulse 2.4s var(--ease) infinite;
}
.splash-word {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.5em;
}
@keyframes splashPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* ---------- Brand mark / logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-logo {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.splash-logo {
  width: clamp(190px, 42vw, 280px);
  height: auto;
  margin-inline: auto;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-word .b1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.brand-word .b2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), height 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 7, 6, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  height: 70px;
}
.nav-inner {
  width: min(100% - 3rem, 1440px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav.is-scrolled .brand-logo { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--cream);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--gold-bright); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn { padding: 0.78rem 1.4rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  width: 26px; height: 1.6px;
  background: var(--cream);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  color: var(--cream);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--gold-bright); padding-left: 0.6rem; }
.mobile-menu .mm-foot {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--cream-mute);
}
.mobile-menu .mm-foot a { font-family: var(--sans); font-size: 0.85rem; border: none; padding: 0; }

/* ---------- Grain & mesh ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05) brightness(0.62);
  transform: scale(1.06) scaleX(-1);
}
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,7,6,0.78) 0%, rgba(8,7,6,0.42) 38%, rgba(8,7,6,0.92) 100%),
    linear-gradient(90deg, rgba(8,7,6,0.85) 0%, transparent 55%);
}
.hero-mesh {
  position: absolute;
  z-index: 2;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 22% 30%, rgba(200,170,111,0.30), transparent 70%),
    radial-gradient(34% 30% at 78% 70%, rgba(160,127,58,0.26), transparent 72%);
  filter: blur(70px);
  animation: meshFloat 22s ease-in-out infinite;
}
@keyframes meshFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(3%, -3%, 0) scale(1.16); }
}
.hero .grain { z-index: 3; }
.hero-inner {
  position: relative;
  z-index: 4;
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
  padding-top: var(--nav-h);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.hero-meta .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(200,170,111,0.6);
  animation: pulseDot 2.6s var(--ease) infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(200,170,111,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(200,170,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,170,111,0); }
}
.hero-title {
  font-size: clamp(2.7rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 17ch;
  text-wrap: balance;
  margin-bottom: 1.7rem;
}
.hero-title em { font-style: italic; color: var(--gold-bright); }
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 300;
  color: var(--sand);
  max-width: 52ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.hero-scroll .line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold-bright), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.5) contrast(1.05);
  transform: scale(1.05);
}
.page-hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8,7,6,0.85) 0%, rgba(8,7,6,0.4) 45%, rgba(8,7,6,0.96) 100%);
}
.page-hero .grain { z-index: 2; }
.page-hero-inner {
  position: relative;
  z-index: 3;
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
  padding-top: var(--nav-h);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-bottom: 1.1rem;
}
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb .sep { color: var(--gold); }
.page-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold-bright); }
.page-hero .lead {
  font-size: 1.08rem;
  color: var(--sand);
  max-width: 56ch;
}
.page-hero .eyebrow {
  font-family: var(--script);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold-bright);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition-duration: 0.4s; }
}

/* ---------- Intro / split editorial ---------- */
.intro-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.intro-figure {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}
.intro-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
  transition: transform 1.4s var(--ease);
}
.intro-figure:hover img { transform: scale(1.05); }
.intro-figure .frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(227,213,187,0.35);
  pointer-events: none;
  z-index: 2;
}
.intro-body h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 1.3rem;
}
.intro-body p {
  color: var(--cream-mute);
  margin-bottom: 1.1rem;
  font-size: 1.04rem;
}
.intro-body p strong { color: var(--sand); font-weight: 500; }
.intro-body .lead-first {
  color: var(--cream);
  font-size: 1.16rem;
  font-weight: 300;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.pillar {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.pillar-img { position: relative; overflow: hidden; }
.pillar-img img {
  width: 100%;
  aspect-ratio: 3 / 3.4;
  object-fit: cover;
  filter: grayscale(0.25) brightness(0.78) contrast(1.05);
  transition: transform 1.5s var(--ease), filter 0.8s var(--ease);
}
.pillar:hover .pillar-img img { transform: scale(1.07); filter: grayscale(0) brightness(0.92); }
.pillar-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,7,6,0.95) 100%);
}
.pillar-num {
  position: absolute;
  top: 1.1rem; left: 1.2rem;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-bright);
}
.pillar-body {
  position: relative;
  z-index: 2;
  padding: 1.6rem 1.5rem 1.8rem;
  margin-top: -3.4rem;
}
.pillar-body h3 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}
.pillar-body p { color: var(--cream-mute); font-size: 0.95rem; }
.pillar:hover { border-color: rgba(200,170,111,0.4); }

/* ---------- Card grid (secciones, ferias, expo, galería) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.6rem;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.tilt { transform-style: preserve-3d; will-change: transform; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
.card-halo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(200,170,111,0.16), transparent 60%);
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: rgba(200,170,111,0.42); box-shadow: 0 30px 60px -32px rgba(0,0,0,0.9); }
.card:hover .card-halo { opacity: 1; }

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.04) brightness(0.84);
  transition: transform 1.5s var(--ease), filter 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.07); filter: saturate(1.08) brightness(0.96); }
.card-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  background: rgba(8,7,6,0.82);
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  backdrop-filter: blur(4px);
}
.card-tag--open {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a140a;
  border-color: transparent;
}
.card-body {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.card-body h3 {
  font-size: 1.42rem;
  margin-bottom: 0.7rem;
  line-height: 1.18;
}
.card-body p {
  color: var(--cream-mute);
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.card-place {
  font-size: 0.78rem;
  color: var(--cream-mute);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.card-place svg { flex-shrink: 0; }

/* ---------- Section nav cards (home explora) ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.explore-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.explore-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.95) contrast(1.05);
  transition: transform 1.6s var(--ease), filter 0.7s var(--ease);
  z-index: 0;
}
.explore-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(8,7,6,0.94) 100%);
}
.explore-card:hover { border-color: rgba(200,170,111,0.45); transform: translateY(-5px); }
.explore-card:hover img { transform: scale(1.08); filter: brightness(0.62); }
.explore-card .ec-content { position: relative; z-index: 2; }
.explore-card .ec-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.explore-card h3 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}
.explore-card p {
  font-size: 0.9rem;
  color: var(--cream-mute);
  margin-bottom: 1rem;
}
.explore-card .ec-go {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.explore-card:hover .ec-go .arrow { transform: translateX(5px); }
.explore-card .ec-go .arrow { transition: transform 0.4s var(--ease); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.7rem;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
}
.marquee-item .gem {
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Feature list (valor diferencial / valores) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature {
  display: flex;
  gap: 1.3rem;
  padding: 2rem 1.8rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.feature:nth-child(odd) { border-right: 1px solid var(--line); }
.feature--wide { grid-column: 1 / -1; border-right: none !important; }
.feature:hover { background: var(--bg-3); }
.feature-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}
.feature h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 0.45rem;
}
.feature p {
  color: var(--cream-mute);
  font-size: 0.94rem;
}

/* ---------- Values grid (compact) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.value-card {
  padding: 1.9rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-card);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.value-card:hover { border-color: rgba(200,170,111,0.4); transform: translateY(-4px); }
.value-card .vc-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}
.value-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.04rem;
  margin-bottom: 0.5rem;
}
.value-card p { color: var(--cream-mute); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-card);
}
.stat {
  padding: 2.2rem 1.4rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

/* ---------- Timeline (exposiciones) ---------- */
.timeline {
  position: relative;
  margin-left: 0.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--line) 60%, transparent);
}
.tl-entry {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2.6rem;
}
.tl-entry:last-child { padding-bottom: 0; }
.tl-entry::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg);
  transition: background 0.4s var(--ease);
}
.tl-entry:hover::before { background: var(--gold-bright); }
.tl-year {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.tl-entry h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.tl-entry p { color: var(--cream-mute); font-size: 0.96rem; }

/* ---------- Detail row (galeria collections / generic) ---------- */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.detail-row:last-child { margin-bottom: 0; }
.detail-row:nth-child(even) .detail-figure { order: 2; }
.detail-figure {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.detail-figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04) brightness(0.9);
  transition: transform 1.5s var(--ease);
}
.detail-figure:hover img { transform: scale(1.05); }
.detail-figure .frame { position: absolute; inset: 13px; border: 1px solid rgba(227,213,187,0.3); pointer-events: none; }
.detail-row .detail-figure--tall { max-width: 460px; margin-inline: auto; }
.detail-row .detail-figure--tall img { aspect-ratio: 3 / 4; }
.detail-body .card-meta { margin-bottom: 0.8rem; }
.detail-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}
.detail-body p { color: var(--cream-mute); margin-bottom: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.cta-band-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.34) saturate(0.9) contrast(1.05);
}
.cta-band-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(160,127,58,0.22), transparent 75%),
              linear-gradient(180deg, rgba(8,7,6,0.8), rgba(8,7,6,0.85));
}
.cta-band .grain { z-index: 2; }
.cta-band-inner {
  position: relative;
  z-index: 3;
  width: min(100% - 3rem, 760px);
  margin-inline: auto;
}
.cta-band .eyebrow {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--gold-bright);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.cta-band h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  margin-bottom: 1.2rem;
}
.cta-band h2 em { font-style: italic; color: var(--gold-bright); }
.cta-band p {
  color: var(--sand);
  font-size: 1.06rem;
  margin-bottom: 2rem;
}
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.form-aside h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}
.form-aside p { color: var(--cream-mute); margin-bottom: 1.8rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold-bright);
}
.contact-item .ci-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-bottom: 0.2rem;
}
.contact-item .ci-value {
  font-size: 1rem;
  color: var(--cream);
}
.contact-item a.ci-value:hover { color: var(--gold-bright); }

.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-bottom: 0.5rem;
}
.field label .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: var(--bg-2);
}
.field select { appearance: none; cursor: pointer; }
.form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-note {
  font-size: 0.8rem;
  color: var(--cream-mute);
  margin-top: 1rem;
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.form-success.is-visible { display: block; }
.form-success svg { margin: 0 auto 1rem; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--cream-mute); }
.form.is-sent .form-fields { display: none; }

/* ---------- Map ---------- */
.map-frame {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}
.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.6) invert(0.92) contrast(0.9);
}

/* ---------- Quote block ---------- */
.quote-block {
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}
.quote-block .q-mark {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 1rem;
}
.quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.32;
  color: var(--cream);
}
.quote-block cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Mission / Vision blocks ---------- */
.mv-grid { display: grid; gap: 1.6rem; }
.mv-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-card);
}
.mv-script {
  font-family: var(--script);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--gold-bright);
  line-height: 0.9;
}
.mv-block p { color: var(--cream-mute); font-size: 1.04rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p {
  color: var(--cream-mute);
  font-size: 0.92rem;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col li {
  font-size: 0.92rem;
  color: var(--cream-mute);
  transition: color 0.35s var(--ease);
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.footer-social a:hover { border-color: var(--gold-bright); color: var(--gold-bright); transform: translateY(-3px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.7rem;
  font-size: 0.8rem;
  color: var(--cream-mute);
}
.footer-bottom a:hover { color: var(--gold-bright); }
.footer-bottom .fb-links { display: flex; gap: 1.5rem; }

/* ---------- Credits page ---------- */
.credits-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.credit-item {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.2rem 1.3rem;
  background: var(--bg-card);
  font-size: 0.88rem;
}
.credit-item .ci-id {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.credit-item .ci-title { color: var(--cream); margin-bottom: 0.3rem; }
.credit-item .ci-meta { color: var(--cream-mute); font-size: 0.82rem; }
.credit-item a { color: var(--gold-bright); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-l { margin-top: clamp(2.5rem, 5vw, 4rem); }
.fade-fast { opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { gap: 1.3rem; }
  .nav-links a { font-size: 0.74rem; }
}

@media (max-width: 940px) {
  :root { --nav-h: 72px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .intro-split { grid-template-columns: 1fr; }
  .intro-figure { order: -1; max-width: 480px; }
  .pillars { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(odd) { border-right: none; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .detail-row { grid-template-columns: 1fr; }
  .detail-row:nth-child(even) .detail-figure { order: -1; }
  .detail-figure img { aspect-ratio: 16 / 10; }
  .form-wrap { grid-template-columns: 1fr; }
  .mv-block { grid-template-columns: 1fr; text-align: center; }
  .mv-script { text-align: center; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--wrap)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .values-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-inner { width: min(100% - 2rem, 1440px); }
}

/* ---------- Reduced motion: only intrusive effects ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-bg img { animation: none; }
  .hero-meta .dot { animation: none; }
  .hero-scroll .line { animation: none; opacity: 0.5; }
  .marquee-track { animation-duration: 90s; }
  .splash .splash-logo { animation: none; }
}
