/* Prototipo "home minimal" — inspirado en la estructura de app.uniswap.org,
   adaptado con acento cobre/ámbar en vez de rosa. Hoja aparte porque el
   sistema visual (oscuro) es distinto del resto del sitio (claro). */

.mh-page {
  /* Oscuro por defecto */
  --mh-bg: #131313;
  --mh-card: #1f1f1f;
  --mh-card-2: #262626;
  --mh-border: #2e2e2e;
  --mh-text: #f5f3f0;
  --mh-muted: #9b9b9b;
  --mh-accent: #e0973c;
  --mh-accent-dark: #c07d2c;
  --mh-accent-text: #1a1208;
  --mh-glow-opacity: 0.35;

  background: var(--mh-bg);
  color: var(--mh-text);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.mh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.mh-nav .mh-logo img { height: 28px; width: auto; filter: invert(1) brightness(1.4); }
.mh-nav-right { display: flex; align-items: center; gap: 12px; }

.mh-theme { position: relative; }
.mh-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--mh-border);
  background: var(--mh-card);
  color: var(--mh-text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mh-theme-menu {
  position: absolute;
  top: 44px;
  right: 0;
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 12px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 20;
}
.mh-theme-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--mh-text);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.mh-theme-menu button:hover { background: var(--mh-card-2); }

.mh-nav .mh-cta {
  background: var(--mh-accent);
  color: var(--mh-accent-text);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
}

.mh-hero {
  position: relative;
  padding: 64px 24px 100px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.mh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--mh-glow-opacity);
  z-index: 0;
  pointer-events: none;
}
.mh-glow-1 {
  width: 260px; height: 260px; background: var(--mh-accent); top: 40px; left: -80px;
  animation: mh-lava-1 22s ease-in-out infinite;
}
.mh-glow-2 {
  width: 220px; height: 220px; background: #6b5645; top: 260px; right: -60px;
  animation: mh-lava-2 26s ease-in-out infinite;
}

@keyframes mh-lava-1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(120px, 90px) scale(1.3); }
  66%  { transform: translate(-60px, 150px) scale(0.75); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes mh-lava-2 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-110px, -80px) scale(1.25); }
  70%  { transform: translate(50px, -140px) scale(0.8); }
  100% { transform: translate(0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mh-glow-1, .mh-glow-2 { animation: none; }
}

/* Logos de marcas — como las "burbujas" de tokens de app.uniswap.org:
   difuminadas y a la deriva todo el rato, y al pasar el ratón por encima se
   enfocan con un anillo de luz alrededor, como una burbuja.
   Peana translúcida clara detrás: los logos son oscuros (pensados para
   fondo blanco), sin esto serían ilegibles en el tema oscuro. */
.mh-brand-glow {
  position: absolute;
  z-index: 0;
  width: 96px;
  height: 96px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: blur(5px);
  opacity: 0.22;
  transition: filter 0.35s ease, opacity 0.35s ease;
  pointer-events: auto;
}
.mh-brand-glow:hover {
  animation-play-state: paused;
  filter: blur(0);
  opacity: 1;
  z-index: 5;
}
.mh-brand-glow img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }

/* Ondas ("ripple") que salen del centro hacia fuera, como en Uniswap — dos
   anillos de distinto color, salen una vez al hacer hover y se quedan
   abiertos mientras dura (sin bucle ni rebote). */
.mh-brand-glow::before,
.mh-brand-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.mh-brand-glow::before { border: 1.5px solid var(--mh-accent); }
.mh-brand-glow::after  { border: 1.5px solid rgba(255, 255, 255, 0.75); }
.mh-brand-glow:hover::before,
.mh-brand-glow:hover::after {
  animation: mh-ripple 0.5s ease-out forwards;
}
.mh-brand-glow:hover::after {
  animation-delay: 0.12s;
}
@keyframes mh-ripple {
  0%   { transform: scale(1);    opacity: 0; }
  100% { transform: scale(1.35); opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-brand-glow:hover::before,
  .mh-brand-glow:hover::after { animation: none; opacity: 0; }
}

@keyframes mh-bubble-drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(18px, -14px); }
  50%  { transform: translate(-12px, 10px); }
  75%  { transform: translate(10px, 16px); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mh-brand-glow { animation: none; }
}

.mh-brand-glow.pos-1 { top: -10px;  left: -170px; animation: mh-bubble-drift 18s ease-in-out infinite; }
.mh-brand-glow.pos-2 { top: 130px;  right: -190px; animation: mh-bubble-drift 22s ease-in-out infinite 1s; }
.mh-brand-glow.pos-3 { top: 330px;  left: -210px; animation: mh-bubble-drift 16s ease-in-out infinite 2s; }
.mh-brand-glow.pos-4 { top: 470px;  right: -175px; animation: mh-bubble-drift 24s ease-in-out infinite 3s; }
.mh-brand-glow.pos-5 { top: 660px;  left: -150px; animation: mh-bubble-drift 20s ease-in-out infinite 4s; }

@media (max-width: 900px) {
  .mh-brand-glow { display: none; }
}

.mh-hero h1 {
  position: relative;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  z-index: 1;
}

.mh-card {
  position: relative;
  z-index: 1;
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 24px;
  padding: 6px;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.mh-field {
  background: var(--mh-card-2);
  border-radius: 18px;
  padding: 14px 18px;
}
.mh-field label {
  display: block;
  font-size: 13px;
  color: var(--mh-muted);
  margin-bottom: 4px;
}
.mh-field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--mh-text);
  font-size: 18px;
  font-family: inherit;
  padding: 0;
}
.mh-field input::placeholder { color: #6b6b6b; }

.mh-divider {
  display: flex;
  justify-content: center;
  margin: -14px 0;
  position: relative;
  z-index: 2;
}
.mh-divider span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mh-card);
  border: 4px solid var(--mh-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mh-muted);
}

