/* ==========================================================================
   MOTO CLUB HUACHO — Heritage MC + Modern Dynamic Web System (v10.2)
   Typography: Plus Jakarta Sans + Zilla Slab + JetBrains Mono
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Core MC Palette */
  --mc-bg: #0b0a09;
  --mc-surface: #13110f;
  --mc-card: #1a1714;
  --mc-card-hover: #221e1a;
  --mc-parchment: #f4ecdc;
  --mc-parchment-card: #efe3ca;
  --mc-parchment-muted: #c8bda6;
  --mc-ink: #161310;

  /* Accents (from official Eagle & Ribbon Patch) */
  --mc-crimson: #9b1c1c;
  --mc-crimson-bright: #c52222;
  --mc-crimson-deep: #681212;
  --mc-brass: #d18b2d;
  --mc-brass-light: #eab354;

  /* Borders & Elevation */
  --mc-border: rgba(209, 139, 45, 0.24);
  --mc-border-strong: rgba(209, 139, 45, 0.52);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heritage: 'Zilla Slab', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --header-height: 102px;
}

/* Base Reset & Accessibility */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
  background-color: var(--mc-bg);
  color: var(--mc-parchment);
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--mc-bg);
  color: var(--mc-parchment);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
.font-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.font-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.font-heritage {
  font-family: var(--font-heritage);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.font-mono-tech {
  font-family: var(--font-mono);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.mc-hero-title {
  font-size: clamp(2.35rem, 1.4rem + 4vw, 4.75rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mc-section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.15rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Focus Indicators (WCAG 2.4.7 & 1.4.11) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--mc-brass-light);
  outline-offset: 3px;
}

/* Visually Hidden / Skip Link Utility */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--mc-brass);
  color: var(--mc-ink);
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Scroll Progress Bar */
.mc-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--mc-crimson-bright), var(--mc-brass-light));
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  pointer-events: none;
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes mc-progress-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  .mc-scroll-progress {
    animation: mc-progress-grow linear both;
    animation-timeline: scroll(block root);
    animation-range: 0% 100%;
  }
}

/* Subtle Asphalt Texture */
.mc-grain {
  position: relative;
}

.mc-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: radial-gradient(rgba(243, 234, 214, 0.75) 0.75px, transparent 0.75px);
  background-size: 20px 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 102px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0.92) 0%, rgba(11, 10, 9, 0.74) 100%);
  border-bottom: 1px solid rgba(209, 139, 45, 0.18);
  backdrop-filter: blur(14px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  height: 82px;
  background: rgba(11, 10, 9, 0.96);
  border-bottom-color: rgba(209, 139, 45, 0.42);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes mc-header-shrink {
    from {
      height: 102px;
      background-color: rgba(11, 10, 9, 0.78);
    }
    to {
      height: 82px;
      background-color: rgba(11, 10, 9, 0.97);
    }
  }
  .site-header {
    animation: mc-header-shrink auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 140px;
  }
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 3vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1rem);
  box-sizing: border-box;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 0.9rem);
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.site-logo img {
  height: 82px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.72));
  transition: height 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled .site-logo img {
  height: 68px;
}

.site-logo:hover img {
  transform: scale(1.04) rotate(-2deg);
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.12;
  min-width: 0;
  flex: 1 1 auto;
}

.site-logo-title {
  font-family: var(--font-heritage);
  font-size: clamp(0.9rem, 3.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--mc-parchment);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-logo-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 2.05vw, 0.65rem);
  letter-spacing: clamp(0.03em, 0.12vw + 0.02em, 0.14em);
  text-transform: uppercase;
  color: var(--mc-brass);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  min-block-size: 40px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mc-parchment);
  border-radius: 0.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.menu-link:hover {
  color: var(--mc-brass-light);
  background-color: rgba(209, 139, 45, 0.1);
}

.menu-link[aria-current="page"],
.menu-link.active {
  color: var(--mc-parchment);
  background-color: rgba(155, 28, 28, 0.3);
  border-color: var(--mc-brass);
}

.menu-link[aria-current="page"]::after,
.menu-link.active::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--mc-brass);
}

.menu-link-cta {
  background: linear-gradient(135deg, var(--mc-crimson-bright), var(--mc-crimson-deep));
  color: #ffffff;
  border-color: rgba(209, 139, 45, 0.5);
  margin-inline-start: 0.4rem;
}

