/* MycoPoints — estilos de cara al cliente (v2, 14-oct-2026).
 * Lenguaje visual de la web real: Work Sans, rosa de marca #DD458E, tinta #1C1C1A,
 * botones de píldora y NINGUNA sombra (el cliente no usa sombras). El degradado
 * rosa→violeta recoge el del titular "Grow your mind" de la home.
 * El tema pinta todos los <button> en negro: de ahí los !important en .mp-btn. */

.mp-cuenta {
  --mp-pink: #dd458e;
  --mp-pink-dark: #c73a7c;
  --mp-violet: #7b3fa8;
  --mp-ink: #1c1c1a;
  --mp-soft: #4a5464;
  --mp-line: rgba(28, 28, 26, .12);
  --mp-tint: #fdeff6;
  --mp-panel: #f7f6f7;
}

.mp-marca { white-space: nowrap; }
.mp-num { font-weight: 700; }

/* ── Botones ─────────────────────────────────────────────────── */
.mp-btn,
.mp-btn:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px; padding: 11px 20px !important;
  background: #dd458e !important; color: #fff !important; border: 0 !important;
  border-radius: 999px !important; box-shadow: none !important;
  font: inherit; font-weight: 600 !important; font-size: 15px !important; line-height: 1.2 !important;
  letter-spacing: .01em; text-align: center; text-decoration: none !important; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.mp-btn:hover, .mp-btn:focus-visible { background: #c73a7c !important; color: #fff !important; transform: translateY(-1px); }
.mp-btn:focus-visible { outline: 2px solid #1c1c1a; outline-offset: 2px; }
.mp-btn[disabled] { background: #ececec !important; color: #8b8b8b !important; cursor: not-allowed; transform: none; }
.mp-btn--auto { width: auto; }

/* ── Ficha de producto ───────────────────────────────────────── */
.mp-ficha {
  position: relative; margin: 14px 0 0; padding: 13px 16px 13px 46px;
  border-radius: 14px; background: #fdeff6; border: 1px solid rgba(221, 69, 142, .22);
  color: #4a5464; font-size: 14px; line-height: 1.45;
}
.mp-ficha::before {
  content: ""; position: absolute; left: 16px; top: 14px; width: 18px; height: 18px;
  background: #dd458e;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m12 2 2.9 6.1 6.6.9-4.8 4.7 1.2 6.6L12 17.2 6.1 20.3l1.2-6.6-4.8-4.7 6.6-.9z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m12 2 2.9 6.1 6.6.9-4.8 4.7 1.2 6.6L12 17.2 6.1 20.3l1.2-6.6-4.8-4.7 6.6-.9z'/></svg>") center/contain no-repeat;
}
.mp-ficha p { margin: 0; }
.mp-ficha p + p { margin-top: 4px; }
.mp-ficha strong { color: #1c1c1a; }
.mp-ficha a { color: #1c1c1a; text-decoration: underline; text-underline-offset: 2px; }

/* ── Mi cuenta ───────────────────────────────────────────────── */
.mp-cuenta { display: flex; flex-direction: column; gap: 40px; }

/* Tarjeta de saldo: el único bloque con color fuerte de toda la pantalla */
.mp-saldo {
  position: relative; overflow: hidden;
  padding: 30px 32px 32px; border-radius: 24px;
  background: linear-gradient(135deg, #dd458e 0%, #b5389c 52%, #7b3fa8 100%);
  color: #fff;
}
.mp-saldo::after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.mp-saldo > * { position: relative; z-index: 1; }
.mp-saldo p { margin: 0; }
.mp-saldo__etiqueta {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: #fff;
}
.mp-saldo__cifra {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  margin: 16px 0 0 !important; font-size: 19px; font-weight: 500; color: #fff;
}
.mp-saldo__cifra span:first-child {
  font-size: 68px; font-weight: 700; line-height: .95; letter-spacing: -.02em; margin-right: 0;
}
.mp-saldo__pendiente {
  display: block; margin: 18px 0 0 !important; padding: 12px 16px 12px 44px; position: relative;
  border-radius: 14px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-size: 14.5px; line-height: 1.5;
}
.mp-saldo__pendiente::before {
  content: ""; position: absolute; left: 16px; top: 14px; width: 18px; height: 18px; background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10.6V6h-2v7.4l5 3 1-1.7Z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10.6V6h-2v7.4l5 3 1-1.7Z'/></svg>") center/contain no-repeat;
}
.mp-saldo__pendiente strong { color: #fff; font-weight: 700; }
.mp-saldo__nota, .mp-saldo__como { margin-top: 16px !important; color: rgba(255, 255, 255, .92); font-size: 15px; }
.mp-saldo a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.mp-saldo a:hover { text-decoration-thickness: 2px; }

/* Resumen en el escritorio de Mi cuenta */
.mp-escritorio {
  padding: 16px 20px; border-radius: 14px; background: #fdeff6;
  border: 1px solid rgba(221, 69, 142, .2); color: #4a5464;
}
.mp-escritorio a { color: #1c1c1a; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* Encabezados de bloque */
.mp-bloque__titulo {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: 22px; font-weight: 700; color: #1c1c1a; letter-spacing: -.01em;
}
.mp-bloque__titulo::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(28, 28, 26, .12); }
.mp-bloque__nota { margin: 16px 0 0; font-size: 14px; color: #4a5464; }

/* ── Tarjetas de recompensa ──────────────────────────────────── */
.mp-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 18px; }
.mp-tarjeta {
  display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px;
  background: #fff; border: 1px solid rgba(28, 28, 26, .12); border-radius: 20px;
  transition: border-color .18s ease, transform .18s ease;
}
.mp-tarjeta:hover { border-color: rgba(221, 69, 142, .55); transform: translateY(-2px); }
.mp-tarjeta__img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 14px; background: #f7f6f7;
}
.mp-tarjeta__titulo { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: #1c1c1a; line-height: 1.35; }
.mp-tarjeta__coste {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin: 0; padding: 5px 12px; border-radius: 999px;
  background: #fdeff6; color: #c0206f; font-size: 13.5px; font-weight: 600;
}
.mp-tarjeta__coste .mp-num { font-weight: 700; }
.mp-tarjeta__etiqueta {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #4a5464;
  font-weight: 600; margin-top: 2px;
}
.mp-tarjeta__select {
  width: 100%; min-height: 42px; padding: 8px 36px 8px 12px;
  border: 1px solid rgba(28, 28, 26, .22); border-radius: 12px; background-color: #fff; color: #1c1c1a;
  font: inherit; font-size: 14.5px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231c1c1a'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
.mp-tarjeta__select:focus-visible { outline: 2px solid #dd458e; outline-offset: 1px; border-color: #dd458e; }
.mp-tarjeta .mp-btn { margin-top: auto; }
/* Recompensa fuera de alcance: foto apagada y aviso claro */
.mp-tarjeta:has(.mp-btn[disabled]) { background: #fbfafb; }
.mp-tarjeta:has(.mp-btn[disabled]) .mp-tarjeta__img { filter: grayscale(.85) opacity(.75); }
.mp-tarjeta:has(.mp-btn[disabled]) .mp-tarjeta__coste { background: #f0eff0; color: #4a5464; }
/* Misma altura en toda la fila y la accion (selector + boton) pinada abajo con aire (14-oct-2026) */
.mp-rejilla { align-items: stretch; }
.mp-tarjeta { height: 100%; }
/* Reserva de 3 lineas para el titulo: todo lo de abajo (coste, selector, boton) arranca a la misma
   altura en todas las tarjetas, aunque un titulo ocupe 1 linea y otro 3 (robusto aunque la rejilla
   no estire). Un titulo mas largo crece y el pin de abajo mantiene el boton alineado. */
.mp-tarjeta__titulo { min-height: calc(15px * 1.35 * 3); }
.mp-tarjeta__etiqueta { margin-top: auto; }
.mp-tarjeta:has(.mp-tarjeta__etiqueta) .mp-btn { margin-top: 10px; }

/* ── Historial ───────────────────────────────────────────────── */
.mp-historial {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid rgba(28, 28, 26, .12); border-radius: 18px; overflow: hidden;
}
.mp-historial th, .mp-historial td { padding: 14px 16px; text-align: left; vertical-align: top; }
.mp-historial thead th {
  background: #f7f6f7; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: #4a5464; font-weight: 600;
}
.mp-historial tbody td { border-top: 1px solid rgba(28, 28, 26, .08); font-size: 15px; }
.mp-historial__pts { text-align: right !important; white-space: nowrap; font-weight: 700; }
.mp-historial .mp-pos { color: #1c1c1a; }
.mp-historial .mp-neg { color: #4a5464; }
.mp-historial__estado {
  display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px;
  background: #f4eefa; color: #6a3a93; font-size: 12.5px; font-weight: 600;
}
.mp-historial--pendiente td { background: #fcfbfd; }

/* ── Carrito ─────────────────────────────────────────────────── */
.mp-carrito {
  margin: 24px 0; padding: 22px 24px; border-radius: 20px;
  background: #fdeff6; border: 1px solid rgba(221, 69, 142, .2); color: #4a5464;
}
.mp-carrito p { margin: 0 0 8px; }
.mp-carrito__titulo { font-weight: 700; color: #1c1c1a; font-size: 18px; }
.mp-carrito__recompensas { margin-top: 14px; }
.mp-carrito__recompensas summary { cursor: pointer; font-weight: 600; color: #1c1c1a; margin-bottom: 14px; }
.mp-carrito .mp-rejilla { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mp-carrito a { color: #1c1c1a; text-decoration: underline; text-underline-offset: 2px; }
.mp-fila-totales small { font-weight: 400; color: #4a5464; }

/* ── Reseñas ─────────────────────────────────────────────────── */
.mp-resena-incentivada { margin: 6px 0 0; font-size: 13px; color: #4a5464; font-style: italic; }
.mp-resena-nota { font-size: 13px; color: #4a5464; }

/* ── Página del programa ─────────────────────────────────────── */
.mp-programa {
  max-width: 900px; margin: 40px auto; color: #1c1c1a;
  background: #fff; border: 1px solid rgba(28, 28, 26, .08);
  border-radius: 24px; padding: 40px 44px 44px; box-sizing: border-box;
}
.mp-programa > :first-child { margin-top: 0; }
.mp-programa h2 { margin: 48px 0 16px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.mp-programa__intro { font-size: 20px; line-height: 1.55; color: #4a5464; }
.mp-programa__lista { padding-left: 0; list-style: none; }
.mp-programa__lista li { position: relative; margin-bottom: 12px; padding-left: 32px; }
.mp-programa__lista li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: #dd458e;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.6 16.2 5.4 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.6 16.2 5.4 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center/contain no-repeat;
}
.mp-programa__tabla {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid rgba(28, 28, 26, .12); border-radius: 18px; overflow: hidden;
}
.mp-programa__tabla th, .mp-programa__tabla td { padding: 14px 16px; text-align: left; vertical-align: top; }
.mp-programa__tabla thead th {
  background: #f7f6f7; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: #4a5464; font-weight: 600;
}
.mp-programa__tabla tbody td { border-top: 1px solid rgba(28, 28, 26, .08); }
.mp-programa__nota { font-size: 14px; color: #4a5464; }
.mp-programa__ejemplo {
  padding: 24px 28px; border-radius: 20px; background: #fdeff6;
  border: 1px solid rgba(221, 69, 142, .2);
}
.mp-programa__ejemplo ol { margin: 0; padding-left: 1.2em; }
.mp-programa__ejemplo li { margin-bottom: 8px; }
.mp-programa__cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mp-programa a:not(.mp-btn) { color: #1c1c1a; text-decoration: underline; text-underline-offset: 2px; }

/* ── Móvil ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .mp-cuenta { gap: 32px; }
  .mp-saldo { padding: 24px 20px 26px; border-radius: 20px; }
  .mp-saldo__cifra span:first-child { font-size: 52px; }
  .mp-bloque__titulo { font-size: 19px; }
  /* 1 columna en movil: tarjetas a ancho completo, comodas como en escritorio (no 2 apretadas) */
  .mp-rejilla, .mp-carrito .mp-rejilla { grid-template-columns: 1fr; gap: 16px; }
  .mp-tarjeta { padding: 14px; border-radius: 16px; }
  .mp-tarjeta__titulo { font-size: 14px; }
  .mp-btn { font-size: 14px !important; padding: 9px 12px !important; min-height: 42px; }
  .mp-historial th, .mp-historial td { padding: 11px 10px; font-size: 14px; }
  .mp-programa__ejemplo { padding: 18px 20px; }
}

/* ── Progreso hacia la siguiente recompensa ──────────────────── */
.mp-progreso { width: 100%; height: 6px; border-radius: 999px; background: rgba(28, 28, 26, .1); overflow: hidden; }
.mp-progreso span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #dd458e, #b5389c); }
.mp-progreso--claro { height: 8px; background: rgba(255, 255, 255, .25); }
.mp-progreso--claro span { background: #fff; }
.mp-meta { margin: 22px 0 0; }
.mp-meta__txt { margin: 0 0 8px !important; font-size: 15px; color: rgba(255, 255, 255, .95); }
.mp-meta__txt strong { font-weight: 700; color: #fff; }
.mp-meta__listo {
  display: inline-block; margin: 20px 0 0 !important; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 14.5px; font-weight: 600; color: #fff;
}
.mp-tarjeta .mp-progreso { margin-top: auto; }
.mp-tarjeta .mp-progreso + .mp-btn { margin-top: 10px; }

/* ── Historial vacío ─────────────────────────────────────────── */
.mp-vacio {
  margin: 0; padding: 26px 24px; border-radius: 18px; text-align: center;
  background: #faf9fa; border: 1px dashed rgba(28, 28, 26, .22); color: #4a5464; font-size: 15px;
}

/* Pagina /mycopoints/ en movil: panel mas ajustado (14-oct-2026, fix contraste) */
@media (max-width: 600px) {
  .mp-programa { padding: 24px 20px 32px; margin: 16px auto; border-radius: 18px; }
}

/* Icono del menu de Mi cuenta para MycoPoints: estrella de puntos en vez de la cuadricula del
   panel (Elementor usa el icono por defecto para los endpoints propios). Acotado a este item;
   si el mask fallara, el item se queda sin icono, nunca roto. (14-oct-2026) */
.woocommerce-MyAccount-navigation-link--mycopoints a > i,
.woocommerce-MyAccount-navigation-link--mycopoints a > span,
.woocommerce-MyAccount-navigation-link--mycopoints a svg { display: none !important; }
.woocommerce-MyAccount-navigation-link--mycopoints a::before {
  content: "" !important; display: inline-block !important; width: 1em; height: 1em;
  margin-right: .6em; vertical-align: -.125em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.783 1.402 8.168L12 18.896l-7.336 3.868 1.402-8.168L.132 9.21l8.2-1.192z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.783 1.402 8.168L12 18.896l-7.336 3.868 1.402-8.168L.132 9.21l8.2-1.192z'/></svg>") center/contain no-repeat;
}
