:root {
  --bg-warm: #F8F8F6;       /* Blanco cálido de galería */
  --bg-alt: #F0EFEA;        /* Crema suave */
  --ink: #1A1A2E;           /* Azul carbón para texto principal */
  --muted: #5C5C70;         /* Azul carbón atenuado */
  --border: rgba(26, 26, 46, 0.08); /* Borde sutil y minimalista */
  --teal: #0D7377;          /* Teal oscuro (Color principal) */
  --teal-soft: rgba(13, 115, 119, 0.06);
  --teal-hover: #09585b;
  --coral: #E8613C;         /* Coral (Acento) */
  --coral-soft: rgba(232, 97, 60, 0.06);
  --white: #ffffff;
  --wa: #25D366;            /* WhatsApp */
  --wa-hover: #20ba59;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-warm);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === PROGRESS === */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--teal); z-index: 300;
}

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.vis { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.97); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.vis { opacity: 1; transform: scale(1); }
.d1 { transition-delay: 0.04s; } .d2 { transition-delay: 0.10s; } .d3 { transition-delay: 0.16s; }
.d4 { transition-delay: 0.22s; } .d5 { transition-delay: 0.28s; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(248, 248, 246, 0.90);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1000px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { height: 36px; width: auto; filter: none; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font: 500 12px/1 system-ui; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--teal); }
.lang-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  font: 600 10px/1 system-ui; padding: 5px 12px; border-radius: 4px;
  cursor: pointer; letter-spacing: 0.08em; transition: 0.2s;
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal); }

/* === HERO (galería con color) === */
.hero {
  background: linear-gradient(155deg, #F8F8F6 0%, #F2F0EA 50%, #EBF5F5 100%);
  min-height: 100vh; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -15%; right: -8%;
  width: 55vw; height: 55vw;
  max-width: 680px; max-height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,97,60,0.09) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; bottom: 5%; left: -5%;
  width: 30vw; height: 30vw;
  max-width: 380px; max-height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,115,119,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero__inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: 1000px; margin: 0 auto; width: 100%;
  padding: 120px 32px 60px;
  position: relative; z-index: 1;
}
.hero__tag {
  font: 600 12px/1 system-ui; color: var(--coral);
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 24px;
}
.hero__title {
  font: 700 clamp(44px, 8vw, 72px)/1.0 Georgia, serif;
  color: var(--ink); letter-spacing: -0.02em;
  margin-bottom: 28px; max-width: 700px;
}
.hero__sub {
  font: 16px/1.8 system-ui; color: var(--muted);
  max-width: 480px; margin-bottom: 40px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__soon { font: 12px/1 system-ui; color: var(--muted); opacity: 0.7; letter-spacing: 0.04em; }

.hero__scroll {
  position: absolute; bottom: 80px; left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--teal), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

.hero__quote {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  max-width: 1000px; margin: 0 auto; width: 100%;
}
.hero__quote p {
  font: italic 15px/1.5 Georgia, serif;
  color: var(--muted);
  text-align: center;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 system-ui; padding: 14px 28px;
  border: none; cursor: pointer; text-transform: uppercase;
  letter-spacing: 0.08em; transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--accent {
  background: var(--teal); color: #fff; border-radius: 6px;
}
.btn--accent:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 115, 119, 0.15);
}
.btn--wa {
  background: var(--wa); color: #fff; border-radius: 6px;
}
.btn--wa:hover {
  background: var(--wa-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}
/* Fallback de botón púrpura en HTML se mapea a Teal de forma limpia */
.btn--purple {
  background: var(--teal); color: #fff;
  font: 600 13px/1 system-ui; padding: 16px 28px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.btn--purple:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 115, 119, 0.15);
}

