/* ============================================================
   SHYRO · DISCORD BOT HOSTING — STYLE.CSS v2
   Prefijo: dbh-*
   Acento secundario: Discord Blurple (#5865F2)
   ============================================================ */

/* ---------- 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;

  /* CIAN de marca */
  --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);

  /* Blurple de Discord (acento propio del servicio) */
  --blurple: #5865F2;
  --blurple-600: #4752C4;
  --blurple-dim: rgba(88, 101, 242, 0.12);
  --blurple-line: rgba(88, 101, 242, 0.35);
  --blurple-dim-strong: rgba(88, 101, 242, 0.20);

  --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);

  --blurple: #4752C4;
  --blurple-600: #3C46B0;
  --blurple-dim: rgba(71, 82, 196, 0.10);
  --blurple-line: rgba(71, 82, 196, 0.32);
  --blurple-dim-strong: rgba(71, 82, 196, 0.16);

  --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%; }

.dbh-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;
}

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

.dbh-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 ---------- */
.dbh-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- 4. BOTONES ---------- */
.dbh-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;
}
.dbh-btn:active { transform: translateY(1px); }
.dbh-btn i { font-size: 0.9em; }

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

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

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

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

/* ---------- 5. NAVBAR ---------- */
.dbh-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);
}
.dbh-navbar.dbh-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%);
}

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

/* LOGO */
.dbh-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dbh-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"] .dbh-logo-img,
html:not([data-theme]) .dbh-logo-img {
  filter: none;
}
html[data-theme="light"] .dbh-logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(0.15) contrast(1.2);
}

.dbh-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;
}
.dbh-nav-links > a,
.dbh-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);
}
.dbh-nav-links > a::after,
.dbh-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);
}
.dbh-nav-links > a:hover,
.dbh-nav-dropdown-toggle:hover { color: var(--fg-0); }
.dbh-nav-links > a:hover::after,
.dbh-nav-dropdown-toggle:hover::after { transform: scaleX(1); }

.dbh-nav-dropdown { position: relative; display: inline-flex; align-items: center; height: 100%; }
.dbh-nav-dropdown-toggle { background: transparent; border: none; cursor: pointer; }
.dbh-nav-dropdown-toggle i { font-size: 0.65em; transition: transform var(--t-base) var(--ease); }
.dbh-nav-dropdown:hover .dbh-nav-dropdown-toggle i,
.dbh-nav-dropdown.dbh-active .dbh-nav-dropdown-toggle i { transform: rotate(180deg); }
.dbh-nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: -20px; right: -20px; height: 20px;
}
.dbh-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);
}
.dbh-nav-dropdown:hover .dbh-nav-dropdown-menu,
.dbh-nav-dropdown.dbh-active .dbh-nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.dbh-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);
}
.dbh-nav-dropdown-menu a:hover { background: var(--bg-2); }
.dbh-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(--blurple);
  font-size: 0.85rem;
  flex-shrink: 0;
  background: var(--bg-2);
}
.dbh-nav-dropdown-menu a div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dbh-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;
}
.dbh-nav-dropdown-menu a:hover span { color: var(--blurple); }
.dbh-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;
}
.dbh-nav-dropdown-separator { height: 1px; background: var(--line-1); margin: 6px 12px; }

.dbh-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.dbh-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;
}
.dbh-signup-link:hover { color: var(--cyan-500); }

/* Preferencias desktop */
.dbh-prefs-wrapper { position: relative; display: inline-block; }
.dbh-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;
}
.dbh-prefs-toggle:hover,
.dbh-prefs-wrapper.dbh-open .dbh-prefs-toggle {
  color: var(--cyan-500);
  border-color: var(--cyan-500);
  background: var(--cyan-dim);
}
.dbh-prefs-toggle i.dbh-prefs-caret { font-size: 0.7em; transition: transform var(--t-base) var(--ease); }
.dbh-prefs-wrapper.dbh-open .dbh-prefs-toggle i.dbh-prefs-caret { transform: rotate(180deg); }
.dbh-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;
}
.dbh-prefs-wrapper.dbh-open .dbh-prefs-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dbh-prefs-group { padding: 10px 4px; border-bottom: 1px solid var(--line-1); }
.dbh-prefs-group:last-child { border-bottom: none; }
.dbh-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;
}
.dbh-prefs-group-label i { color: var(--cyan-500); font-size: 0.75rem; }
.dbh-prefs-segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--bg-2);
  padding: 3px;
  border-radius: var(--r-2);
}
.dbh-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);
}
.dbh-prefs-segmented button:hover { color: var(--fg-0); }
.dbh-prefs-segmented button.dbh-active {
  background: var(--bg-0);
  color: var(--cyan-500);
}
.dbh-prefs-currency-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dbh-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;
}
.dbh-prefs-currency-list button:hover { border-color: var(--cyan-500); color: var(--cyan-500); }
.dbh-prefs-currency-list button.dbh-active {
  border-color: var(--cyan-500);
  background: var(--cyan-dim);
  color: var(--cyan-500);
}
.dbh-prefs-flag { font-size: 1rem; line-height: 1; }
.dbh-prefs-code { font-weight: 700; }