.menu-link-cta:hover {
  filter: brightness(1.1);
  color: #ffffff;
  border-color: var(--mc-brass-light);
}

.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  min-inline-size: 46px;
  min-block-size: 46px;
  padding: 0;
  border-radius: 0.65rem;
  border: 1px solid var(--mc-border-strong);
  background: rgba(27, 24, 21, 0.92);
  color: var(--mc-parchment);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle-btn:hover {
  background: rgba(155, 28, 28, 0.4);
  border-color: var(--mc-brass-light);
}

@media (max-width: 1023px) {
  .site-nav {
    display: none !important;
  }
  .menu-toggle-btn {
    display: inline-flex !important;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }
  .menu-toggle-btn {
    display: none !important;
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .site-logo img { height: 70px; }
  .menu-link { padding: 0.45rem 0.65rem; font-size: 0.84rem; }
}

/* Native Modal Drawer (<dialog>) */
.mc-drawer {
  inset: 0 0 0 auto;
  margin: 0 0 0 auto;
  padding: 0;
  width: min(22rem, 86dvw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-left: 2px solid var(--mc-brass);
  background: linear-gradient(180deg, #161310 0%, #0b0a09 100%);
  color: var(--mc-parchment);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
}

.mc-drawer:modal {
  overscroll-behavior: contain;
}

.mc-drawer::backdrop {
  background: rgba(6, 5, 4, 0.78);
  backdrop-filter: blur(5px);
  overflow: hidden;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: no-preference) {
  .mc-drawer[open] {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.25s ease, transform 0.25s ease, display 0.25s, overlay 0.25s;
    transition-behavior: allow-discrete;
  }
  @starting-style {
    .mc-drawer[open] {
      opacity: 0;
      transform: translateX(100%);
    }
  }
}

.mc-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  gap: 1.5rem;
}

.mc-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mc-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 46px;
  padding: 0.75rem 1rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--mc-parchment);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mc-drawer-link:hover {
  background: rgba(209, 139, 45, 0.14);
  border-color: var(--mc-border);
}

.mc-drawer-link[aria-current="page"],
.mc-drawer-link.active {
  background: rgba(155, 28, 28, 0.35);
  border-color: var(--mc-brass);
  color: var(--mc-brass-light);
}

/* ==========================================================================
   KINETIC MARQUEE TICKER (with accessible pause toggle)
   ========================================================================== */
.mc-ticker-wrap {
  background: linear-gradient(90deg, #681212, #9b1c1c, #681212);
  border-top: 1px solid rgba(209, 139, 45, 0.4);
  border-bottom: 1px solid rgba(209, 139, 45, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.mc-ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding-block: 0.7rem;
  padding-inline-start: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mc-parchment);
}

@media (prefers-reduced-motion: no-preference) {
  .mc-ticker-track.is-running {
    animation: mc-marquee 32s linear infinite;
  }
  .mc-ticker-wrap:hover .mc-ticker-track.is-running {
    animation-play-state: paused;
  }
}

.mc-ticker-track.is-paused {
  animation-play-state: paused !important;
}

@keyframes mc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   CARDS, BADGES, PARCHMENT, BUTTONS
   ========================================================================== */
.mc-rocker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--mc-brass);
  background: rgba(155, 28, 28, 0.25);
  color: var(--mc-brass-light);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mc-patch-card {
  position: relative;
  background: linear-gradient(165deg, #1d1916 0%, #13110f 100%);
  border: 1px solid var(--mc-border);
  border-radius: 1.15rem;
  box-shadow:
    inset 0 1px 0 rgba(243, 234, 214, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.mc-patch-card:hover {
  transform: translateY(-5px);
  border-color: var(--mc-brass);
  box-shadow:
    inset 0 1px 0 rgba(234, 179, 84, 0.2),
    0 24px 54px rgba(0, 0, 0, 0.65);
}

.mc-stitched {
  position: relative;
}

.mc-stitched::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(209, 139, 45, 0.25);
  border-radius: 0.8rem;
  pointer-events: none;
}

.mc-parchment-panel {
  background: linear-gradient(160deg, #f5ecd8 0%, #e7d8b9 100%);
  color: var(--mc-ink);
  border: 2px solid rgba(155, 28, 28, 0.35);
  box-shadow:
    inset 0 0 42px rgba(139, 92, 42, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.mc-parchment-panel h2,
.mc-parchment-panel h3 {
  color: #5c1111;
}

.mc-parchment-panel p {
  color: #29221c;
}

.mc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-inline: auto;
  max-width: 15rem;
}

.mc-divider::before,
.mc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mc-brass), transparent);
}

.mc-divider-gem {
  width: 9px;
  height: 9px;
  background: var(--mc-crimson-bright);
  border: 2px solid var(--mc-brass);
  transform: rotate(45deg);
}

.mc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-block-size: 48px;
  padding: 0.85rem 1.85rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #c52222 0%, #891515 100%);
  border: 1px solid var(--mc-brass);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(155, 28, 28, 0.42);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.mc-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(197, 34, 34, 0.55);
}

.mc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-block-size: 48px;
  padding: 0.85rem 1.85rem;
  border-radius: 0.65rem;
  background: rgba(20, 18, 16, 0.78);
  border: 1px solid rgba(243, 234, 214, 0.42);
  color: var(--mc-parchment);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mc-btn-secondary:hover {
  background: var(--mc-parchment);
  color: var(--mc-ink);
  border-color: var(--mc-parchment);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO PARALLAX & SUBHERO
   ========================================================================== */
.mc-hero {
  position: relative;
  min-height: 94svh;
  padding-top: 7.75rem;
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--mc-bg);
}

.mc-hero-bg {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.06) brightness(0.92);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes mc-hero-parallax {
      from { transform: translateY(-3%); }
      to { transform: translateY(5%); }
    }
    .mc-hero-bg {
      animation: mc-hero-parallax linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 800px;
    }
  }
}