.mh-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--mh-accent);
  color: var(--mh-accent-text);
  border: none;
  border-radius: 18px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.mh-submit:hover { filter: brightness(1.08); }

.mh-note {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  color: var(--mh-muted);
  font-size: 15px;
}
.mh-note strong { color: var(--mh-accent); font-weight: 600; }

.mh-confirm { padding: 28px 24px; text-align: center; }
.mh-confirm p { margin: 0; font-weight: 600; color: var(--mh-text); }
.mh-error {
  color: #e0973c;
  background: color-mix(in srgb, var(--mh-accent) 14%, var(--mh-card));
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}

/* Declaración */
.mh-statement {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.mh-statement h2 {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 640px;
}
.mh-statement p {
  color: var(--mh-muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 32px;
}
.mh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mh-card-2);
  border: 1px solid var(--mh-border);
  color: var(--mh-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
}
.mh-pill span { transition: transform 0.15s; }
.mh-pill:hover span { transform: translateX(3px); }

/* Cifras */
.mh-stats-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.mh-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dotted var(--mh-border);
  color: var(--mh-muted);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.mh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf6e;
}
.mh-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .mh-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.mh-stat-card {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mh-stat-label { color: var(--mh-muted); font-size: 15px; }
.mh-stat-value { font-size: 36px; font-weight: 600; }

/* Tarjetas de característica */
.mh-features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.mh-features h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  margin: 0 0 32px;
  max-width: 640px;
}
.mh-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .mh-feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.mh-feature-card {
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--mh-border);
}
.mh-feature-icon { font-size: 20px; opacity: 0.6; }
.mh-feature-card h3 { font-size: 19px; font-weight: 600; margin: 16px 0 6px; }
.mh-feature-highlight { font-weight: 600; margin: 0 0 10px; }
.mh-feature-card p:last-child { color: var(--mh-muted); font-size: 15px; line-height: 1.5; margin: 0; }

.mh-feature-copper { background: color-mix(in srgb, var(--mh-accent) 14%, var(--mh-card)); }
.mh-feature-copper .mh-feature-highlight { color: var(--mh-accent); }
.mh-feature-stone { background: var(--mh-card); }
.mh-feature-dark { background: var(--mh-card-2); }

/* FAQ */
.mh-faq {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.mh-faq h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  margin: 0 0 32px;
}
.mh-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--mh-border);
}
.mh-faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--mh-border);
}
.mh-faq-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.mh-faq-icon { font-size: 18px; color: var(--mh-accent); opacity: 0.9; }
.mh-faq-item h3 { font-size: 18px; font-weight: 600; margin: 0; }
.mh-faq-item p {
  color: var(--mh-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  padding-left: 30px;
}

/* Footer */
.mh-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  border-top: 1px solid var(--mh-border);
}
.mh-footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .mh-footer-cols { grid-template-columns: repeat(3, 1fr); }
}
.mh-footer-col { display: flex; flex-direction: column; gap: 10px; }
.mh-footer-heading {
  font-weight: 600;
  color: var(--mh-text);
  margin-bottom: 4px;
  font-size: 14px;
}
.mh-footer-col a {
  color: var(--mh-muted);
  text-decoration: none;
  font-size: 14px;
}
.mh-footer-col a:hover { color: var(--mh-text); }
.mh-footer-bottom {
  color: var(--mh-muted);
  font-size: 13px;
}

/* Claro — cuando el visitante tiene el sistema en modo claro.
   Va al final del fichero a propósito: mismas reglas/especificidad que las
   de arriba, así que el orden de cascada es lo único que decide quién gana. */
@media (prefers-color-scheme: light) {
  .mh-page {
    --mh-bg: #f7f4ef;
    --mh-card: #ffffff;
    --mh-card-2: #f0ece4;
    --mh-border: #e2ddd3;
    --mh-text: #1f1c17;
    --mh-muted: #767066;
    --mh-accent: #c9762a;
    --mh-accent-dark: #a35f1f;
    --mh-accent-text: #ffffff;
    --mh-glow-opacity: 0.18;
  }
  .mh-nav .mh-logo img { filter: none; }
  .mh-field input::placeholder { color: #a39c8f; }
}

/* Elección manual — gana siempre sobre prefers-color-scheme por especificidad
   (selector de atributo), sin depender del orden en el fichero. */
.mh-page[data-theme="dark"] {
  --mh-bg: #131313;
  --mh-card: #1f1f1f;
  --mh-card-2: #262626;
  --mh-border: #2e2e2e;
  --mh-text: #f5f3f0;
  --mh-muted: #9b9b9b;
  --mh-accent: #e0973c;
  --mh-accent-dark: #c07d2c;
  --mh-accent-text: #1a1208;
  --mh-glow-opacity: 0.35;
}
.mh-page[data-theme="dark"] .mh-nav .mh-logo img { filter: invert(1) brightness(1.4); }
.mh-page[data-theme="dark"] .mh-field input::placeholder { color: #6b6b6b; }

.mh-page[data-theme="light"] {
  --mh-bg: #f7f4ef;
  --mh-card: #ffffff;
  --mh-card-2: #f0ece4;
  --mh-border: #e2ddd3;
  --mh-text: #1f1c17;
  --mh-muted: #767066;
  --mh-accent: #c9762a;
  --mh-accent-dark: #a35f1f;
  --mh-accent-text: #ffffff;
  --mh-glow-opacity: 0.18;
}
.mh-page[data-theme="light"] .mh-nav .mh-logo img { filter: none; }
.mh-page[data-theme="light"] .mh-field input::placeholder { color: #a39c8f; }
