/* ============================================================
   SHYRO · MINECRAFT HOSTING — STYLE.CSS v3.2
   Prefijo: mch-* para no colisionar con el resto del sitio
   Fix: hero con imagen de fondo (igual al index principal)
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg-0: #0A0C10;
  --bg-1: #101318;
  --bg-2: #161A20;
  --bg-3: #1D222A;

  --fg-0: #F2F5F8;
  --fg-1: #C8CFD6;
  --fg-2: #8A929C;
  --fg-3: #565C66;

  --cyan-500: #00E5FF;
  --cyan-600: #00C2DA;
  --cyan-700: #0095AA;
  --cyan-800: #007A8C;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --cyan-line: rgba(0, 229, 255, 0.32);
  --cyan-dim-strong: rgba(0, 229, 255, 0.18);
  --cyan-line-strong: rgba(0, 229, 255, 0.5);

  --grass: #7CB342;
  --grass-dim: rgba(124, 179, 66, 0.12);
  --grass-line: rgba(124, 179, 66, 0.35);

  --amber: #FFB454;
  --amber-dim: rgba(255, 180, 84, 0.12);
  --amber-line: rgba(255, 180, 84, 0.4);

  --line-1: rgba(242, 245, 248, 0.08);
  --line-2: rgba(242, 245, 248, 0.14);
  --line-3: rgba(242, 245, 248, 0.24);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --t-mega: clamp(2.4rem, 7vw, 5rem);
  --t-xl: clamp(2rem, 4.2vw, 3.4rem);
  --t-lg: clamp(1.4rem, 2.4vw, 2rem);
  --t-md: clamp(1.05rem, 1.5vw, 1.3rem);
  --t-base: 1rem;
  --t-sm: 0.875rem;
  --t-xs: 0.78rem;
  --t-2xs: 0.68rem;

  --gutter: clamp(16px, 3vw, 32px);
  --container: 1280px;

  --r-1: 2px;
  --r-2: 4px;
  --r-3: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 120ms;
  --t-base: 220ms;
  --t-slow: 420ms;

  --btn-primary-fg: #071A1F;
  --btn-primary-bg: #00E5FF;
  --btn-primary-bg-hover: #00C2DA;

  --color-scheme: dark;
}

html[data-theme="light"] {
  --bg-0: #F4F6F8;
  --bg-1: #FFFFFF;
  --bg-2: #ECEEF2;
  --bg-3: #E0E3E8;
  --fg-0: #0A0C10;
  --fg-1: #2A2E34;
  --fg-2: #5A6068;
  --fg-3: #8A9098;

  --cyan-500: #0089A0;
  --cyan-600: #007A8C;
  --cyan-700: #006878;
  --cyan-800: #005562;
  --cyan-dim: rgba(0, 137, 160, 0.10);
  --cyan-line: rgba(0, 137, 160, 0.30);
  --cyan-dim-strong: rgba(0, 137, 160, 0.16);
  --cyan-line-strong: rgba(0, 137, 160, 0.5);

  --grass: #558B2F;
  --grass-dim: rgba(85, 139, 47, 0.10);
  --grass-line: rgba(85, 139, 47, 0.30);

  --amber: #B36A00;
  --amber-dim: rgba(179, 106, 0, 0.10);
  --amber-line: rgba(179, 106, 0, 0.35);

  --line-1: rgba(10, 12, 16, 0.08);
  --line-2: rgba(10, 12, 16, 0.14);
  --line-3: rgba(10, 12, 16, 0.24);

  --btn-primary-fg: #FFFFFF;
  --btn-primary-bg: #007A8C;
  --btn-primary-bg-hover: #006878;

  --color-scheme: light;
}

html { color-scheme: var(--color-scheme); }
html:not([data-theme]) { visibility: hidden; }
html[data-theme] { visibility: visible; }

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

.mch-body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--fg-0);
  background: var(--bg-0);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mch-body img, .mch-body svg, .mch-body video { display: block; max-width: 100%; height: auto; }
.mch-body h1, .mch-body h2, .mch-body h3, .mch-body h4 {
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
}
.mch-body a { color: inherit; text-decoration: none; }
.mch-body ul, .mch-body ol { list-style: none; }
.mch-body button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.mch-body ::selection { background: var(--cyan-500); color: var(--bg-0); }

.mch-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-1) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  opacity: 0.55;
}

/* ---------- 3. LAYOUT ---------- */
.mch-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mch-section {
  padding-block: clamp(72px, 9vw, 120px);
  position: relative;
}
.mch-section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