/* ---------- 6. MENÚ MÓVIL ---------- */
.dbh-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;
}
.dbh-menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--fg-0);
  margin: 0 auto;
  transition: all var(--t-base) var(--ease);
}
.dbh-menu-toggle.dbh-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.dbh-menu-toggle.dbh-active span:nth-child(2) { opacity: 0; }
.dbh-menu-toggle.dbh-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.dbh-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;
}
.dbh-mobile-menu.dbh-open { transform: translateX(0); }
.dbh-mobile-menu::-webkit-scrollbar { width: 6px; }
.dbh-mobile-menu::-webkit-scrollbar-track { background: transparent; }
.dbh-mobile-menu::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

.dbh-mobile-menu-inner { display: flex; flex-direction: column; flex: 1; }
.dbh-mobile-links { display: flex; flex-direction: column; margin-bottom: 20px; }
.dbh-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);
}
.dbh-mobile-links > a i { color: var(--fg-2); font-size: 0.85rem; transition: all var(--t-base) var(--ease); }
.dbh-mobile-links > a:hover { color: var(--blurple); padding-left: 6px; }
.dbh-mobile-links > a:hover i { color: var(--blurple); transform: translateX(4px); }

.dbh-mobile-dropdown { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-1); }
.dbh-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);
}
.dbh-mobile-dropdown-toggle i { color: var(--fg-2); font-size: 0.85rem; transition: all var(--t-base) var(--ease); }
.dbh-mobile-dropdown-toggle:hover,
.dbh-mobile-dropdown-toggle[aria-expanded="true"] { color: var(--blurple); }
.dbh-mobile-dropdown-toggle[aria-expanded="true"] i { color: var(--blurple); transform: rotate(180deg); }
.dbh-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;
}
.dbh-mobile-dropdown.dbh-open .dbh-mobile-dropdown-menu {
  max-height: 700px;
  padding: 0 0 14px;
}
.dbh-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);
}
.dbh-mobile-dropdown-menu a i { color: var(--blurple); font-size: 0.85rem; width: 18px; text-align: center; }
.dbh-mobile-dropdown-menu a:hover { color: var(--blurple); padding-left: 6px; }
.dbh-mobile-dropdown-separator { height: 1px; background: var(--line-1); margin: 8px 0; }

.dbh-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);
}
.dbh-mobile-cta:hover { background: var(--btn-primary-bg-hover); }

.dbh-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);
}
.dbh-mobile-overlay.dbh-active { opacity: 1; visibility: visible; }
body.dbh-menu-open { overflow: hidden; }

.dbh-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);
}

/* ---------- 7. HERO ---------- */
.dbh-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);
}

.dbh-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background-image: url('../assets/hero/discord-hosting.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
  pointer-events: none;
}

.dbh-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;
}
html[data-theme="light"] .dbh-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%
    );
}

.dbh-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blurple), transparent);
  opacity: 0.6;
  z-index: 3;
  pointer-events: none;
}

.dbh-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 120px);
}

.dbh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.dbh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--blurple-line);
  background: var(--blurple-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(--blurple);
  margin-bottom: 28px;
}
.dbh-hero-badge i { font-size: 0.95em; }

.dbh-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;
}
.dbh-hero-accent { color: var(--blurple); display: inline; }

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

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

.dbh-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: clamp(0px, 2vw, 32px);
  border-left: 1px solid var(--line-2);
}
.dbh-hero-meta-block { display: flex; flex-direction: column; gap: 6px; }
.dbh-hero-meta-label {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.2em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.dbh-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;
}
.dbh-hero-meta-value em { color: var(--blurple); font-style: normal; }

/* ---------- 8. SECTION HEADER ---------- */
.dbh-section-header {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-2);
}

.dbh-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;
}
.dbh-section-eyebrow__num { color: var(--blurple); font-weight: 600; }
.dbh-section-eyebrow__line { width: 32px; height: 1px; background: var(--line-3); display: inline-block; }

.dbh-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;
}
.dbh-section-title em { color: var(--blurple); font-style: normal; }

.dbh-section-desc {
  font-size: var(--t-md);
  color: var(--fg-1);
  line-height: 1.6;
  max-width: 62ch;
  margin-bottom: 40px;
}

/* ---------- 9. PLANES ---------- */
.dbh-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;
  max-width: 100%;
}

.dbh-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);
}
.dbh-plan-card:hover { background: var(--bg-1); }

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

