 /* ============================
   BASE
============================ */

:root {
  --ma-bg: #f6f0e9;
  --ma-bg-soft: #f3ece4;
  --ma-card-bg: #ffffff;
  --ma-border-soft: rgba(214, 189, 149, 0.65);
  --ma-gold: #c79f5b;
  --ma-text-main: #3a3027;
  --ma-text-soft: #8b7460;
  --ma-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.ma-body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--ma-bg);
  color: var(--ma-text-main);
}

/* Página genérica wrapper */

.ma-page-wrapper {
  min-height: 100vh;
}

/* ============================
   FORMULARIOS GENERALES
   (index, membresía, signup, login)
============================ */

.ma-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.2rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.ma-card-simple {
  background: var(--ma-card-bg);
  border-radius: 18px;
  padding: 1.4rem 1.2rem 1.5rem;
  box-shadow: var(--ma-shadow-soft);
  border: 1px solid rgba(227, 204, 165, 0.4);
}

.ma-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.ma-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ma-text-soft);
  margin-bottom: 0.35rem;
}

.ma-input,
.ma-select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(214, 189, 149, 0.8);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  background: #fffdf8;
  margin-bottom: 0.8rem;
}

.ma-button-primary {
  width: 100%;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #e2ba6b, #c79f5b);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 0.4rem;
}

.ma-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #b11e1e;
}

/* ============================
   DASHBOARD – CONTENEDOR
============================ */

.ma-dashboard-wrapper {
  min-height: 100vh;
  background: #f5f5f3;
  display: flex;
  flex-direction: column;
} 

/* HEADER */

.ma-dashboard-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ma-bg);
  border-bottom: 1px solid rgba(199, 171, 123, 0.25);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ma-dashboard-header.ma-header-compact {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Fila del título "MENTE ABUNDANTE" */

.ma-dashboard-brand-row {
  padding: 1.1rem 1.4rem 1.1rem;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.24em;
  color: #2f2219; 
  font-weight: 500;
  border-bottom: 1px solid rgba(199, 171, 123, 0.25);
  max-height: 999px;
  transition: opacity 0.25s ease, max-height 0.25s ease, transform 0.25s ease;
}

.ma-logo {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.24em;
}

/* Ocultar solo la fila del logo al hacer scroll */

.ma-header-compact .ma-dashboard-brand-row {
  opacity: 0;
  max-height: 0;
  transform: translateY(-15px);
  border-bottom-color: transparent;
}

/* Fila usuario + chips */

.ma-dashboard-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem 1rem;
}

.ma-user-name {
  font-family: "Dancing Script", "Playfair Display", serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: #2f2219;
}

.ma-dashboard-user-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ma-ref-badge {
  border: none;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: rgba(219, 190, 140, 0.18);
  color: #6b4b20;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ma-ref-badge span {
  display: block;
}

.ma-ref-badge #dashEstimateText {
  font-size: 0.7rem;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ma-icon-button {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  padding: 0.1rem 0.3rem;
  color: #8b7460;
}

/* ============================
   DASHBOARD – CONTENIDO
============================ */

.ma-dashboard-main {
  flex: 1;
  padding: 1.1rem 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Tarjetas grandes: frase, inspiración, TikTok, newsletter */

 .ma-card,
.ma-widget-card {
  background: #ffffff;  /* blanco limpio sobre gris */
  border-radius: 12px;
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: var(--ma-shadow-soft);
  border: 1px solid rgba(227, 204, 165, 0.25);
}


/* Títulos de cada tarjeta */

.ma-section-label,
.ma-card > .ma-section-label {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b4b20;
  margin-top: 0.15rem;
  margin-bottom: 1.1rem;
}

/* Frase principal */

.ma-phrase-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: #3b3026;
}

/* Caja de embed (Pinterest, TikTok si no carga, etc.) */

.ma-embed-box {
  border-radius: 12px;
  border: 1px dashed rgba(188, 160, 122, 0.6);
  padding: 1rem;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(250, 245, 238, 0.8);
}

.ma-embed-placeholder {
  font-size: 0.9rem;
  color: #a18d78;
}