/* ---------- 4. BOTONES ---------- */
.mch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  position: relative;
  transition: background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
  text-decoration: none;
}
.mch-btn:active { transform: translateY(1px); }
.mch-btn i { font-size: 0.9em; }

.mch-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
  font-weight: 700;
}
.mch-btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  border-color: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
}

.mch-btn-secondary,
.mch-btn-outline {
  background: transparent;
  color: var(--fg-0);
  border-color: var(--line-3);
}
.mch-btn-secondary:hover,
.mch-btn-outline:hover {
  border-color: var(--cyan-500);
  color: var(--cyan-500);
  background: var(--cyan-dim);
}

.mch-btn-large { padding: 16px 28px; font-size: var(--t-sm); min-height: 52px; }
.mch-btn-full { width: 100%; }

.mch-btn:focus-visible,
.mch-body a:focus-visible,
.mch-body button:focus-visible {
  outline: 2px solid var(--cyan-500);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

/* ---------- 5. NAVBAR ---------- */
.mch-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t-slow) var(--ease),
              border-color var(--t-slow) var(--ease),
              padding var(--t-slow) var(--ease);
}
.mch-navbar.mch-scrolled {
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  border-bottom-color: var(--line-2);
  padding: 10px 0;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.mch-nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

/* LOGO */
.mch-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mch-logo-img {
  height: 34px !important;
  width: auto !important;
  max-width: 160px !important;
  max-height: 34px !important;
  object-fit: contain;
  filter: none;
  transition: filter var(--t-base) var(--ease);
}
html[data-theme="dark"] .mch-logo-img,
html:not([data-theme]) .mch-logo-img {
  filter: none;
}
html[data-theme="light"] .mch-logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(0.15) contrast(1.2);
}

.mch-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 28px);
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mch-nav-links > a,
.mch-nav-dropdown-toggle {
  color: var(--fg-1);
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-base) var(--ease);
}
.mch-nav-links > a::after,
.mch-nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.mch-nav-links > a:hover,
.mch-nav-dropdown-toggle:hover { color: var(--fg-0); }
.mch-nav-links > a:hover::after,
.mch-nav-dropdown-toggle:hover::after { transform: scaleX(1); }

.mch-nav-dropdown { position: relative; display: inline-flex; align-items: center; height: 100%; }
.mch-nav-dropdown-toggle { background: transparent; border: none; cursor: pointer; }
.mch-nav-dropdown-toggle i { font-size: 0.65em; transition: transform var(--t-base) var(--ease); }
.mch-nav-dropdown:hover .mch-nav-dropdown-toggle i,
.mch-nav-dropdown.mch-active .mch-nav-dropdown-toggle i { transform: rotate(180deg); }
.mch-nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: -20px; right: -20px; height: 20px;
}
.mch-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 300px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: all var(--t-base) var(--ease);
  z-index: 1001;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.mch-nav-dropdown:hover .mch-nav-dropdown-menu,
.mch-nav-dropdown.mch-active .mch-nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.mch-nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-2);
  transition: background var(--t-fast) var(--ease);
}
.mch-nav-dropdown-menu a:hover { background: var(--bg-2); }
.mch-nav-dropdown-menu a i {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  color: var(--cyan-500);
  font-size: 0.85rem;
  flex-shrink: 0;
  background: var(--bg-2);
}
.mch-nav-dropdown-menu a div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mch-nav-dropdown-menu a span {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--fg-0);
  text-transform: none;
  letter-spacing: 0;
}
.mch-nav-dropdown-menu a:hover span { color: var(--cyan-500); }
.mch-nav-dropdown-menu a small {
  font-family: var(--font-body);
  font-size: var(--t-2xs);
  color: var(--fg-2);
  text-transform: none;
  letter-spacing: 0;
}
.mch-nav-dropdown-separator { height: 1px; background: var(--line-1); margin: 6px 12px; }

.mch-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.mch-signup-link {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-1);
  transition: color var(--t-base) var(--ease);
  white-space: nowrap;
}
.mch-signup-link:hover { color: var(--cyan-500); }