.dbh-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(--blurple);
  padding: 4px 8px;
  border: 1px solid var(--blurple-line);
  background: var(--blurple-dim);
  border-radius: var(--r-1);
}

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

.dbh-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;
}
.dbh-plan-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blurple);
}

.dbh-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: 14px;
}

.dbh-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}
.dbh-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;
}
.dbh-plan-card-popular .dbh-plan-amount { color: var(--blurple); }
.dbh-plan-period {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--fg-2);
  letter-spacing: 0.06em;
}

.dbh-plan-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blurple);
}
.dbh-plan-status i { font-size: 0.75em; }

.dbh-plan-features {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  flex: 1;
}
.dbh-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;
}
.dbh-plan-features li:last-child { border-bottom: none; }
.dbh-plan-features li i {
  color: var(--blurple);
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 14px;
}

/* ---------- 10. CTA FINAL ---------- */
.dbh-cta {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-0);
  border-top: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.dbh-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.10), transparent 60%);
  pointer-events: none;
}
.dbh-cta-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}
.dbh-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;
}
.dbh-cta-title em { color: var(--blurple); font-style: normal; }
.dbh-cta-desc {
  font-size: var(--t-md);
  color: var(--fg-1);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto 32px;
}
.dbh-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 11. 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); }

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

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .dbh-nav-links, .dbh-nav-actions { display: none !important; }
  .dbh-menu-toggle { display: flex !important; }
  .dbh-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) {
  .dbh-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .dbh-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;
  }
  .dbh-hero-meta-block { flex: 1 1 160px; }

  .dbh-plans-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }

  .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) {
  .dbh-hero { min-height: auto; }
  .dbh-hero-content { padding: 100px 0 60px; }
  .dbh-hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .dbh-hero-buttons { flex-direction: column; width: 100%; }
  .dbh-hero-buttons .dbh-btn { width: 100%; }
  .dbh-hero-meta { gap: 24px; }
  .dbh-hero-meta-block { flex: 1 1 45%; }

  .dbh-section { padding-block: 60px; }

  .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; }

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

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

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

  .dbh-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;
  }
  .dbh-prefs-wrapper.dbh-open .dbh-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;
  }
}


/* ============================================================
   14. RESPONSIVE REFINADO — Discord Bot Hosting
   Ajustes adicionales sin eliminar ni modificar contenido.
   ============================================================ */

/* Evita que los elementos internos fuercen el ancho de la página. */
.dbh-body,
.dbh-body main,
.dbh-body section,
.dbh-container,
.dbh-hero-content,
.dbh-hero-grid,
.dbh-section-header,
.dbh-plan-card,
.dbh-cta-inner,
.footer,
.footer .container,
.footer-grid,
.footer-col {
  min-width: 0;
}

.dbh-body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.dbh-container,
.footer .container {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.dbh-hero-title,
.dbh-section-title,
.dbh-cta-title {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.dbh-hero-sub,
.dbh-section-desc,
.dbh-cta-desc,
.footer-col p,
.footer-col ul li a {
  overflow-wrap: anywhere;
}

.dbh-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.dbh-hero-buttons,
.dbh-cta-buttons {
  align-items: stretch;
}

.dbh-hero-meta {
  min-width: 0;
}

.dbh-hero-meta-block {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dbh-plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.dbh-plan-card {
  min-width: 0;
  height: 100%;
}

.dbh-plan-header,
.dbh-plan-features {
  min-width: 0;
}

.dbh-plan-ribbon {
  max-width: calc(100% - 32px);
  white-space: normal;
  text-align: center;
}

.dbh-plan-features li {
  min-width: 0;
  align-items: flex-start;
}

.dbh-plan-features li i {
  margin-top: 0.35em;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
}

.payment-gateway,
.payment-logos,
.footer-bottom-flex > *,
.footer-badges {
  min-width: 0;
}

.payment-gateway > span {
  line-height: 1.5;
}

/* Tablets y portátiles compactas */
@media (max-width: 1100px) {
  .dbh-nav-container {
    gap: 18px;
  }

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

  .dbh-hero-content {
    padding-top: 140px;
    padding-bottom: 76px;
  }

  .dbh-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .dbh-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: 24px 0 0;
  }

  .dbh-hero-meta-block {
    min-width: 0;
  }

  .dbh-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
    margin-inline: auto;
    gap: 1px;
  }

  .dbh-plan-card {
    padding: clamp(24px, 3vw, 34px);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }

  .footer-grid .footer-col:last-child ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
  }
}

