/* Monracking — estilos globales. Color de marca: cambiar --accent. */
:root { --accent: #F5C400; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0E0E0E; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

a { color: #0E0E0E; }
a:hover { color: #3A3935; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input, select, textarea { font: inherit; color: #0E0E0E; }
input:focus, select:focus, textarea:focus { outline: 3px solid #0E0E0E; outline-offset: 1px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #0E0E0E; padding: 12px 16px; font-family: Barlow, system-ui, sans-serif; font-weight: 600; }
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Animaciones ---------- */
@keyframes mrRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes mrMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mrPulse { 0% { box-shadow: 0 0 0 0 rgba(245, 196, 0, .6); } 70% { box-shadow: 0 0 0 18px rgba(245, 196, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 196, 0, 0); } }
@keyframes mrBob { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: .45; } }
@keyframes mrPop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mrDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Entrada del título de portada */
.mr-rise { animation: mrRise .9s cubic-bezier(.2, .7, .2, 1) both; }

/* Aparición al hacer scroll (la clase .is-in la pone app.js) */
html.js .mr-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.js .mr-reveal.is-in { opacity: 1; transform: none; }

/* Galería de obras en movimiento */
.mr-track { display: flex; width: max-content; animation: mrMarquee 70s linear infinite; }
.mr-track.mr-rev { animation-direction: reverse; }
.mr-marquee:hover .mr-track { animation-play-state: paused; }

/* Zoom de fotos y botones */
.mr-zoom { overflow: hidden; }
.mr-zoom img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mr-card:hover .mr-zoom img { transform: scale(1.06); }
.mr-btn { transition: transform .2s ease; }
.mr-btn:hover { transform: translateY(-2px); }
.mr-wa { animation: mrPulse 2.4s ease-out infinite; }
.mr-bob { animation: mrBob 1.8s ease-in-out infinite; }
.mr-pop { animation: mrPop .28s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Asistente (chat guiado a WhatsApp) ---------- */
.mr-launcher { position: fixed; right: 16px; bottom: 16px; z-index: 61; display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #0E0E0E; border: 0; font-family: Barlow, system-ui, sans-serif; font-weight: 600; font-size: 16px; padding: 14px 20px; min-height: 54px; border-radius: 999px; cursor: pointer; }
.mr-chat { position: fixed; right: 16px; bottom: 86px; z-index: 60; width: 384px; max-width: calc(100% - 32px); height: 580px; max-height: calc(100% - 110px); display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #0E0E0E; box-shadow: 0 18px 48px rgba(0, 0, 0, .28); color: #0E0E0E; font-family: Barlow, system-ui, sans-serif; font-size: 16px; line-height: 1.45; }
.mr-chat__head { background: #0E0E0E; color: #FFFFFF; padding: 10px 8px 10px 14px; display: flex; align-items: center; gap: 12px; }
.mr-chat__logo { width: 42px; height: 42px; flex: 0 0 auto; background: #1C1C1B; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 15px; line-height: .9; }
.mr-chat__title { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.mr-chat__title strong { font-weight: 600; font-size: 16px; line-height: 1.25; }
.mr-chat__title a { color: #C9C7C1; font-size: 13px; }
.mr-chat__title a:hover { color: #FFFFFF; }
.mr-chat__close { width: 44px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #FFFFFF; cursor: pointer; }
.mr-chat__log { flex: 1 1 auto; min-height: 0; overflow-y: auto; background: #F5F4F0; padding: 16px 14px 6px; }
.mr-msg { display: flex; margin-bottom: 10px; }
.mr-msg--user { justify-content: flex-end; }
.mr-bubble { max-width: 86%; background: #FFFFFF; border: 1px solid #E2DFD8; padding: 10px 14px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.mr-msg--user .mr-bubble { background: var(--accent); border-color: var(--accent); }
.mr-typing { display: flex; gap: 5px; padding: 13px 14px; }
.mr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #55534E; animation: mrDot 1.2s infinite; }
.mr-dot:nth-child(2) { animation-delay: .15s; }
.mr-dot:nth-child(3) { animation-delay: .3s; }
.mr-summary { background: #FFFFFF; border: 1.5px solid #0E0E0E; padding: 14px 16px; margin-bottom: 10px; }
.mr-summary__title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #55534E; }
.mr-summary dl { margin: 8px 0 0; font-size: 14px; }
.mr-summary dt { font-weight: 600; }
.mr-summary dd { margin: 0 0 6px; color: #3A3935; }
.mr-chat__foot { border-top: 1px solid #E2DFD8; padding: 12px; background: #FFFFFF; }
.mr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-chip { background: #FFFFFF; border: 1.5px solid #0E0E0E; color: #0E0E0E; font: inherit; font-size: 15px; font-weight: 600; padding: 9px 12px; min-height: 44px; cursor: pointer; text-align: left; transition: background-color .15s ease; }
.mr-chip:hover { background: #EEECE7; }
.mr-input-row { display: flex; gap: 8px; }
.mr-input { flex: 1 1 auto; min-width: 0; height: 46px; border: 1.5px solid #0E0E0E; padding: 0 12px; font-size: 16px; }
.mr-send { width: 46px; height: 46px; flex: 0 0 auto; background: #0E0E0E; color: #FFFFFF; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mr-link-btn { background: transparent; border: 0; padding: 8px 0; min-height: 40px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; color: #3A3935; cursor: pointer; }
.mr-done { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.mr-wa-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #0E0E0E; color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 18px; min-height: 50px; }
.mr-wa-btn:hover { color: #FFFFFF; }

/* ---------- Menú en celular ---------- */
.mr-nav-toggle { display: none; align-items: center; gap: 8px; background: transparent; border: 1.5px solid #FFFFFF; color: #FFFFFF; font-family: Barlow, system-ui, sans-serif; font-weight: 600; font-size: 16px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
@media (max-width: 760px) {
  header > div { column-gap: 12px !important; }
  .mr-nav-toggle { display: inline-flex; padding: 10px 12px; }
  .mr-nav { display: none !important; }
  .mr-nav.is-open { display: flex !important; flex-basis: 100%; flex-direction: column; align-items: flex-start !important; gap: 2px !important; padding-bottom: 8px; }
  /* Botón flotante compacto para no tapar contenido */
  .mr-launcher { width: 58px; height: 58px; padding: 0; justify-content: center; }
  .mr-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mr-chat { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .mr-reveal { opacity: 1; transform: none; }
}