/* Preferencias desktop */
.mch-prefs-wrapper { position: relative; display: inline-block; }
.mch-prefs-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-1);
  background: transparent;
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  min-height: 38px;
}
.mch-prefs-toggle:hover,
.mch-prefs-wrapper.mch-open .mch-prefs-toggle {
  color: var(--cyan-500);
  border-color: var(--cyan-500);
  background: var(--cyan-dim);
}
.mch-prefs-toggle i.mch-prefs-caret { font-size: 0.7em; transition: transform var(--t-base) var(--ease); }
.mch-prefs-wrapper.mch-open .mch-prefs-toggle i.mch-prefs-caret { transform: rotate(180deg); }
.mch-prefs-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 320px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  padding: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--t-base) var(--ease);
  z-index: 1005;
}
.mch-prefs-wrapper.mch-open .mch-prefs-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mch-prefs-group { padding: 10px 4px; border-bottom: 1px solid var(--line-1); }
.mch-prefs-group:last-child { border-bottom: none; }
.mch-prefs-group-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-2);
  margin-bottom: 10px;
}
.mch-prefs-group-label i { color: var(--cyan-500); font-size: 0.75rem; }
.mch-prefs-segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--bg-2);
  padding: 3px;
  border-radius: var(--r-2);
}
.mch-prefs-segmented button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.mch-prefs-segmented button:hover { color: var(--fg-0); }
.mch-prefs-segmented button.mch-active {
  background: var(--bg-0);
  color: var(--cyan-500);
}
.mch-prefs-currency-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mch-prefs-currency-list button {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: transparent;
  color: var(--fg-0);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  text-align: left;
}
.mch-prefs-currency-list button:hover { border-color: var(--cyan-500); color: var(--cyan-500); }
.mch-prefs-currency-list button.mch-active {
  border-color: var(--cyan-500);
  background: var(--cyan-dim);
  color: var(--cyan-500);
}
.mch-prefs-flag { font-size: 1rem; line-height: 1; }
.mch-prefs-code { font-weight: 700; }

/* ---------- 6. MENÚ MÓVIL ---------- */
.mch-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-1);
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 1002;
  flex-shrink: 0;
}
.mch-menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--fg-0);
  margin: 0 auto;
  transition: all var(--t-base) var(--ease);
}
.mch-menu-toggle.mch-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mch-menu-toggle.mch-active span:nth-child(2) { opacity: 0; }
.mch-menu-toggle.mch-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mch-mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--bg-0);
  border-left: 1px solid var(--line-2);
  z-index: 1001;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  padding: max(80px, calc(20px + 60px)) 24px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.mch-mobile-menu.mch-open { transform: translateX(0); }
.mch-mobile-menu::-webkit-scrollbar { width: 6px; }
.mch-mobile-menu::-webkit-scrollbar-track { background: transparent; }
.mch-mobile-menu::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

.mch-mobile-menu-inner { display: flex; flex-direction: column; flex: 1; }
.mch-mobile-links { display: flex; flex-direction: column; margin-bottom: 20px; }
.mch-mobile-links > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fg-0);
  border-bottom: 1px solid var(--line-1);
  transition: color var(--t-base) var(--ease), padding-left var(--t-base) var(--ease);
}
.mch-mobile-links > a i { color: var(--fg-2); font-size: 0.85rem; transition: all var(--t-base) var(--ease); }
.mch-mobile-links > a:hover { color: var(--cyan-500); padding-left: 6px; }
.mch-mobile-links > a:hover i { color: var(--cyan-500); transform: translateX(4px); }

.mch-mobile-dropdown { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-1); }
.mch-mobile-dropdown-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fg-0);
  text-align: left;
  transition: color var(--t-base) var(--ease);
}
.mch-mobile-dropdown-toggle i { color: var(--fg-2); font-size: 0.85rem; transition: all var(--t-base) var(--ease); }
.mch-mobile-dropdown-toggle:hover,
.mch-mobile-dropdown-toggle[aria-expanded="true"] { color: var(--cyan-500); }
.mch-mobile-dropdown-toggle[aria-expanded="true"] i { color: var(--cyan-500); transform: rotate(180deg); }
.mch-mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease), padding var(--t-slow) var(--ease);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mch-mobile-dropdown.mch-open .mch-mobile-dropdown-menu {
  max-height: 700px;
  padding: 0 0 14px;
}
.mch-mobile-dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  font-size: var(--t-sm);
  color: var(--fg-1);
  transition: all var(--t-base) var(--ease);
}
.mch-mobile-dropdown-menu a i { color: var(--cyan-500); font-size: 0.85rem; width: 18px; text-align: center; }
.mch-mobile-dropdown-menu a:hover { color: var(--cyan-500); padding-left: 6px; }
.mch-mobile-dropdown-separator { height: 1px; background: var(--line-1); margin: 8px 0; }