/* === STATS (bloque teal) === */
.stats { background: var(--teal); padding: 0; }
.stats__inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
}
.stat {
  padding: 56px 32px; text-align: center;
  transition: background 0.3s;
}
.stat:hover { background: rgba(255,255,255,0.06); }
.stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.12); }
.stat__num {
  font: 700 56px/1 Georgia, serif; color: #fff;
  display: block; margin-bottom: 12px;
}
.stat__label {
  font: 500 11px/1 system-ui; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* === SECTIONS === */
.section { background: var(--bg-warm); }
.section__inner {
  max-width: 1000px; margin: 0 auto;
  padding: 80px 32px;
}
.section__tag {
  font: 600 11px/1 system-ui; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 32px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(13, 115, 119, 0.14);
}
.section__tag--light { color: var(--teal); }

/* === STEPS === */
.steps { border-top: 1px solid var(--border); }
.step {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 36px 0 36px 16px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: padding-left 0.3s ease, border-color 0.3s ease;
  margin-left: -19px;
}
.step:hover { padding-left: 24px; border-left-color: var(--coral); }
.step__n {
  font: 300 40px/1 Georgia, serif; color: rgba(26,26,46,0.15);
  width: 56px; flex-shrink: 0;
  transition: color 0.3s;
}
.step:hover .step__n { color: var(--teal); }
.step__t { font: 600 20px/1.2 system-ui; color: var(--ink); margin-bottom: 8px; }
.step__d { font: 15px/1.7 system-ui; color: var(--muted); max-width: 420px; }

/* === MUSEUM GRID (light) === */
.dark {
  background: var(--bg-alt); color: var(--ink);
  position: relative; overflow: hidden;
}
.dark .section__inner { padding: 80px 32px; }
.museum-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 12px;
}
.museum-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--coral);
  border-radius: 12px;
  padding: 32px; position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.museum-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  border-top-color: var(--teal);
  box-shadow: 0 12px 36px rgba(13,115,119,0.10);
}
.museum-card__code {
  font: 600 11px/1 system-ui; color: var(--coral);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: block; margin-bottom: 16px;
}
.museum-card__name { font: 600 22px/1.2 Georgia, serif; color: var(--ink); margin-bottom: 8px; }
.museum-card__loc { font: 13px/1 system-ui; color: var(--muted); }
.museum-card__dot {
  position: absolute; top: 32px; right: 32px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(13, 115, 119, 0.4);
  animation: blink 2.5s ease-in-out infinite;
}

/* === B2B === */
.b2b__title {
  font: 700 clamp(32px, 6vw, 48px)/1.05 Georgia, serif;
  color: var(--ink); margin-bottom: 18px; max-width: 500px;
}
.b2b__sub {
  font: 16px/1.8 system-ui; color: var(--muted);
  margin-bottom: 24px; max-width: 460px;
}
.b2b__price {
  font: 600 13px/1 system-ui; color: var(--teal);
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 8px; display: inline-block;
  margin-bottom: 32px;
  background: var(--teal-soft);
}

/* === FOOTER (anchor carbon) === */
.footer {
  background: var(--ink); color: var(--bg-warm);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  max-width: 1000px; margin: 0 auto;
  padding: 56px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 18px;
}
.footer__logo { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer__links { display: flex; gap: 12px; align-items: center; }
.footer__link {
  font: 500 12px/1 system-ui; color: var(--bg-warm); opacity: 0.7;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: opacity 0.2s;
}
.footer__link:hover { opacity: 1; }
.footer__sep { color: rgba(255,255,255,0.15); font-size: 12px; }
.footer__copy { font: 13px/1 system-ui; color: var(--bg-warm); opacity: 0.5; }
.footer__year { font: 12px/1 system-ui; color: var(--bg-warm); opacity: 0.3; }

/* === ARTWORK PAGE (minimalist clear) === */
.art-page { min-height: 100vh; background: var(--bg-warm); color: var(--ink); }
.art-nav {
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 248, 246, 0.90);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.art-nav__logo { height: 36px; width: auto; }
.art-nav__museum { font: 500 11px/1 system-ui; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot-green { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: blink 2s ease-in-out infinite; }
.dot-amber { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: blink 2s ease-in-out infinite; }
.art-body { max-width: 520px; margin: 0 auto; padding: 48px 32px; }
.art-museum-tag { font: 600 10px/1 system-ui; color: var(--coral); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.art-title { font: 700 28px/1.1 Georgia, serif; color: var(--ink); margin-bottom: 8px; }
.art-meta { font: 14px/1 system-ui; color: var(--muted); font-style: italic; margin-bottom: 24px; }
.art-desc { font: 15px/1.8 system-ui; color: var(--muted); margin-bottom: 36px; }
.art-cta { text-align: center; }
.art-prompt { font: 600 15px/1.4 system-ui; color: var(--ink); margin-bottom: 6px; }
.art-prompt-sub { font: 13px/1.5 system-ui; color: var(--muted); margin-bottom: 24px; }
.art-secondary { display: block; font: 13px/1 system-ui; color: var(--muted); opacity: 0.7; padding: 16px; text-align: center; transition: opacity 0.2s; }
.art-secondary:hover { opacity: 1; }
.art-android { font: 12px/1 system-ui; color: var(--muted); opacity: 0.5; text-align: center; margin-top: 8px; }
.art-footer { padding: 20px 32px; text-align: center; border-top: 1px solid var(--border); }
.art-footer a { font: 12px/1 system-ui; color: var(--muted); opacity: 0.5; transition: opacity 0.2s; }
.art-footer a:hover { opacity: 1; }
.hidden { display: none !important; }

/* === ARTWORK LOADER & ERROR === */
.art-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 128px);
  color: var(--muted);
  font-size: 14px;
  gap: 16px;
}
.art-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(13, 115, 119, 0.1);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.art-error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 128px);
  padding: 32px;
}
.art-error-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(26,26,46,0.03);
}
.art-error-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 20px;
}
.art-error-title {
  font: 700 22px/1.2 Georgia, serif;
  margin-bottom: 12px;
  color: var(--ink);
}
.art-error-message {
  font: 14px/1.6 system-ui;
  color: var(--muted);
  margin-bottom: 28px;
}

