/* =========================================================
   ERIX CLUB - TIERS Y MULTIPLICADORES
   ========================================================= */

.erixclub-tier-card {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid #d9edf5;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff 0%, #f7fbfd 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.erixclub-tier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.erixclub-tier-kicker {
  display: block;
  margin-bottom: 6px;
  color: #71b5d2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.erixclub-tier-badge,
.erixclub-product-multiplier-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.erixclub-tier-badge--pro {
  background: #31708f;
}

.erixclub-tier-badge--elite {
  background: #111;
  box-shadow: inset 0 0 0 1px #71b5d2;
}

.erixclub-tier-multiplier {
  color: #31708f;
  font-size: 18px;
  font-weight: 900;
}

.erixclub-tier-card p {
  margin: 0 0 14px;
  color: #555;
}

.erixclub-progress__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eef3;
}

.erixclub-progress__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #71b5d2;
}

.erixclub-progress__text {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: #666;
  font-size: 13px;
  flex-wrap: wrap;
}

.erixclub-progress__text strong {
  color: #222;
}

.erixclub-product-multiplier-badge {
  margin-left: 8px;
  background: #71b5d2;
  color: #fff;
  vertical-align: middle;
}

.erixclub-tier-table {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.erixclub-tier-table h2 {
  margin: 0 0 14px;
  color: #222;
  font-size: 20px;
  font-weight: 800;
}

.erixclub-tier-table table {
  margin-bottom: 0;
}

.erixclub-tier-current td {
  background: #f1f9fc;
}

.erixclub-tier-current strong {
  color: #31708f;
}

.erixclub-tier-benefit {
  font-weight: 600;
}

@media (max-width: 575px) {
  .erixclub-tier-card {
    padding: 16px;
  }

  .erixclub-tier-multiplier {
    font-size: 16px;
  }
}

/* =========================================================
   ERIX CLUB - CMS PAGE CLEAN HEADER
   ========================================================= */

body.erixclub-cms-page #wrapper .breadcrumb,
body.erixclub-cms-page #main .breadcrumb,
body.erixclub-cms-page #main .page-header,
body.erixclub-cms-page #main header.page-header,
body.erixclub-cms-page #main h1.page-heading,
body.erixclub-cms-page #main .page-heading,
body.erixclub-cms-page #main .page-title,
body.erixclub-cms-page #content-wrapper h1:first-child,
body.erixclub-cms-page .page-cms h1:first-child,
body.erixclub-cms-page .cms-page h1:first-child {
  display: none !important;
}

body.erixclub-cms-page #wrapper,
body.erixclub-cms-page #content-wrapper,
body.erixclub-cms-page #main,
body.erixclub-cms-page .page-content,
body.erixclub-cms-page .cms-page,
body.erixclub-cms-page .page-cms {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.erixclub-cms-page [data-erixclub-widget]:first-child,
body.erixclub-cms-page .page-content > p:first-child,
body.erixclub-cms-page .page-content > div:first-child {
  margin-top: 0 !important;
}

/* =========================================================
   ERIX CLUB - FIX CMS WIDGETS / LANDING
   Añadir AL FINAL de erixclub.css
   ========================================================= */

/* Evita que cualquier imagen dinámica se dispare de tamaño */
[data-erixclub-widget] img {
  max-width: 100%;
  height: auto;
}

/* Separación correcta del bloque de puntos */
[data-erixclub-widget="balance"] {
  display: block;
  width: 100%;
  margin: 28px 0 38px;
}

/* Tarjeta principal de puntos */
[data-erixclub-widget="balance"] .erixclub-widget,
[data-erixclub-widget="balance"] .erixclub-balance-card {
  width: 100%;
}

/* Fuerza moneda pequeña en el bloque de saldo */
[data-erixclub-widget="balance"] img,
.erixclub-balance-card img,
.erixclub-points-line img {
  width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  display: inline-block !important;
}

/* Mejora visual del bloque de puntos */
.erixclub-balance-card {
  border: 1px solid #e4e4e4;
  background: #fff;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.erixclub-balance-card h2 {
  margin: 0 0 10px;
  color: #222;
  font-size: 28px;
  font-weight: 800;
}

.erixclub-points-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.erixclub-points-line strong {
  color: #222;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.erixclub-widget-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botones separados y con estilo */
.erixclub-widget-actions a,
.erixclub-widget-actions button,
.erixclub-btn,
.erixclub-reward-action button,
.erixclub-reward-action a {
  display: inline-block;
  padding: 11px 18px;
  border: 0;
  border-radius: 3px;
  background: #71b5d2;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.erixclub-widget-actions a:hover,
.erixclub-widget-actions button:hover,
.erixclub-btn:hover,
.erixclub-reward-action button:hover,
.erixclub-reward-action a:hover {
  background: #31708f;
  color: #fff !important;
  text-decoration: none !important;
}

.erixclub-widget-actions a+a,
.erixclub-widget-actions button+button {
  margin-left: 0;
}

/* Tienda de puntos */
[data-erixclub-widget="shop"] {
  display: block;
  width: 100%;
  margin-top: 20px;
}

.erixclub-widget-shop {
  width: 100%;
}

.erixclub-widget-shop h2 {
  margin: 0 0 20px;
  color: #222;
  font-size: 26px;
  font-weight: 800;
}

/* Grid de recompensas */
.erixclub-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

/* Tarjeta de recompensa */
.erixclub-reward-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #e4eef3;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .035);
  overflow: hidden;
}

/* Imagen de producto */
.erixclub-reward-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  padding: 14px;
  background: #fff;
  overflow: hidden;
}

.erixclub-reward-image {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 190px !important;
  object-fit: contain !important;
  margin: 0 auto;
}

/* Cuerpo de la tarjeta */
.erixclub-reward-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}

.erixclub-reward-body h3 {
  margin: 0 0 8px;
  color: #222;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.erixclub-reward-body p {
  margin: 0 0 10px;
  color: #666;
  line-height: 1.45;
}

.erixclub-reward-points {
  margin: 8px 0 14px;
  color: #31708f;
  font-size: 15px;
  font-weight: 800;
}

.erixclub-reward-action {
  margin-top: auto;
}

.erixclub-reward-action form {
  margin: 0;
}

.erixclub-reward-action button {
  width: 100%;
}

/* Avisos del widget */
.erixclub-widget-loading,
.erixclub-widget-notice,
.erixclub-widget-result {
  padding: 18px;
  border: 1px dashed #cbdde5;
  background: #f7fbfd;
  color: #31708f;
  text-align: center;
}

/* Responsive */
@media (max-width: 767px) {
  .erixclub-balance-card {
    display: block;
    padding: 22px;
  }

  .erixclub-widget-actions {
    display: block;
    margin-top: 16px;
  }

  .erixclub-widget-actions a,
  .erixclub-widget-actions button,
  .erixclub-btn,
  .erixclub-reward-action button,
  .erixclub-reward-action a {
    width: 100%;
    margin-bottom: 8px;
  }

  .erixclub-points-line strong {
    font-size: 28px;
  }

  .erixclub-reward-grid {
    grid-template-columns: 1fr;
  }

  .erixclub-reward-image-wrap {
    height: 190px;
  }

  .erixclub-reward-image {
    max-height: 170px !important;
  }
}

/* =========================================================
   ERIX CLUB - REWARD CARD PREMIUM
   Añadir AL FINAL de erixclub.css
   ========================================================= */

.erixclub-widget-shop {
  padding: 0;
}

.erixclub-widget-shop h2 {
  margin-bottom: 22px;
  font-size: 28px;
  font-weight: 800;
}

.erixclub-reward-card {
  border-radius: 6px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.erixclub-reward-card:hover {
  transform: translateY(-3px);
  border-color: #c7e3ef;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.erixclub-reward-image-wrap {
  border-bottom: 1px solid #edf3f6;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.erixclub-reward-body h3 {
  min-height: 44px;
}

.erixclub-reward-points {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0f8fb;
  color: #31708f;
  font-size: 14px;
}

.erixclub-reward-points::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  background-image: url('/img/cms/punto-elite.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.erixclub-reward-action button,
.erixclub-reward-action a {
  border-radius: 4px;
  width: 100%;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.erixclub-widget-shop .erixclub-widget-notice {
  margin-top: 12px;
}

/* =========================================================
   ERIX CLUB - BALANCE WIDGET PREMIUM
   Añadir AL FINAL de erixclub.css
   ========================================================= */

[data-erixclub-widget="balance"] {
  margin: 34px 0 42px;
}

[data-erixclub-widget="balance"] .erixclub-widget-kicker {
  color: #71b5d2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.erixclub-balance-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9edf5;
  border-radius: 6px;
  background:
    radial-gradient(circle at top right, rgba(113, 181, 210, .16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 100%);
}

.erixclub-balance-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  background-image: url('/img/cms/punto-elite.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .06;
  pointer-events: none;
}

.erixclub-balance-card>* {
  position: relative;
  z-index: 1;
}

.erixclub-balance-card h2 {
  font-size: 30px;
  line-height: 1.15;
}

.erixclub-points-line {
  align-items: center;
}

.erixclub-points-line img {
  width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  max-height: 58px !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18));
}

.erixclub-points-line strong {
  font-size: 42px;
  color: #222;
}

.erixclub-points-line span {
  font-weight: 700;
  color: #555;
}

.erixclub-balance-card p {
  color: #666;
  font-size: 15px;
}

.erixclub-balance-card p strong {
  color: #222;
}

.erixclub-widget-actions {
  justify-content: flex-end;
}

.erixclub-widget-actions .erixclub-btn,
.erixclub-widget-actions a,
.erixclub-widget-actions button {
  min-width: 175px;
}

@media (max-width: 767px) {
  .erixclub-balance-card::before {
    width: 180px;
    height: 180px;
    right: -70px;
    bottom: -70px;
  }

  .erixclub-balance-card h2 {
    font-size: 25px;
  }

  .erixclub-points-line strong {
    font-size: 34px;
  }

  .erixclub-widget-actions {
    justify-content: flex-start;
  }

  .erixclub-widget-actions .erixclub-btn,
  .erixclub-widget-actions a,
  .erixclub-widget-actions button {
    min-width: 0;
  }
}

/* =========================================================
   ERIX CLUB - FIX MENSAJE CARRITO
   ========================================================= */

.erixclub-cart-message,
.erixclub-cart-message--summary,
.erixclub-cart-box,
.alert-erixclub,
.erixclub-cart-reward-message {
  overflow: hidden;
}

/* Evita que la moneda del mensaje del carrito salga gigante */
.erixclub-cart-message img,
.erixclub-cart-message--summary img,
.erixclub-cart-box img,
.alert-erixclub img,
.erixclub-cart-reward-message img,
.cart-summary img[src*="punto-elite"],
#js-checkout-summary img[src*="punto-elite"],
.cart-grid-right img[src*="punto-elite"] {
  width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 8px !important;
}

/* =========================================================
   ERIX CLUB - FIX GLOBAL MONEDA PUNTOS ELITE
   Evita monedas gigantes en carrito, productos y widgets
   ========================================================= */

img[src*="punto-elite.png"],
img[src*="punto-elite"],
.erixclub-coin-icon,
.erixclub-menu-icon {
  width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Moneda algo mayor solo en tarjetas principales de saldo */
.erixclub-points-line img[src*="punto-elite"],
.erixclub-stat-value img[src*="punto-elite"] {
  width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  max-height: 54px !important;
}

/* Moneda pequeña dentro de productos, carrito, resumen y mensajes */
.product-miniature img[src*="punto-elite"],
.product-description img[src*="punto-elite"],
.product-actions img[src*="punto-elite"],
.product-prices img[src*="punto-elite"],
.product-information img[src*="punto-elite"],
.cart-grid img[src*="punto-elite"],
.cart-summary img[src*="punto-elite"],
.cart-item img[src*="punto-elite"],
.cart-overview img[src*="punto-elite"],
#cart img[src*="punto-elite"],
#js-cart img[src*="punto-elite"],
#js-checkout-summary img[src*="punto-elite"],
.erixclub-cart-box img[src*="punto-elite"],
.erixclub-message img[src*="punto-elite"] {
  width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 6px !important;
}

/* En la tienda de recompensas, la moneda de la etiqueta de puntos */
.erixclub-reward-points img[src*="punto-elite"],
.erixclub-reward-points::before {
  width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  max-height: 18px !important;
}

/* =========================================================
   ERIX CLUB - FIX ZONA PRIVADA ACCOUNT
   ========================================================= */

.erixclub-account {
  width: 100%;
  margin-bottom: 40px;
}

/* Banner de la zona privada */
.erixclub-account .erixclub-hero {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 22px;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}

.erixclub-account .erixclub-hero__img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center center;
}

/* Tarjetas resumen */
.erixclub-account-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
  clear: both;
}

.erixclub-account-summary .erixclub-stat {
  min-height: 118px;
  padding: 18px;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.erixclub-account-summary .erixclub-stat span {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.erixclub-account-summary .erixclub-stat strong {
  display: block;
  margin: 0;
  color: #222;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.erixclub-account-summary .erixclub-stat small {
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 13px;
}

.erixclub-stat-value {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.erixclub-stat-value .erixclub-coin-icon {
  width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
}

/* Caja convertir puntos */
.erixclub-redeem {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.erixclub-redeem h2,
.erixclub-vouchers h2,
.erixclub-history h2 {
  margin: 0 0 16px;
  color: #222;
  font-size: 22px;
  font-weight: 800;
}

.erixclub-redeem .form-control {
  max-width: 100%;
}

/* Tablas */
.erixclub-vouchers,
.erixclub-history {
  margin-top: 26px;
}

.erixclub-vouchers table,
.erixclub-history table {
  width: 100%;
  background: #fff;
}

/* Responsive */
@media (max-width: 991px) {
  .erixclub-account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .erixclub-account .erixclub-hero {
    max-height: none;
  }

  .erixclub-account .erixclub-hero__img {
    max-height: none;
    object-fit: contain;
  }

  .erixclub-account-summary {
    grid-template-columns: 1fr;
  }

  .erixclub-account-summary .erixclub-stat {
    min-height: 0;
  }
}

/* =========================================================
   ERIX CLUB - BANNER ACCOUNT COMPLETO SIN RECORTE
   ========================================================= */

.erixclub-account .erixclub-hero {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  border-radius: 4px;
  overflow: visible !important;
  background: transparent !important;
}

.erixclub-account .erixclub-hero__img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