.mch-mobile-cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 16px 24px;
  margin-top: auto;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--t-base) var(--ease);
}
.mch-mobile-cta:hover { background: var(--btn-primary-bg-hover); }

.mch-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: all var(--t-slow) var(--ease);
}
.mch-mobile-overlay.mch-active { opacity: 1; visibility: visible; }
body.mch-menu-open { overflow: hidden; }

.mch-prefs-mobile {
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}

/* ---------- 8. HERO con imagen de fondo ---------- */
.mch-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-0);
}

/* Imagen cubre TODO el hero */
.mch-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('../assets/hero/minecraft-hosting.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
  opacity: 1;
  pointer-events: none;
}

/* Overlay oscuro semitransparente para legibilidad */
.mch-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.88) 0%,
      rgba(10, 12, 16, 0.65) 45%,
      rgba(10, 12, 16, 0.95) 100%
    );
  pointer-events: none;
}

/* En light: overlay blanco semitransparente */
html[data-theme="light"] .mch-hero-overlay {
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, rgba(255, 255, 255, 0.4) 100%),
    linear-gradient(
      180deg,
      rgba(244, 246, 248, 0.9) 0%,
      rgba(244, 246, 248, 0.72) 45%,
      rgba(244, 246, 248, 0.97) 100%
    );
}

/* Línea inferior decorativa */
.mch-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-500), transparent);
  opacity: 0.5;
  z-index: 3;
  pointer-events: none;
}

/* Contenido por encima del fondo */
.mch-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 120px);
}

.mch-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--cyan-line-strong);
  background: var(--cyan-dim);
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 28px;
}
html[data-theme="light"] .mch-hero-badge {
  background: var(--cyan-dim);
}
.mch-hero-badge i { font-size: 0.85em; }

.mch-hero-title {
  font-family: var(--font-display);
  font-size: var(--t-mega);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--fg-0);
  margin-bottom: 32px;
  text-wrap: balance;
}
.mch-hero-accent { color: var(--cyan-500); display: inline; }

.mch-hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--fg-1);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.6;
}

.mch-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.mch-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: clamp(0px, 2vw, 32px);
  border-left: 1px solid var(--line-2);
}
.mch-hero-meta-block { display: flex; flex-direction: column; gap: 6px; }
.mch-hero-meta-label {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.2em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.mch-hero-meta-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.02em;
}
.mch-hero-meta-value em { color: var(--cyan-500); font-style: normal; }

/* Glows decorativos desactivados (ya no se usan) */
.mch-hero-glow { display: none; }

/* ---------- 9. SECTION HEADER ---------- */
.mch-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-2);
}
.mch-section-header-left { min-width: 0; }

.mch-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 20px;
}
.mch-section-eyebrow__num { color: var(--cyan-500); font-weight: 600; }
.mch-section-eyebrow__line { width: 32px; height: 1px; background: var(--line-3); display: inline-block; }

.mch-section-title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--fg-0);
  max-width: 22ch;
  text-wrap: balance;
}
.mch-section-title em { color: var(--cyan-500); font-style: normal; }

.mch-section-desc {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 40ch;
  text-align: right;
}

/* ---------- 10. PLANES ---------- */
.mch-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  overflow: hidden;
}

.mch-plan-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px);
  background: var(--bg-0);
  position: relative;
  transition: background var(--t-base) var(--ease);
}
.mch-plan-card:hover { background: var(--bg-1); }

.mch-plan-card-popular { background: var(--bg-1); }
.mch-plan-card-popular::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cyan-500);
}
.mch-plan-card-popular:hover { background: var(--bg-2); }

.mch-plan-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-500);
  padding: 4px 8px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-dim);
  border-radius: var(--r-1);
}

.mch-plan-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-1);
  margin-bottom: 22px;
}

.mch-plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 16px;
}
.mch-plan-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan-500);
}

.mch-plan-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg-0);
  margin-bottom: 16px;
}

.mch-plan-price { display: flex; align-items: baseline; gap: 8px; }
.mch-plan-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--fg-0);
  line-height: 1;
}
.mch-plan-card-popular .mch-plan-amount { color: var(--cyan-500); }
.mch-plan-period {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--fg-2);
  letter-spacing: 0.06em;
}