.mc-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 42%, rgba(155, 28, 28, 0.14) 0%, transparent 56%),
    linear-gradient(90deg, rgba(11, 10, 9, 0.78) 0%, rgba(11, 10, 9, 0.42) 52%, rgba(11, 10, 9, 0.16) 100%),
    linear-gradient(180deg, rgba(11, 10, 9, 0.34) 0%, transparent 28%, rgba(11, 10, 9, 0.88) 100%);
}

.subhero {
  position: relative;
  padding-top: 10.25rem;
  padding-bottom: 4.25rem;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid rgba(209, 139, 45, 0.35);
  overflow: hidden;
}

.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0.78) 0%, rgba(20, 18, 16, 0.65) 60%, rgba(11, 10, 9, 0.93) 100%);
}

.subhero > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SCROLL REVEAL (Progressive Enhancement + Stagger)
   ========================================================================== */
.mc-reveal-ready [data-animate="on-scroll"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.mc-reveal-ready [data-animate="on-scroll"].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mc-reveal-ready [data-animate="on-scroll"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   TIMELINE, DIRECTIVA, GALERÍA, LIGHTBOX, CALENDARIO, FORMS, FOOTER
   ========================================================================== */
.timeline {
  position: relative;
  margin-left: 1rem;
  padding-left: 2.5rem;
  border-left: 2px solid rgba(209, 139, 45, 0.45);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.05rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mc-crimson-bright);
  border: 3px solid var(--mc-brass);
  box-shadow: 0 0 0 4px var(--mc-bg);
}

.avatar-circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mc-parchment);
  background: linear-gradient(135deg, var(--mc-crimson), #2f1212);
  border: 3px solid var(--mc-brass);
  margin: 0 auto;
}

.avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-circle img.paso-icon { width: 66%; height: 66%; object-fit: contain; }
.avatar-fallback { display: none; align-items: center; justify-content: center; width: 100%; height: 100%; }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid var(--mc-border);
  background: var(--mc-card);
  cursor: pointer;
  aspect-ratio: 4/3;
  padding: 0;
  width: 100%;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.07);
}

.gallery-item .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1rem 0.9rem;
  background: linear-gradient(0deg, rgba(11, 10, 9, 0.92), transparent);
  color: var(--mc-parchment);
  font-weight: 600;
  font-size: 0.92rem;
}