/* Tablets verticales y móviles grandes */
@media (max-width: 768px) {
  .dbh-hero-content {
    padding: 112px 0 58px;
  }

  .dbh-hero-grid {
    gap: 28px;
  }

  .dbh-hero-title br {
    display: none;
  }

  .dbh-hero-title {
    max-width: 16ch;
    font-size: clamp(2.15rem, 7.2vw, 3.2rem);
    line-height: 1.08;
  }

  .dbh-hero-sub {
    max-width: 58ch;
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  }

  .dbh-hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dbh-hero-buttons .dbh-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding-inline: 14px;
  }

  .dbh-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

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

  .dbh-section {
    padding-block: clamp(54px, 8vw, 72px);
  }

  .dbh-section-header {
    margin-bottom: 18px;
  }

  .dbh-section-title {
    font-size: clamp(1.9rem, 5.8vw, 2.6rem);
  }

  .dbh-section-desc {
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .dbh-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .dbh-plan-card {
    padding: 24px 20px;
  }

  .dbh-plan-ribbon {
    top: 10px;
    right: 10px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

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

  .dbh-plan-tag {
    max-width: 100%;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .dbh-plan-name {
    font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  }

  .dbh-plan-amount {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .dbh-plan-status {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    line-height: 1.45;
  }

  .dbh-plan-features li {
    gap: 8px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .dbh-cta {
    padding-block: clamp(60px, 9vw, 88px);
  }

  .dbh-cta-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .dbh-cta-buttons .dbh-btn {
    min-width: 0;
    white-space: normal;
    line-height: 1.35;
  }

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

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

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

  .footer-grid .footer-col:last-child ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  .footer-bottom-flex {
    align-items: center;
    gap: 22px;
  }

  .payment-gateway {
    flex-direction: column;
    gap: 12px;
  }

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

/* Teléfonos */
@media (max-width: 540px) {
  .dbh-container,
  .footer .container {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .dbh-hero-content {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .dbh-hero-badge {
    max-width: 100%;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .dbh-hero-title {
    max-width: 100%;
    font-size: clamp(1.95rem, 9vw, 2.6rem);
    line-height: 1.08;
  }

  .dbh-hero-sub {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .dbh-hero-buttons {
    grid-template-columns: minmax(0, 1fr);
  }

  .dbh-hero-buttons .dbh-btn {
    min-height: 48px;
  }

  .dbh-hero-meta {
    gap: 18px 12px;
    padding-top: 20px;
  }

  .dbh-hero-meta-label {
    font-size: 0.65rem;
  }

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

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

  .dbh-section-title {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  }

  .dbh-section-desc {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .dbh-plans-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    width: 100%;
  }

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

  .dbh-plan-ribbon {
    top: 12px;
    right: 12px;
    max-width: 45%;
    font-size: 0.6rem;
  }

  .dbh-plan-tag {
    max-width: calc(100% - 4px);
    padding-right: 0;
  }

  .dbh-plan-name {
    font-size: 1.8rem;
  }

  .dbh-plan-amount {
    font-size: 2.4rem;
  }

  .dbh-plan-features li {
    font-size: 0.9rem;
    padding-block: 11px;
  }

  .dbh-plan-card .dbh-btn {
    min-height: 48px;
  }

  .dbh-cta {
    padding-block: 56px;
  }

  .dbh-cta-title {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
  }

  .dbh-cta-desc {
    font-size: 0.95rem;
  }

  .dbh-cta-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dbh-cta-buttons .dbh-btn {
    width: 100%;
  }

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

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

  .footer-grid .footer-col:last-child ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-col h4 {
    margin-bottom: 14px;
  }

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

  .footer-bottom-flex p {
    line-height: 1.7;
    letter-spacing: 0.08em;
  }

  .payment-gateway {
    width: 100%;
  }

  .payment-gateway > span {
    text-align: center;
    line-height: 1.6;
  }

  .payment-logos {
    gap: 12px !important;
    row-gap: 14px !important;
  }

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

  .dbh-mobile-menu {
    width: min(100%, 420px);
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .dbh-mobile-links > a,
  .dbh-mobile-dropdown-toggle {
    font-size: 1.08rem;
  }

  .dbh-prefs-mobile,
  .dbh-prefs-mobile .dbh-prefs-group {
    min-width: 0;
  }

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

/* Móviles estrechos */
@media (max-width: 360px) {
  .dbh-container,
  .footer .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dbh-logo-img {
    max-width: 118px !important;
  }

  .dbh-hero-title {
    font-size: 1.8rem;
  }

  .dbh-hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .dbh-plan-card {
    padding: 23px 17px;
  }

  .dbh-plan-ribbon {
    position: static;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 14px;
  }

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

  .dbh-prefs-mobile .dbh-prefs-segmented button {
    gap: 5px;
    padding-inline: 6px;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dbh-body *,
  .dbh-body *::before,
  .dbh-body *::after {
    scroll-behavior: auto !important;
  }
}


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

  .dbh-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;
  }

  .dbh-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;
  }

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

  .dbh-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;
  }

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

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

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