/* === ARTWORK SCANNER & HERO === */
.art-hero {
  position: relative;
  width: calc(100% - 64px);
  max-width: 460px;
  aspect-ratio: 4/3;
  margin: 32px auto 0;
  background: var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.99);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.art-hero.loaded .art-image {
  opacity: 1;
  transform: scale(1);
}
.art-hero__label {
  font: 500 11px/1 system-ui;
  color: var(--muted);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 5;
}
.bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--teal);
  border-style: solid;
  border-width: 0;
  z-index: 10;
}
.bracket.tl { top: 16px; left: 16px; border-top-width: 1.5px; border-left-width: 1.5px; }
.bracket.tr { top: 16px; right: 16px; border-top-width: 1.5px; border-right-width: 1.5px; }
.bracket.bl { bottom: 16px; left: 16px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.bracket.br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.art-hero.loaded .bracket {
  animation: bracket-pulse 4s ease-in-out infinite alternate;
}
.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  z-index: 8;
  opacity: 0.5;
  pointer-events: none;
  transform: translateY(-100%);
}
.art-hero.loaded .scan-beam {
  animation: scan 4s ease-in-out infinite;
}
.blob { display: none; } /* Removido para mantenerlo minimalista sin glows */

/* === AR RINGS & CONNECTIONS === */
.ar-rings {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ar-rings [class^="ar-rings__r"] {
  position: absolute;
  border: 1px solid rgba(13, 115, 119, 0.12);
  border-radius: 50%;
  animation: pulse-ring 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}
.ar-rings__r1 { width: 100%; height: 100%; animation-delay: 0s !important; }
.ar-rings__r2 { width: 75%; height: 75%; animation-delay: -1s !important; }
.ar-rings__r3 { width: 50%; height: 50%; animation-delay: -2s !important; }

.ar-rings__core {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 1px solid rgba(13, 115, 119, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: core-bounce 2s ease-in-out infinite alternate;
}
.ar-rings__core svg {
  stroke: var(--teal);
}

.art-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.art-cta-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 28px;
}
.art-cta-card__icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.art-cta-card__title {
  font: 600 15px/1.4 system-ui;
  color: var(--ink);
  margin-bottom: 6px;
}
.art-cta-card__sub {
  font: 13px/1.5 system-ui;
  color: var(--muted);
}

/* === KEYFRAMES === */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes count-pop { 0% { transform: scale(1); } 40% { transform: scale(1.10); } 100% { transform: scale(1); } }
@keyframes scroll-pulse { 0%,100% { opacity: 0.4; height: 48px; } 50% { opacity: 1; height: 60px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan {
  0%, 100% { top: 0%; opacity: 0.2; }
  50% { top: 100%; opacity: 0.8; }
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes core-bounce {
  to { transform: scale(1.03); }
}
@keyframes bracket-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(0.97); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 768px) {
  .nav__links a { display: none; }
  .hero__inner { padding: 100px 24px 48px; }
  .hero__title { font-size: clamp(34px, 9vw, 48px); }
  .section__inner, .dark .section__inner { padding: 56px 24px; }
  .stats__inner { grid-template-columns: 1fr; }
  .stat:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .museum-grid { grid-template-columns: 1fr; }
  .step { gap: 20px; }
  .step__n { font-size: 32px; width: 44px; }
}