.gallery-filter-btn {
  min-block-size: 42px;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
  border: 1px solid var(--mc-border-strong);
  background: var(--mc-card);
  color: var(--mc-parchment-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover {
  border-color: var(--mc-brass);
  color: var(--mc-parchment);
}

.gallery-filter-btn.active,
.gallery-filter-btn[aria-pressed="true"] {
  background-color: var(--mc-crimson);
  border-color: var(--mc-brass);
  color: #ffffff;
}

/* Native <dialog> Modals & Lightbox */
.mc-lightbox,
.mc-modal {
  margin: auto;
  padding: 0;
  border: 1px solid var(--mc-border-strong);
  border-radius: 1rem;
  background: #141210;
  color: var(--mc-parchment);
  max-width: min(92dvw, 960px);
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
}

.mc-modal {
  width: min(92dvw, 540px);
  padding: 1.75rem;
}

.mc-lightbox:modal,
.mc-modal:modal {
  overscroll-behavior: contain;
}

.mc-lightbox::backdrop,
.mc-modal::backdrop {
  background: rgba(5, 4, 4, 0.85);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: no-preference) {
  .mc-lightbox[open],
  .mc-modal[open] {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.22s ease, transform 0.22s ease, display 0.22s, overlay 0.22s;
    transition-behavior: allow-discrete;
  }
  @starting-style {
    .mc-lightbox[open],
    .mc-modal[open] {
      opacity: 0;
      transform: scale(0.96);
    }
  }
}

.mc-lightbox-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  gap: 0.85rem;
}

.mc-lightbox-body img {
  max-width: 100%;
  max-height: 76dvh;
  border-radius: 0.5rem;
  object-fit: contain;
}

.mc-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-inline-size: 42px;
  min-block-size: 42px;
  border-radius: 9999px;
  border: 1px solid var(--mc-brass);
  background: rgba(11, 10, 9, 0.92);
  color: var(--mc-parchment);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mc-lightbox-close:hover { background: var(--mc-crimson); }

.calendar-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #221e1b;
  color: var(--mc-parchment);
  border: 1px solid var(--mc-border-strong);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover { background: var(--mc-crimson); border-color: var(--mc-brass); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: var(--mc-parchment-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mc-parchment);
  background: #1d1916;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.calendar-day.empty { background: transparent; }
.calendar-day.no-event { color: #7c7468; }
.calendar-day.has-event { cursor: pointer; border-color: var(--mc-brass); color: var(--mc-brass-light); font-weight: 700; }
.calendar-day.has-event:hover { background: #2c2621; }
.calendar-day.today { border-color: rgba(243, 234, 214, 0.55); font-weight: 700; }
.calendar-day.selected { background: var(--mc-crimson); color: #ffffff; }
.calendar-day.selected.has-event { border-color: var(--mc-parchment); }

.poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  background: #141210;
  border: 1px solid var(--mc-border-strong);
  padding: 0;
}

.poster-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.poster-frame:hover img { transform: scale(1.05); }

.poster-frame-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: var(--mc-parchment);
  font-size: 1.75rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.poster-frame:hover .poster-frame-overlay,
.poster-frame:focus-visible .poster-frame-overlay {
  background: rgba(11, 10, 9, 0.45);
  opacity: 1;
}

#fichaWhatsapp.ficha-cta-disabled {
  background-color: #461414 !important;
  color: #d6a5a5 !important;
  cursor: not-allowed;
  opacity: 0.85;
  pointer-events: none;
}

/* Forms */
.mc-input,
.mc-form input[type="text"],
.mc-form input[type="password"],
.mc-form input[type="tel"],
.mc-form input[type="email"],
.mc-form input[type="date"],
.mc-form input[type="number"],
.mc-form select,
.mc-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #110f0d;
  border: 1px solid rgba(209, 139, 45, 0.35);
  border-radius: 0.55rem;
  color: var(--mc-parchment);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mc-input::placeholder,
.mc-form input::placeholder,
.mc-form textarea::placeholder { color: #8f8474; }

.mc-input:focus,
.mc-form input:focus,
.mc-form select:focus,
.mc-form textarea:focus {
  outline: none;
  border-color: var(--mc-brass-light);
  box-shadow: 0 0 0 3px rgba(209, 139, 45, 0.2);
}

.mc-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mc-parchment);
  margin-bottom: 0.4rem;
}

.mc-form label.mc-check-label,
.mc-form label.inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.mc-form input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
}

.field-error { color: #f87171; font-size: 0.85rem; margin-top: 0.35rem; }

.login-card {
  background-color: #16110e;
  background-image:
    linear-gradient(180deg, rgba(11, 9, 8, 0.34) 0%, rgba(11, 9, 8, 0.46) 100%),
    url('../images/login-leather-bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(209, 139, 45, 0.45);
  border-radius: 0.75rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
}

.login-card.mc-stitched::before {
  display: none;
}

.login-card .mc-form input[type="text"],
.login-card .mc-form input[type="password"],
.login-card .mc-form input[type="tel"] {
  background: rgba(11, 9, 8, 0.88);
}

.input-icon-wrap { position: relative; }
.input-icon-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mc-brass);
  pointer-events: none;
}
.input-icon-wrap input { padding-left: 2.75rem !important; }

.photo-upload,
.dni-upload,
.moto-upload {
  width: 100%;
  border: 1.5px dashed var(--mc-brass);
  border-radius: 0.9rem;
  background: #12100e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--mc-parchment-muted);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.photo-upload { aspect-ratio: 8 / 9; }
.dni-upload { aspect-ratio: 9 / 5.5; }
.moto-upload { aspect-ratio: 4 / 3; }

.photo-upload:hover,
.dni-upload:hover,
.moto-upload:hover {
  background: #1d1814;
  border-color: var(--mc-crimson-bright);
  color: var(--mc-parchment);
}

.photo-upload img,
.dni-upload img,
.moto-upload img { width: 100%; height: 100%; object-fit: cover; }

.faq-item {
  border: 1px solid var(--mc-border);
  border-radius: 0.85rem;
  background: var(--mc-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.4rem;
  background: transparent;
  color: var(--mc-parchment);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  border: 0;
}

.faq-question:hover { background: rgba(209, 139, 45, 0.08); }
.faq-answer { padding: 0 1.4rem 1.25rem; color: var(--mc-parchment-muted); line-height: 1.7; border-top: 1px solid rgba(209, 139, 45, 0.14); }
.faq-answer[hidden] { display: none; }

/* Footer */
.footer-wrapper {
  background: linear-gradient(180deg, rgba(11, 10, 9, 0.96) 0%, rgba(16, 11, 9, 0.98) 100%);
  border-top: 2px solid var(--mc-crimson);
  color: var(--mc-parchment-muted);
  width: 100%;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
}

.footer-column h4 {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mc-brass-light);
  margin-bottom: 1rem;
}

.footer-column a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--mc-parchment-muted);
  text-decoration: none;
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer-column a:hover { color: var(--mc-brass-light); text-decoration: underline; }
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  text-align: center;
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(209, 139, 45, 0.18);
  font-size: 0.85rem;
  color: var(--mc-parchment-muted);
}