.ma-news-text {
  font-size: 0.9rem;
  color: #5a4b3f;
}
 /* ===== FIX HEADER MOBILE SENCILLO Y ELEGANTE ===== */
@media (max-width: 620px) {
  /* El header ya no en fila, sino en columna */
  .ma-dashboard-header {
    display: block;
    text-align: center;
    padding: 1.25rem 1rem 0.75rem;
  }

  /* Fila de marca: centrada */
  .ma-dashboard-brand-row {
    display: flex;
    justify-content: center;
    margin-bottom: 0.35rem;
  }

  /* Título THE MASTER KEY en UNA sola línea, centrado */
  .ma-logo {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    text-align: center;
    white-space: nowrap;      /* <-- evita que se parta en 3 líneas */
  }

  /* Selector de idioma abajo, centrado */
  .ma-lang-switch {
    margin-top: 0.4rem;
    display: flex;
    justify-content: center;
  }

  /* El menú desplegable, si se abre, se centra bajo el botón */
  .ma-lang-menu {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ============================
   ACCESOS RÁPIDOS / LINK / QR
============================ */

/* Contenedor de las 3 tarjetas (E-BOOK, HERRAMIENTAS, TU QR) */
.ma-share-layout.ma-share-layout-square {
  display: columns;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

/* Versión mobile: una debajo de otra */
@media (max-width: 768px) {
  .ma-share-layout.ma-share-layout-square {
    grid-template-row: 1fr;
  }
}

/* Tarjetas rápidas (todas con misma altura) */
.ma-square-tile {
  background: var(--ma-card-bg);
  border-radius: 12px;
  padding: 1.1rem 0.6rem;
  border: 1px solid rgba(233, 210, 179, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  text-align: center;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  min-height: 150px;
}

/* Títulos y subtítulos dentro de las tarjetas */
.ma-square-title {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #7f654a;
  margin-bottom: 0.3rem;
}

.ma-square-sub {
  font-size: 0.9rem;
  color: #6a5845;
}

/* Tarjeta de dinero / herramientas — icono arriba, texto abajo */
.ma-square-money {
  cursor: pointer;
}

/* Icono de dinero */
.ma-square-money-icon {
  width: 56px;
  height: 56px;
  border-radius: 35%;
  border: 1px solid rgba(214, 189, 149, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #6b4b20;
  background: #fff7ec;
  margin-bottom: 0.4rem;
}

/* QR pequeño como icono */
.ma-qr-canvas {
  width: 68px !important;
  height: 68px !important;
  display: block;
  margin-top: 0.25rem;
}

/* Texto de ayuda debajo */
.ma-help-text,
.ma-quick-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #8b7460;
}

 
/* ============================
   FOOTER DASHBOARD
============================ */

.ma-dashboard-footer {
  margin-top: 1.3rem;
  padding: 0.9rem 1.1rem 1.4rem;
  border-top: 1px solid rgba(199, 171, 123, 0.35);
  background: rgba(246, 240, 233, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ma-footer-refid {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ma-text-soft);
}

.ma-footer-btn-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ma-footer-btn {
  flex: 1 1 30%;
  border-radius: 999px;
  border: 1px solid rgba(214, 189, 149, 0.9);
  background: var(--ma-card-bg);
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b4b20;
}

.ma-footer-logout {
  align-self: center;
  margin-top: 0.2rem;
  border: none;
  background: transparent;
  color: #9f8974;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ============================
   TOAST
============================ */

.ma-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(60, 40, 20, 0.85);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0.05em;
}

.ma-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================
   MODAL QR (ÚNICO)
============================ */

.ma-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.ma-modal.is-open {
  display: flex;
}

.ma-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.ma-modal-content {
  position: relative;
  background: #fffaf2;
  border-radius: 24px;
  padding: 1.4rem 1.4rem 1.1rem;
  max-width: 320px;
  width: 88%;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(214, 189, 149, 0.8);
}

.ma-modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  color: #7b5a3b;
}

#qrCanvasLarge {
  width: 180px;
  height: 180px;
  max-width: 100%;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(214, 189, 149, 0.8);
  margin-bottom: 0.7rem;
}

.ma-modal-text {
  font-size: 0.9rem;
  color: #5f4c3a;
}

.ma-modal-ref {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #6b4b20;
}

.ma-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: #8a6f55;
}

 /* ============================
   RESPONSIVE + AJUSTES FINALES LIMPIOS
============================ */

/* —— Ajustes generales en móvil —— */
@media (max-width: 480px) {
  .ma-dashboard-main {
    padding-inline: 0.9rem;
  }

  .ma-card,
  .ma-widget-card {
    border-radius: 12px;
  }

  .ma-user-name {
    font-size: 1.85rem;
  }
}

/* ============================
   HEADER: TÍTULO Y NOMBRE
============================ */

/* Más aire y mejor lectura en el header */
.ma-dashboard-header {
  padding: 1.0rem 1.0rem 0.75rem;
}

.ma-dashboard-brand-row {
  padding-top: 0.08rem;
  padding-bottom: 0.08rem; /* más aire arriba y abajo de MENTE ABUNDANTE */
  text-align: center;
}

.ma-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7b6652;
}

/* Un poco más grande en pantallas grandes */
@media (min-width: 768px) {
  .ma-logo {
    font-size: 2.0rem;
  }
}

/* Nombre "    Ana" más visible y elegante */
.ma-user-name {
  font-family: "Dancing Script", cursive;
  font-size: 2.2rem;
  color: #3a2f25;
}

@media (max-width: 768px) {
  .ma-user-name {
    font-size: 1.85rem;
  }
}

/* ============================
   ACCESOS RÁPIDOS – 3 TARJETAS
============================ */

/* Contenedor E-BOOK / HERRAMIENTAS / TU QR */
.ma-block-share .ma-share-layout.ma-share-layout-square {
  display: grid;
  grid-template-row: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

/* Tarjeta individual (las 3 iguales) */
.ma-block-share .ma-square-tile {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 1rem 0.6rem;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  min-height: 130px;
  text-align: center;
}

/* Título y subtítulo dentro de las tarjetas */
.ma-block-share .ma-square-title {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a6858;
  margin-bottom: 0.25rem;
}

.ma-block-share .ma-square-sub {
  font-size: 0.9rem;
  color: #3a3025;
}

/* Icono del símbolo de dinero */
.ma-block-share .ma-square-money-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(214, 189, 149, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #6b4b20;
  background: #fff7ec;
  margin-bottom: 0.35rem;
}

/* QR pequeño como icono consistente */
.ma-block-share .ma-qr-canvas {
  width: 42px !important;
  height: 42px !important;
  display: block;
  margin-top: 0.25rem;
}

/* Texto de ayuda debajo */
.ma-block-share .ma-help-text {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #8b7460;
}

/* —— Versión móvil: una debajo de otra y más compactas —— */
@media (max-width: 480px) {
  .ma-block-share .ma-share-layout.ma-share-layout-square {
    grid-template-rows: 1fr;
    gap: 0.6rem;
  }

  .ma-block-share .ma-square-tile {
    min-height: 95px;
    padding: 0.55rem 0.4rem;
  }

  .ma-block-share .ma-square-title {
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
  }

  .ma-block-share .ma-square-sub {
    font-size: 0.85rem;
  }

  .ma-block-share .ma-square-money-icon {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }

  .ma-block-share .ma-qr-canvas {
    width: 42px !important;
    height: 42px !important;
  }
}

/* ============================
   MODAL QR GRANDE
============================ */

.ma-qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.ma-qr-modal.is-visible {
  display: flex;
}

.ma-qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.ma-qr-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1.75rem 1.75rem;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.ma-qr-modal-title {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b755e;
  margin-bottom: 0.5rem;
}

.ma-qr-modal-ref {
  font-size: 0.9rem;
  color: #3a2f25;
  margin-bottom: 0.75rem;
}

.ma-qr-modal-canvas {
  width: 220px !important;
  height: 220px !important;
  margin: 0 auto 0.75rem auto;
}

.ma-qr-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #7b6652;
}
/* ===== Ajuste especial SOLO para celular (tarjetas menos altas) ===== */
@media (max-width: 480px) {
  /* Layout: siguen siendo 1 por fila, pero más compactas */
  .ma-block-share .ma-share-layout.ma-share-layout-square {
    grid-template-row: 1fr;
    gap: 0.6rem;
  }

  /* Tarjeta más bajita y con menos relleno */
  .ma-block-share .ma-square-tile {
    min-height: 95px;
    padding: 0.55rem 0.4rem;
  }

  /* Texto un poco más compacto */
  .ma-block-share .ma-square-title {
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
  }

  .ma-block-share .ma-square-sub {
    font-size: 0.85rem;
  }

  /* Iconos un poquito más pequeños para que no “estiren” la tarjeta */
  .ma-block-share .ma-square-money-icon {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }

  .ma-block-share .ma-qr-canvas {
    width: 42px !important;
    height: 42px !important;
    margin-top: 0.2rem;
  }
}
 
/* ===== Fila de accesos rápidos ===== */
.ma-quick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Cada tarjeta: misma altura, centradas */
.ma-quick-card {
  background-color: var(--ma-card-bg, #ffffff);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  padding: 1rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* En móvil: una debajo de otra pero con la misma proporción */
@media (max-width: 768px) {
  .ma-quick-row {
    grid-template-row: 1fr;
  }

  .ma-quick-card {
    padding: 0.9rem 1rem;
  }
}

/* Iconos dentro de las tarjetas: tamaño consistente */
.ma-quick-card img,
.ma-quick-card canvas,
.ma-quick-card svg {
  max-width: 72px;
  max-height: 72px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.4rem auto;
}
 
/* nota debajo de las tarjetas */
.ma-quick-note {
  margin-top: 0.95rem;
  font-size: 0.85rem;
  color: var(--ma-text-muted, #9b8570);
}

/* en pantallas chicas: apiladas pero bonitas */
@media (max-width: 768px) {
  .ma-quick-row {
    flex-direction: row;
  }

  .ma-quick-card {
    padding: 1rem 1rem;
  }
}
/* ===== Sección TUS ACCESOS RÁPIDOS ===== */

.ma-quick-section {
  margin-top: 1.75rem;
}

/* fila de tres tarjetas en una sola línea */
.ma-quick-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.75rem;
}

/* cada tarjeta */
.ma-quick-card {
  flex: 1 1 0;
  background-color: var(--ma-card-bg, #ffffff);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  padding: 0.85rem 0.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* iconito arriba */
.ma-quick-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* icono de dinero redondito */
.ma-quick-icon-money {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* texto de arriba (E-BOOK / HERRAMIENTAS / TU QR) */
.ma-quick-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  color: var(--ma-text-muted, #9b8570);
}

/* texto de acción */
.ma-quick-cta {
  display: block;
  font-size: 0.85rem;
  color: var(--ma-text-main, #3a2f25);
}

/* QR pequeño dentro de la tarjeta */
.ma-quick-card-qr canvas {
  width: 56px !important;
  height: 56px !important;
  margin-bottom: 0.25rem;
}

/* nota debajo de las tarjetas */
.ma-quick-note {
  margin-top: 0.95rem;
  font-size: 0.85rem;
  color: var(--ma-text-muted, #9b8570);
}

/* por si alguna regla anterior rompía las letras */
.ma-quick-card span {
  letter-spacing: normal;
  word-spacing: normal;
  white-space: normal;
}
/* ===== MODAL QR GRANDE ===== */

.ma-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ma-modal.is-open {
  display: flex;
}

.ma-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.ma-modal-content {
  position: relative;
  z-index: 1;
  max-width: 360px;
  width: 90%;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.ma-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #7b6a59;
}

.ma-modal-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b6a59;
  margin-bottom: 0.35rem;
}

.ma-modal-subtitle {
  font-size: 0.85rem;
  color: #8f7d69;
  margin-bottom: 0.9rem;
}

#dashQrBig {
  width: 180px !important;
  height: 180px !important;
  margin: 0 auto 0.7rem auto;
  display: block;
}

.ma-modal-code {
  font-size: 0.85rem;
  color: #3a2f25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Links de accesos rápidos con look de tarjeta */
.ma-quick-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ma-form-terms a,
.ma-membership-footer a {
  color: #7a6650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ma-form-terms a:hover,
.ma-membership-footer a:hover {
  color: #5a4937;
}
/* =========================
   THEMES
   ========================= */

/* Tema por defecto: Classic (dorado, claro) */
body.ma-theme-classic {
  background: #f7f5f0;
  color: #111111;
}

body.ma-theme-classic .ma-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.ma-theme-classic .ma-logo {
  color: #111111;
}

/* Botones principales en classic */
body.ma-theme-classic .ma-ref-badge,
body.ma-theme-classic .ma-footer-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Tema 2: Steel (más oscuro, más masculino) */
body.ma-theme-steel {
  background: #050608;
  color: #f5f5f5;
}

body.ma-theme-steel .ma-card {
  background: #101217;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.ma-theme-steel .ma-logo {
  color: #f5f5f5;
}

/* Texto de secciones en steel */
body.ma-theme-steel .ma-section-label,
body.ma-theme-steel .ma-user-name,
body.ma-theme-steel .ma-news-text,
body.ma-theme-steel .ma-phrase-text {
  color: #f5f5f5;
}

/* Botones en steel */
body.ma-theme-steel .ma-ref-badge,
body.ma-theme-steel .ma-footer-btn {
  background: #151822;
  border-color: #2a2f3a;
  color: #f5f5f5;
}

/* Footer code en steel */
body.ma-theme-steel #footerRefId {
  color: #d4d4d4;
}

/* Toggle de estilo (botoncitos pequeños) */
.ma-style-toggle {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.35rem;
  font-size: 0.7rem;
}

.ma-style-chip {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  padding: 0.15rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.ma-style-chip.is-active {
  background: #d4af37;
  border-color: #d4af37;
  color: #111111;
}

/* En tema oscuro, ajustar fondo de chips */
body.ma-theme-steel .ma-style-chip {
  background: #151822;
  border-color: #2a2f3a;
  color: #f5f5f5;
}

body.ma-theme-steel .ma-style-chip.is-active {
  background: #d4af37;
  border-color: #d4af37;
  color: #111111;
}
/* =========================================
   THE MASTER KEY – BLACK & GOLD DASHBOARD THEME
   Aplica SOLO cuando el body tiene .ma-theme-dark
========================================= */

/* Fondo general: casi negro, tipo app premium */
.ma-theme-dark .ma-dashboard-wrapper {
  min-height: 100vh;
  background: #050608;
  display: flex;
  flex-direction: column;
}

/* HEADER – barra negra elegante con línea dorada muy sutil */
.ma-theme-dark .ma-dashboard-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #080a0f;
  border-bottom: 1px solid rgba(212, 175, 55, 0.38);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Header compacto con sombra suave dorada */
.ma-theme-dark .ma-dashboard-header.ma-header-compact {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

/* Fila del título "THE MASTER KEY" */
.ma-theme-dark .ma-dashboard-brand-row {
  padding: 1.1rem 1.4rem 1.1rem;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.24em;
  color: #f5f5f5;
  font-weight: 500;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  max-height: 999px;
  transition: opacity 0.25s ease, max-height 0.25s ease, transform 0.25s ease;
}

.ma-theme-dark .ma-logo {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #f5f5f5;
}

/* Ocultar título al hacer scroll (sigue igual) */
.ma-theme-dark .ma-header-compact .ma-dashboard-brand-row {
  opacity: 0;
  max-height: 0;
  transform: translateY(-15px);
  border-bottom-color: transparent;
}

/* Fila usuario */
.ma-theme-dark .ma-dashboard-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem 1rem;
}

/* Nombre del usuario – dorado suave manuscrito */
.ma-theme-dark .ma-user-name {
  font-family: "Dancing Script", "Playfair Display", serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: #f9e7b3;
}

/* Meta (badge + menú) */
.ma-theme-dark .ma-dashboard-user-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Badge de referidos – cápsula gris oscuro con borde dorado sutil */
.ma-theme-dark .ma-ref-badge {
  border: 1px solid rgba(212, 175, 55, 0.55);
  padding: 0.32rem 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #262326, #121318);
  color: #f4f4f4;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ma-theme-dark .ma-ref-badge span {
  display: block;
}

.ma-theme-dark .ma-ref-badge #dashEstimateText {
  font-size: 0.6rem;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f9e7b3;
}

/* Botón de menú ⋮ */
.ma-theme-dark .ma-icon-button {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  padding: 0.1rem 0.3rem;
  color: #b3a27b;
}

/* CONTENIDO – padding igual pero sobre fondo oscuro */
.ma-theme-dark .ma-dashboard-main {
  flex: 1;
  padding: 1.1rem 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Tarjetas – bloques negro profundo con borde dorado muy suave */
.ma-theme-dark .ma-card,
.ma-theme-dark .ma-widget-card {
  background: #11131a;
  border-radius: 14px;
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

/* Títulos de sección – dorado */
.ma-theme-dark .ma-section-label,
.ma-theme-dark .ma-card > .ma-section-label {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4af37;
  margin-top: 0.15rem;
  margin-bottom: 1.1rem;
}

/* Frase principal – blanco suave */
.ma-theme-dark .ma-phrase-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: #f3f3f5;
}

/* Caja de embeds (Pinterest / TikTok) – marco oscuro */
.ma-theme-dark .ma-embed-box {
  border-radius: 12px;
  border: 1px dashed rgba(212, 175, 55, 0.38);
  padding: 1rem;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at top left, #161821, #0b0c10);
}

.ma-theme-dark .ma-embed-placeholder {
  font-size: 0.9rem;
  color: #c9c6bb;
}

/* Texto newsletter/anuncios */
.ma-theme-dark .ma-news-text {
  font-size: 0.9rem;
  color: #d0ccc2;
}

/* ACCESOS RÁPIDOS – estilo “cards negras” */
.ma-theme-dark .ma-quick-card {
  background: #141621;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75);
}

/* Iconos accesos rápidos */
.ma-theme-dark .ma-quick-icon,
.ma-theme-dark .ma-quick-icon-money {
  color: #f9e7b3;
}

/* Nota bajo accesos rápidos */
.ma-theme-dark .ma-quick-note {
  color: #c1bcaf;
}

/* FOOTER – franja oscura */
.ma-theme-dark .ma-dashboard-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  background: #080a0f;
}

/* Código en footer */
.ma-theme-dark .ma-footer-refid {
  color: #f1e6c8;
}

/* Botones de footer */
.ma-theme-dark .ma-footer-btn {
  background: #151722;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f5f5f5;
}

/* Botón cerrar sesión */
.ma-theme-dark .ma-footer-logout {
  color: #c1bcaf;
}

/* ===== MODAL QR NUEVO (NEGRO + DORADO) ===== */

.ma-theme-dark .ma-modal {
  background: rgba(0, 0, 0, 0.75);
}

.ma-theme-dark .ma-modal-content {
  background: #11131a;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
}

.ma-theme-dark .ma-modal-title {
  color: #f9e7b3;
}

.ma-theme-dark .ma-modal-subtitle,
.ma-theme-dark .ma-modal-code {
  color: #d0ccc2;
}

.ma-theme-dark .ma-modal-close {
  background: transparent;
  color: #f5f5f5;
}

/* ===== HEADER MOBILE – solo colores en dark theme ===== */
@media (max-width: 620px) {
  .ma-theme-dark .ma-dashboard-header {
    display: block;
    text-align: center;
    padding: 1.25rem 1rem 0.75rem;
  }

  .ma-theme-dark .ma-dashboard-brand-row {
    display: flex;
    justify-content: center;
    margin-bottom: 0.35rem;
  }

  .ma-theme-dark .ma-logo {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    text-align: center;
    white-space: nowrap;
  }
}

/* ===== Botón discreto en el footer para cambiar estilo ===== */

.ma-footer-style {
  margin-top: 0.5rem;
  background: transparent;
  border: none;
  color: #8e887c;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.8;
}

.ma-footer-style:hover {
  opacity: 1;
}
 /* =========================================
   BLACK EDITION – Sombra en el suelo bajo THE MASTER KEY
   (solo cuando está activo ma-theme-dark)
========================================= */

.ma-theme-dark .ma-dashboard-brand-row {
  position: relative;
}

.ma-theme-dark .ma-logo {
  position: relative;
  z-index: 2; /* el texto va arriba de la sombra */
}

/* Sombra/halo en el piso, como si el título flotara */
.ma-theme-dark .ma-logo::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.9rem;           /* qué tan abajo está la sombra */
  width: 70%;                /* ancho de la sombra */
  height: 0.7rem;            /* grosor de la sombra */

  /* “charco” dorado-oscuro en el piso */
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.8) 0%,           /* centro oscuro */
    rgba(0, 0, 0, 0.9) 35%,
    rgba(212, 175, 55, 0.4) 60%,     /* borde con tinte dorado */
    rgba(0, 0, 0, 0) 100%            /* se desvanece */
  );

  filter: blur(4px);
  opacity: 0.95;
  pointer-events: none;
  z-index: 1; /* debajo del texto, encima del fondo */
}
 ===== PATCH para styles.css (pegar al FINAL de tu styles.css) =====
/* =========================================================
   VAULT (BANNERS) — FIX para Classic + Dark (pegar al FINAL)
   ========================================================= */
/* Layout */
.ma-vault-section{ padding: 18px 16px; }
.ma-vault-grid{ display:grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.ma-vault-banner{
  display:block;
  text-decoration:none;
  border-radius: 18px;
  padding: 16px 16px 14px;
  overflow:hidden;
  position:relative;
  transform: translateZ(0);
}
/* --------- Classic (crema) --------- */
body:not(.ma-theme-dark) .ma-vault-banner{
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(250,245,238,0.78));
  box-shadow: 0 14px 34px rgba(0,0,0,0.06);
}
body:not(.ma-theme-dark) .ma-vault-kicker{ color: rgba(58,48,39,0.70); }
body:not(.ma-theme-dark) .ma-vault-title{ color: rgba(58,48,39,0.95); }
body:not(.ma-theme-dark) .ma-vault-sub{ color: rgba(58,48,39,0.72); }
body:not(.ma-theme-dark) .ma-vault-cta{
  border: 1px solid rgba(199,159,91,0.55);
}
  background: linear-gradient(135deg, #e2ba6b, #c79f5b);
  color: #ffffff;
/* --------- Dark (Black Edition) --------- */
.ma-theme-dark .ma-vault-banner{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 34px rgba(0,0,0,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ma-theme-dark .ma-vault-kicker{ color: rgba(255,255,255,0.72); }
.ma-theme-dark .ma-vault-title{ color: rgba(255,255,255,0.94); }
.ma-theme-dark .ma-vault-sub{ color: rgba(255,255,255,0.72); }
.ma-theme-dark .ma-vault-cta{
  border: 1px solid rgba(212,175,55,0.35);
  background: linear-gradient(180deg, rgba(232,198,120,0.92), rgba(214,168,70,0.88));
  color: #111111;
}
/* Shared typography */
.ma-vault-top{ display:flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ma-vault-kicker{
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ma-vault-title{
  font-family: "Playfair Display", serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.ma-vault-sub{
  margin-top: 6px;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}
.ma-vault-cta{
  margin-top: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ma-vault-banner:active{ transform: translateY(1px); }
===== NOTA de desbloqueo TTP (keys de localStorage) =====
El banner de TTP aparece si en localStorage existe cualquiera de estas keys con valor true/1: 
ttp_unlocked, ma_ttp_unlocked, truth_path_unlocked, tp_unlocked, ttpUnlocked.\nSi tu quiz ya 
marca otra key, solo agrega ese nombre en el array 'keys' dentro del script 
window.maRefreshVault en dashboard.html. 

/* ===============================
TMK — VAULT visual patch (Classic + locked)
Pega AL FINAL de styles.css
================================ */
/* Classic (crema): texto oscuro para que se vea */
body:not(.ma-theme-dark) .ma-vault-kicker{ color: rgba(58,48,39,.72) !important; }
body:not(.ma-theme-dark) .ma-vault-title{ color: rgba(32,28,24,.92) !important; }
body:not(.ma-theme-dark) .ma-vault-sub{ color: rgba(58,48,39,.72) !important; }
body:not(.ma-theme-dark) .ma-vault-cta{ color: rgba(199,159,91,.98) !important; }
/* Locked */
.ma-vault-banner.ma-vault-locked{
  opacity: .55;
  filter: grayscale(.35);
  pointer-events: none;
}