.mch-plan-features {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  flex: 1;
}
.mch-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-1);
  font-size: var(--t-sm);
  color: var(--fg-1);
  line-height: 1.4;
}
.mch-plan-features li:last-child { border-bottom: none; }
.mch-plan-features li i {
  color: var(--cyan-500);
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 14px;
}

/* ---------- 11. BENTO ---------- */
.mch-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  overflow: hidden;
}
.mch-bento__cell {
  background: var(--bg-0);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--t-base) var(--ease);
  min-height: 140px;
}
.mch-bento__cell:hover { background: var(--bg-1); }
.mch-bento__cell i.bento-icon {
  color: var(--cyan-500);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.mch-bento__cell h3 {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg-0);
}
.mch-bento__cell p {
  font-size: var(--t-sm);
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0;
}
.mch-compat-grid,
.mch-create-grid { display: contents; }

/* ---------- 12. BEDROCK ---------- */
.mch-section--bedrock .mch-section-header { border-bottom-color: var(--grass-line); }
.mch-section--bedrock .mch-section-eyebrow__num,
.mch-section--bedrock .mch-section-title em { color: var(--grass); }
.mch-section--bedrock .mch-plan-card-popular::before { background: var(--grass); }
.mch-section--bedrock .mch-plan-card-popular .mch-plan-amount { color: var(--grass); }
.mch-section--bedrock .mch-plan-ribbon {
  color: var(--grass);
  border-color: var(--grass-line);
  background: var(--grass-dim);
}
.mch-section--bedrock .mch-plan-features li i { color: var(--grass); }
.mch-section--bedrock .mch-plan-tag::before { background: var(--grass); }

/* ---------- 13. CTA FINAL ---------- */
.mch-cta {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-0);
  border-top: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.mch-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.mch-cta-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}
.mch-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--fg-0);
  margin-bottom: 20px;
  text-wrap: balance;
}
.mch-cta-desc {
  font-size: var(--t-md);
  color: var(--fg-1);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto 32px;
}
.mch-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 14. FOOTER ---------- */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line-2);
  padding-top: clamp(48px, 6vw, 80px);
  color: var(--fg-0);
  font-family: var(--font-body);
}
.footer .container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line-2);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col h4::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--cyan-500);
}
.footer-col h4::after { display: none; }
.footer-col p {
  font-size: var(--t-sm);
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 42ch;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: var(--t-sm);
  color: var(--fg-1);
  transition: color var(--t-base) var(--ease), padding-left var(--t-base) var(--ease);
  display: inline-block;
}
.footer-col ul li a:hover { color: var(--cyan-500); padding-left: 4px; }

.footer .logo-img {
  height: 32px;
  width: auto;
  max-width: 160px;
  filter: none;
}
html[data-theme="dark"] .footer .logo-img,
html:not([data-theme]) .footer .logo-img {
  filter: none;
}
html[data-theme="light"] .footer .logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(0.15) contrast(1.2);
}