@media (forced-colors: active) {
  .site-header,
  .mc-patch-card,
  .mc-parchment-panel,
  .mc-drawer,
  .mc-lightbox,
  .mc-modal,
  .login-card,
  .faq-item {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
  .menu-link[aria-current="page"],
  .menu-link.active,
  .mc-drawer-link[aria-current="page"] {
    outline: 2px solid Highlight;
  }
}

@media (max-width: 640px) {
  .site-header { height: 76px; animation: none !important; }
  .site-header.is-scrolled { height: 68px; }
  .header-inner { padding-inline: 0.75rem; gap: 0.55rem; }
  .site-logo { gap: 0.55rem; }
  .site-logo img { height: clamp(48px, 13vw, 58px); }
  .site-header.is-scrolled .site-logo img { height: 48px; }
  .site-logo-title { font-size: clamp(0.88rem, 4vw, 1.05rem); letter-spacing: 0.02em; }
  .site-logo-sub { font-size: clamp(0.49rem, 2.1vw, 0.58rem); letter-spacing: 0.04em; }
  .menu-toggle-btn { width: 44px; height: 44px; min-inline-size: 44px; min-block-size: 44px; }
  .subhero { padding-top: 7rem; padding-bottom: 3rem; }
  .mc-hero { padding-top: 6rem; }
}

@media (max-width: 380px) {
  .header-inner { padding-inline: 0.65rem; gap: 0.45rem; }
  .site-logo { gap: 0.45rem; }
  .site-logo img { height: 46px; }
  .site-logo-title { font-size: 0.86rem; }
  .site-logo-sub { font-size: 0.48rem; letter-spacing: 0.025em; }
  .menu-toggle-btn { width: 42px; height: 42px; min-inline-size: 42px; min-block-size: 42px; font-size: 1.05rem; }
}