.social-media { margin-top: 24px; }
.social-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  color: var(--fg-1);
  font-size: 0.85rem;
  transition: all var(--t-base) var(--ease);
}
.social-icons a:hover {
  border-color: var(--cyan-500);
  color: var(--cyan-500);
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}
.footer-bottom-flex p {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0;
}
.payment-gateway {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.payment-gateway > span {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.payment-logos {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
.payment-logo {
  width: auto !important;
  height: 22px !important;
  max-width: 60px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity var(--t-base) var(--ease);
  display: block !important;
  flex: 0 0 auto !important;
}
html[data-theme="light"] .payment-logo { filter: brightness(0); }
.payment-logo:hover { opacity: 1; }

.footer-badges { display: flex; align-items: center; gap: 16px; }
.dmca-link { display: inline-block; opacity: 0.5; transition: opacity var(--t-base) var(--ease); }
.dmca-link:hover { opacity: 1; }
.dmca-link img {
  height: auto;
  width: 80px;
  filter: grayscale(100%) brightness(1.4);
}
html[data-theme="light"] .dmca-link img { filter: grayscale(100%) brightness(0.5); }

/* ---------- 15. UTILIDADES ---------- */
.mch-hidden { display: none !important; }

/* ---------- 16. SCROLLBAR ---------- */
.mch-body ::-webkit-scrollbar { width: 10px; height: 10px; }
.mch-body ::-webkit-scrollbar-track { background: var(--bg-0); }
.mch-body ::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 0; }
.mch-body ::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

/* ============================================================
   17. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .mch-nav-links, .mch-nav-actions { display: none !important; }
  .mch-menu-toggle { display: flex !important; }
  .mch-nav-container {
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child ul { display: flex; flex-wrap: wrap; gap: 12px 32px; }
}

@media (max-width: 1024px) {
  .mch-hero-content { grid-template-columns: 1fr; gap: 40px; }
  .mch-hero-meta {
    border-left: none;
    border-top: 1px solid var(--line-2);
    padding-left: 0;
    padding-top: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
  }
  .mch-hero-meta-block { flex: 1 1 160px; }

  .mch-section-header { grid-template-columns: 1fr; gap: 20px; }
  .mch-section-desc { text-align: left; }

  .mch-plans-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .mch-bento { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-bottom-flex { flex-direction: column; text-align: center; }
  .footer-badges { justify-content: center; }
  .payment-gateway { justify-content: center; }
}

@media (max-width: 768px) {
  .mch-hero { min-height: auto; padding: 0; }
  .mch-hero-content { padding: 100px 0 60px; }
  .mch-hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .mch-hero-buttons { flex-direction: column; width: 100%; }
  .mch-hero-buttons .mch-btn { width: 100%; }
  .mch-hero-meta { gap: 24px; }
  .mch-hero-meta-block { flex: 1 1 45%; }

  .mch-section { padding-block: 60px; }
  .mch-bento { grid-template-columns: 1fr; }
  .mch-bento__cell { min-height: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .payment-logo { height: 22px !important; max-width: 60px !important; }

  .mch-body::before { background-size: 48px 48px; opacity: 0.4; }
}

@media (max-width: 480px) {
  .mch-hero-title { font-size: clamp(1.7rem, 8.5vw, 2.3rem); letter-spacing: -0.03em; }
  .mch-hero-content { padding: 90px 0 60px; }
  .mch-plan-amount { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .mch-logo-img {
    height: 28px !important;
    max-height: 28px !important;
    max-width: 130px !important;
  }

  .mch-mobile-menu { width: 100%; padding: 70px 18px max(18px, env(safe-area-inset-bottom)); }
  .mch-mobile-links > a,
  .mch-mobile-dropdown-toggle { font-size: 1.1rem; padding: 14px 0; }

  .mch-prefs-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 70px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    width: auto !important;
    transform: none !important;
  }
  .mch-prefs-wrapper.mch-open .mch-prefs-panel { transform: none !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid .footer-col:last-child ul { display: block; }
  .footer-grid .footer-col:last-child ul li { margin-bottom: 8px; }
  .payment-logos { gap: 12px !important; }
  .payment-logo {
    height: 20px !important;
    max-height: 20px !important;
    max-width: 52px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- BEDROCK NATIVO: DISPONIBILIDAD PRÓXIMAMENTE ---------- */
.mch-btn-coming-soon,
.mch-btn-coming-soon:hover,
.mch-btn-coming-soon:active {
  background: var(--bg-2);
  color: var(--fg-2);
  border-color: var(--line-2);
  cursor: not-allowed;
  opacity: 0.85;
  transform: none;
  box-shadow: none;
}

.mch-btn-coming-soon:focus-visible {
  outline: none;
}

.mch-btn-coming-soon i {
  color: var(--fg-2);
}


/* ============================================================
   RESPONSIVE REFINEMENT — Minecraft Hosting
   Solo ajusta presentación y adaptación; no elimina contenido.
   ============================================================ */

/* Tablets, portátiles pequeños y ventanas reducidas */
@media (max-width: 1024px) {
  .mch-container {
    padding-inline: clamp(20px, 4vw, 32px);
  }

  .mch-hero {
    min-height: auto;
  }

  .mch-hero-content {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 44px);
    padding-block: clamp(128px, 16vw, 168px) 64px;
  }

  .mch-hero-title {
    max-width: 18ch;
    font-size: clamp(2.7rem, 6.2vw, 4.4rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .mch-hero-sub {
    max-width: 62ch;
  }

  .mch-hero-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    border-left: 0;
    border-top: 1px solid var(--line-2);
    padding: 22px 0 0;
  }

  .mch-hero-meta-block {
    min-width: 0;
    flex: initial;
  }

  .mch-hero-meta-value {
    overflow-wrap: anywhere;
  }

  .mch-section-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin-bottom: 36px;
    padding-bottom: 24px;
  }

  .mch-section-title {
    max-width: 28ch;
  }

  .mch-section-desc {
    max-width: 68ch;
    text-align: left;
  }

  /* Dos columnas en tablet para evitar tarjetas innecesariamente largas. */
  .mch-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-inline: 0;
  }

  .mch-plan-card {
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
  }

  .mch-plan-card-popular .mch-plan-header {
    padding-top: 28px;
  }

  .mch-plan-tag {
    max-width: 100%;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
  }

  .mch-plan-features li {
    align-items: flex-start;
  }

  .mch-plan-features li span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mch-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mch-bento__cell {
    min-width: 0;
  }

  .mch-cta-inner {
    padding-inline: 12px;
  }
}

/* Móviles y tablets verticales */
@media (max-width: 768px) {
  .mch-container {
    padding-inline: 22px;
  }

  .mch-navbar {
    padding-block: 12px;
  }

  .mch-navbar.mch-scrolled {
    padding-block: 9px;
  }

  .mch-nav-container {
    min-height: 40px;
  }

  .mch-hero-content {
    padding: 112px 0 52px;
    gap: 30px;
  }

  .mch-hero-badge {
    margin-bottom: 22px;
    max-width: 100%;
    letter-spacing: 0.12em;
  }

  .mch-hero-title {
    max-width: 100%;
    font-size: clamp(2.35rem, 8vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
    text-wrap: pretty;
  }

  .mch-hero-title br {
    display: block;
  }

  .mch-hero-sub {
    font-size: 1rem;
    margin-bottom: 26px;
    line-height: 1.65;
  }

  .mch-hero-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .mch-hero-buttons .mch-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .mch-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    padding-top: 20px;
  }

  .mch-hero-meta-label {
    display: block;
    margin-bottom: 4px;
  }

  .mch-hero-meta-value {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
  }

  .mch-section {
    padding-block: clamp(48px, 9vw, 68px);
  }

  .mch-section-header {
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .mch-section-eyebrow {
    gap: 9px;
    margin-bottom: 15px;
    letter-spacing: 0.12em;
    flex-wrap: wrap;
  }

  .mch-section-eyebrow__line {
    width: 22px;
  }

  .mch-section-title {
    max-width: 100%;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: pretty;
    overflow-wrap: anywhere;
  }

  .mch-section-desc {
    font-size: 0.8rem;
    line-height: 1.7;
  }

  .mch-plans-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    border-radius: 5px;
  }

  .mch-plan-card {
    padding: 26px 22px;
  }

  .mch-plan-card-popular .mch-plan-header {
    padding-top: 24px;
  }

  .mch-plan-ribbon {
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
    letter-spacing: 0.1em;
  }

  .mch-plan-header {
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .mch-plan-name {
    overflow-wrap: anywhere;
  }

  .mch-plan-amount {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  .mch-plan-features {
    gap: 10px;
  }

  .mch-plan-features li {
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .mch-plan-features li i {
    flex: 0 0 auto;
    margin-top: 0.25em;
  }

  .mch-plan-features li span {
    overflow-wrap: anywhere;
  }

  .mch-plan-card .mch-btn {
    white-space: normal;
    line-height: 1.35;
    min-height: 46px;
    padding-inline: 14px;
  }

  .mch-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mch-bento__cell {
    padding: 20px 16px;
    gap: 10px;
  }

  .mch-bento__cell h3 {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .mch-bento__cell p {
    font-size: 0.84rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .mch-cta {
    padding-block: 64px;
  }

  .mch-cta-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    line-height: 1.08;
  }

  .mch-cta-desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .mch-cta-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .mch-cta-buttons .mch-btn {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  /* El footer comparte estilos con la página principal: se adapta sin ocultar columnas. */
  .footer .container {
    width: 100%;
    padding-inline: 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .footer-grid .brand-col {
    grid-column: 1 / -1;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-col h3,
  .footer-col h4 {
    overflow-wrap: anywhere;
  }

  .footer-col ul li,
  .footer-col ul li a {
    overflow-wrap: anywhere;
  }

  .footer-bottom-flex {
    gap: 20px;
  }

  .payment-gateway,
  .payment-logos,
  .footer-badges {
    flex-wrap: wrap;
    gap: 12px;
  }

  .payment-logo {
    max-width: 62px !important;
    object-fit: contain;
  }
}

/* Teléfonos compactos */
@media (max-width: 480px) {
  .mch-container {
    padding-inline: 18px;
  }

  .mch-logo-img {
    max-width: 126px !important;
  }

  .mch-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mch-mobile-menu {
    width: min(100%, 420px);
    padding: max(76px, calc(env(safe-area-inset-top) + 64px)) 18px max(20px, env(safe-area-inset-bottom));
  }

  .mch-hero-content {
    padding-top: max(104px, calc(env(safe-area-inset-top) + 88px));
    padding-bottom: 44px;
  }

  .mch-hero-title {
    font-size: clamp(2.05rem, 9.2vw, 2.7rem);
    letter-spacing: -0.045em;
  }

  .mch-hero-title br {
    display: block;
  }

  .mch-hero-badge {
    font-size: 0.65rem;
    padding: 7px 10px;
  }

  .mch-hero-meta {
    gap: 16px 12px;
  }

  .mch-hero-meta-label {
    font-size: 0.68rem;
  }

  .mch-hero-meta-value {
    font-size: 1rem;
  }

  .mch-section {
    padding-block: 48px;
  }

  .mch-section-eyebrow {
    font-size: 0.65rem;
  }

  .mch-section-title {
    font-size: clamp(1.7rem, 7.2vw, 2.1rem);
  }

  .mch-plan-card {
    padding: 24px 18px;
  }

  .mch-plan-card-popular .mch-plan-header {
    padding-top: 28px;
  }

  .mch-plan-tag {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .mch-plan-ribbon {
    font-size: 0.62rem;
    padding: 4px 7px;
  }

  .mch-plan-features li {
    font-size: 0.875rem;
  }

  .mch-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mch-bento__cell {
    padding: 18px 13px;
  }

  .mch-bento__cell i.bento-icon {
    font-size: 1.15rem;
  }

  .mch-bento__cell h3 {
    font-size: 0.95rem;
  }

  .mch-bento__cell p {
    font-size: 0.8rem;
  }

  .mch-cta {
    padding-block: 52px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-grid .brand-col {
    grid-column: auto;
  }

  .footer-col {
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .footer-bottom-flex p {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .payment-logos {
    justify-content: center;
  }

  .payment-logo {
    max-width: 54px !important;
    max-height: 22px !important;
  }
}

/* Dispositivos muy estrechos: evita que etiquetas y precios fuercen scroll horizontal. */
@media (max-width: 359px) {
  .mch-container {
    padding-inline: 14px;
  }

  .mch-hero-title {
    font-size: 1.9rem;
  }

  .mch-hero-buttons .mch-btn,
  .mch-cta-buttons .mch-btn {
    padding-inline: 12px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .mch-bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .mch-plan-card {
    padding-inline: 15px;
  }

  .mch-prefs-currency-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Evita desbordes por cadenas largas y respeta las áreas seguras de móviles. */
.mch-body,
.mch-body main,
.mch-body section,
.mch-container,
.mch-plan-card,
.mch-bento__cell {
  min-width: 0;
}

.mch-body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .mch-body {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mch-hero-bg {
    transform: none !important;
  }
}


/* ============================================================
   MOBILE FIXES — MENÚ FULLSCREEN + VOLVER ARRIBA
   Solo móvil; no altera el diseño de escritorio.
   ============================================================ */
@media (max-width: 768px) {
  .mch-mobile-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483000 !important;
  }

  .mch-mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: calc(76px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    z-index: 2147483001 !important;
  }

  .mch-mobile-menu-close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--bg-1);
    color: var(--fg-0);
    font: 600 0.9rem/1 var(--font-body);
    cursor: pointer;
  }

  .mch-mobile-menu-close i { color: var(--cyan-500); }

  .mch-back-to-top {
    display: inline-flex;
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(104px + env(safe-area-inset-bottom));
    z-index: 999;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--btn-primary-bg, var(--cyan-500));
    color: var(--btn-primary-fg, #071A1F);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    font-size: 1.05rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mch-back-to-top.mch-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mch-back-to-top:focus-visible,
  .mch-mobile-menu-close:focus-visible {
    outline: 3px solid var(--cyan-500);
    outline-offset: 3px;
  }
}

@media (min-width: 769px) {
  .mch-back-to-top { display: none !important; }
}
