/* public/css/style_hakkuma_benefit.css*/
@charset "utf-8";

/* ==========================================================
   Hakkuma Benefit - estilos consolidados
   - Sin directivas Blade dentro del CSS
   - Selectores repetidos unificados
   - Un solo bloque por resolución
   ========================================================== */

.bg-white {
  background-color: #fff !important;
}

.bg-yellow {
  background-color: #fab80e !important;
}

.bg-yellow2 {
  background-color: #ffda6e !important;
}

.bg-purple {
  background-color: #394395 !important;
}

.bg-purple2 {
  background-color: #8830FF !important;
}

.bg-light-purple {
  background-color: #8830FF !important;
}

.bg-gray {
  background-color: #8492A6;
}

.bg-black-20 {
  background-color: #2c2c2c !important;
}

.bg-black-40 {
  background-color: #636363 !important;
}

.bg-black-60 {
  background-color: #878787 !important;
}

.bg-black-80 {
  background-color: #c1c1c1 !important;
}

.bg-black-90 {
  background-color: #f3f3f3 !important;
}

.bg-light-green {
  background-color: #18ce08 !important;
}

.bg-label {
  background-color: #ebebeb !important;
}

.bg-label-dark {
  background-color: #cfcfcf !important;
}

.co-yellow {
  color: #fab80e !important;
}

.co-yellow2 {
  color: #ffda6e !important;
}

.co-purple {
  color: #394395 !important;
}

.co-purple2 {
  color: #8830FF !important;
}

.co-light-purple {
  color: #8830FF !important;
}

.co-gray {
  color: #8492A6 !important;
}

.co-black-20 {
  color: #2c2c2c !important;
}

.co-black-40 {
  color: #636363 !important;
}

.co-black-60 {
  color: #878787 !important;
}

.co-black-80 {
  color: #c1c1c1 !important;
}

.co-black-90 {
  color: #f3f3f3 !important;
}

.co-label {
  color: #ebebeb !important;
}

.co-label-dark {
  color: #cfcfcf !important;
}

.co-light-green {
  color: #18ce08 !important;
}

.borde-plomo-general {
  border: 1px solid #dfdfdf;
}

.cnt-btn-st {
}

.cnt-btn-st .btn-st {
  text-align: center;
  border-radius: 15px;
  cursor: pointer;
}

.cnt-btn-st a {
  text-decoration: none;
}

.cnt-btn-st .xs {
  min-width: 100px;
  height: 30px;
  padding-top: 8px;
  font-size: 16px;
}

.cnt-btn-st .sm {
  min-width: 120px;
  height: 40px;
  padding-top: 10px;
  font-size: 18px;
}

.cnt-btn-st .md {
  min-width: 150px;
  height: 50px;
  padding-top: 15px;
  font-size: 20px;
}

.cnt-btn-st .lg {
  min-width: 180px;
  height: 60px;
  padding-top: 20px;
  font-size: 22px;
}

.cnt-btn-st .btn-yellow {
  background-color: #fab80e !important;
}

.cnt-btn-st :hover .btn-yellow {
  background-color: #394395 !important;
}

.cnt-btn-st .btn-purple {
  background-color: #394395 !important;
}

.cnt-btn-st :hover .btn-purple {
  background-color: #6872c9 !important;
}

.cnt-btn-st .btn-major {
  background-color: #f1f4f2 !important;
}

.cnt-btn-st :hover .btn-major {
  background-color: #d7d7d7 !important;
}

.cnt-btn-st .btn-gray {
  background-color: #8492A6 !important;
}

.cnt-btn-st :hover .btn-gray {
  background-color: #bdc4cd !important;
}

.cnt-btn-st .btn-black-20 {
  background-color: #2c2c2c !important;
}

.cnt-btn-st :hover .btn-black-20 {
  background-color: #474545 !important;
}

.cnt-btn-st .btn-black-40 {
  background-color: #636363 !important;
}

.cnt-btn-st :hover .btn-black-40 {
  background-color: #898686 !important;
}

.cnt-btn-st .btn-black-60 {
  background-color: #878787 !important;
}

.cnt-btn-st :hover .btn-black-60 {
  background-color: #adabab !important;
}

.cnt-btn-st .btn-black-80 {
  background-color: #c1c1c1 !important;
}

.cnt-btn-st :hover .btn-black-80 {
  background-color: #dfdcdc !important;
}

.cnt-btn-st .btn-label {
  background-color: #ebebeb !important;
}

.cnt-btn-st :hover .btn-label {
  background-color: #c9c3c3 !important;
}

.cnt-btn-st .btn-label-dark {
  background-color: #cfcfcf !important;
}

.cnt-btn-st :hover .btn-label-dark {
  background-color: #9b8f8f !important;
}

.separator {
  width: 100%;
  height: 1px;
  margin: 10px 0 20px 0;
  background-color: #394395;
}

.logo_general_business {
  float: left !important;
  width: 130px !important;
}

.logo_general_business img {
  width: 100% !important;
}

.cont_header_business {
  float: left !important;
  width: calc( 100% - 130px) !important;
}

.cont_header_business .qualification {
  min-width: 200px;
}

.cont_header_business .qualification img {
  max-width: 40px;
  height: auto;
}

.cont_header_business .title {
  font-size: 22px;
}

.b-color-yellow {
  border: 1px solid #fab80e !important;
}

.b-color-purple {
  border: 1px solid #394395 !important;
}

.b-color-light-purple {
  border: 1px solid #8830FF !important;
}

.b-color-gray {
  border: 1px solid #8492A6 !important;
}

.b-color-black-20 {
  border: 1px solid #2c2c2c !important;
}

.b-color-black-40 {
  border: 1px solid #636363 !important;
}

.b-color-black-60 {
  border: 1px solid #878787 !important;
}

.b-color-black-80 {
  border: 1px solid #c1c1c1 !important;
}

.b-color-label {
  border: 1px solid #ebebeb !important;
}

.b-color-label-dark {
  border: 1px solid #cfcfcf !important;
}

body {
  overflow-x: hidden;
  background-color: #fff !important;
  color: #fff;
  line-height: 1.1 !important;
}

a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
  color: #fab80e !important;
}

ul {
  list-style: none !important;
}

.hk-icon {
  display: inline-block;
  background-image: url("/images/SpriteHakkumaBenefit.png");
  background-repeat: no-repeat;
}

.hk-icon-sm {
  width: 32px;
  height: 32px;
  background-size: 800px 800px;
}

.hk-icon-md {
  width: 64px;
  height: 64px;
  background-size: 1580px 1580px;
}

.hk-icon-lg {
  width: 64px;
  height: 64px;
  background-size: 1280px 1280px;
}

.hk-sm-circle-purple-star {
  background-position: 0 0;
}

.hk-sm-circle-yellow-star {
  background-position: -32px 0;
}

.hk-sm-gift {
  background-position: -62px 0;
}

.hk-sm-letter {
  background-position: -94px 0;
}

.hk-sm-square-yellow-heart {
  background-position: -124px 0;
}

.hk-sm-square-purple-heart {
  background-position: -156px 0;
}

.hk-sm-square-yellow-star {
  background-position: -188px 0;
}

.hk-sm-square-purple-star {
  background-position: -218px 0;
}

.hk-sm-square-yellow-geopoint {
  background-position: -250px 0;
}

.hk-sm-square-purple-geopoint {
  background-position: -282px 0;
}

.hk-sm-square-yellow-gift {
  background-position: -312px 0;
}

.hk-sm-square-purple-gift {
  background-position: -342px 0;
}

.hk-sm-yellow-hand {
  background-position: -376px 0;
}

.hk-sm-purple-hand {
  background-position: -406px 0;
}

.hk-sm-purple-information {
  background-position: -438px 0;
}

.hk-sm-yellow-information {
  background-position: -470px 0;
}

.hk-sm-yellow-calendar {
  background-position: -500px 0;
}

.hk-sm-purple-calendar {
  background-position: -530px 0;
}

.hk-sm-fofi-acumula-puntos {
  background-position: 0 -32px;
}

.hk-sm-fofi-cartilla {
  background-position: -32px -32px;
}

.hk-sm-fofi-sorteo {
  background-position: -62px -32px;
}

.hk-sm-fofi-siguiente-compra {
  background-position: -94px -32px;
}

.hk-sm-fofi-cuponera {
  background-position: -124px -32px;
}

.hk-sm-fofi-promo-especial {
  background-position: -156px -32px;
}

.hk-sm-fofi-cumpleanios {
  background-position: -188px -32px;
}

.hk-sm-fofi-raspa-y-gana {
  background-position: -218px -32px;
}

.hk-sm-fofi-compra-por-frecuencia {
  background-position: -250px -32px;
}

.hk-md-square-yellow-gift {
  background-position: -61px  1px;
}

.hk-md-circle-purple-star {
  background-position: 1px 1px;
}

.fs-7 {
  font-size: 0.8rem !important;
}

.fs-8 {
  font-size: 0.7rem !important;
}

.home-loyalty-section {
  width: 100%;
  position: relative;
}

.loyalty-grid {
    align-items: stretch;
}

.loyalty-grid > .col {
    display: flex;
}

.loyalty-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;

    background: #fff;
    border: 1px solid #eceaf2;
    border-radius: 14px;

    box-shadow:
        0 5px 16px rgba(41, 36, 111, 0.08);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.loyalty-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 51, 191, 0.18);

    box-shadow:
        0 12px 28px rgba(41, 36, 111, 0.14);
}



.loyalty-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;
    object-position: center;

    background: #fff;

    transition: transform 220ms ease;
}

.loyalty-card:hover .loyalty-image {
    transform: scale(1.015);
}

.loyalty-claimable-badge {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.4rem 0.65rem;

    color: #fff;
    background:
        linear-gradient(
            135deg,
            #7139d5,
            #5022a4
        );

    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;

    box-shadow:
        0 5px 14px rgba(80, 34, 164, 0.24);
}

.business-grid {
  align-items: stretch;
}

.business-logo-box {
  height: 150px;
  aspect-ratio: auto;
  padding: 12px;
  width: 150px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 80px;
  background-color: #fff;
}

.home-index-wrapper {
  width: min(1320px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.home-loyalty-section,
.home-business-section {
  width: 100%;
  position: relative;
}

.home-section-title,
.home-business-title {
  width: 100%;
  margin: 0;
  color: #394395;
  font-weight: 700;
  line-height: 1.15;
}

.home-section-title {
  width: 100%;
  margin: 0;
  color: #394395;
  font-weight: 700;
  line-height: 1.15;
  font-size: 2.2rem;
}

.home-business-title {
  font-size: 1rem;
}

.home-section-see-all {
  float: right;
  width: 100px;
  margin-top: 0;
}

.home-section-panel {
  width: 100%;
  background-color: #fef7e6;
  padding: 16px;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.loyalty-grid,
.business-grid {
  align-items: stretch;
}

.loyalty-card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;

    min-height: 58px;
    padding: 0.55rem 0.7rem;

    background:
        linear-gradient(
            135deg,
            #ffbd18 0%,
            #f7aa00 100%
        ) !important;
}

.loyalty-card-logo-wrapper {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 4px;

    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 10px;
}

.loyalty-card-logo {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    background: transparent;
}

.loyalty-business-name {
    min-width: 0;
    padding-right: 2rem;

    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.15;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    text-shadow:
        0 1px 2px rgba(122, 73, 0, 0.14);
}

.loyalty-card-state-indicator {
    position: absolute;
    top: 50%;
    right: 0.7rem;

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

    width: 30px;
    height: 30px;

    color: #7139d5;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;

    transform: translateY(-50%);
    box-shadow: 0 3px 8px rgba(100, 52, 183, 0.16);
}

.loyalty-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f8;
}

.loyalty-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: var(--hakkuma-text);
}

.loyalty-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.85rem;
}

.loyalty-type-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.4rem;

    max-width: 100%;
    margin-bottom: 0.7rem;
    padding: 0.25rem 0.6rem 0.25rem 0.3rem;

    color: #575168;
    background: #f6f3fb;
    border: 1px solid #ebe5f6;
    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
}

.loyalty-type-badge .hk-icon-sm {
    flex: 0 0 32px;
}

.loyalty-type-badge span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.loyalty-type {
  color: #878787;
  line-height: 1.1;
  margin-bottom: 6px;
  min-height: 18px;
  font-size: 1.0rem;
}

.loyalty-name {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 54px;
    margin: 0 0 0.8rem;
    padding: 0.25rem;

    color: #7139d5;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}


.loyalty-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 38px;
    margin: auto 0 0;
    padding: 0.55rem 0.8rem;

    color: #fff !important;
    border-radius: 9px;

    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.loyalty-detail-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.loyalty-detail-btn-claimable {
    background:
        linear-gradient(
            135deg,
            #6633bf,
            #432294
        );

    box-shadow:
        0 6px 14px rgba(67, 34, 148, 0.18);
}

.loyalty-detail-btn-progress {
    background:
        linear-gradient(
            135deg,
            #777582,
            #5f5d67
        );

    box-shadow:
        0 5px 12px rgba(70, 68, 78, 0.14);
}

.business-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
}

.business-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.business-card-body {
  padding: 9px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.business-name {
  margin-bottom: 8px;
  width: 100%;
  min-height: 38px;
  margin: 0 0 8px 0;
  font-size: .82rem;
  line-height: 1.08;
  font-weight: 700;
  color: #fff !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.business-info-block {
  margin-bottom: 8px;
}

.business-label {
  width: 100%;
  display: block;
  font-size: .66rem;
  line-height: 1;
  color: #f3f3f3;
  margin-bottom: 3px;
}

.business-value {
  font-size: .74rem;
  line-height: 1.1;
  color: #fff;
}

.business-stores {
  min-height: 28px;
  text-transform: lowercase;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.business-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  margin-bottom: 7px;
}

.business-stars img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.business-followers {
  font-size: .72rem;
  line-height: 1.1;
  margin-bottom: 9px;
}

.business-profile-btn {
  width: 84%;
  display: block;
  text-align: center;
  padding: 6px 4px;
  margin: 0 auto 2px auto;
  border-radius: 5px;
  font-size: .74rem;
  line-height: 1.1;
  font-weight: 600;
}

.business-empty-message {
  width: 100%;
  background-color: #ebebeb;
  color: #636363;
  padding: 12px;
  border-radius: 8px;
}

:root {
  --hakkuma-yellow: #ffb914;
  --hakkuma-yellow-dark: #f3a900;
  --hakkuma-purple: #3f3f98;
  --hakkuma-purple-dark: #29246f;
  --hakkuma-text: #28244f;
  --hakkuma-muted: #66647a;
  --hakkuma-background: #fff9ec;
  --hakkuma-card: #ffffff;
}

.hakkuma-welcome-section {
  position: relative;
  overflow: hidden;
  background-color: #fff8e8;
}

.hakkuma-welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  width: min(100%, 1200px);
  margin: 0 auto;
  background-image: url("/images/BannerQR-vWeb.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

.hakkuma-welcome-section > .container {
  position: relative;
  z-index: 1;
}

.welcome-content {
  position: relative;
  padding: 1rem 0;
}

.welcome-title {
  color: var(--hakkuma-purple-dark);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.welcome-wave {
  display: inline-block;
  font-size: 0.78em;
  transform-origin: bottom center;
  animation: hakkuma-wave 2.8s ease-in-out infinite;
}

.welcome-description {
  color: var(--hakkuma-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 108px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(63, 63, 152, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(46, 37, 104, 0.07);
  transition: transform 180ms ease,
            box-shadow 180ms ease,
            border-color 180ms ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 63, 152, 0.15);
  box-shadow: 0 16px 38px rgba(46, 37, 104, 0.12);
}

.summary-icon {
  display: inline-flex;
  flex: 0 0 66px;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 14px;
  font-size: 1.35rem;
}

.summary-icon-reward {
  color: #e99700;
  background: #fff1c6;
}

.summary-icon-loyalty {
  color: #7140c7;
  background: #eee4ff;
}

.summary-icon-points {
  color: #e1a000;
  background: #fff1bd;
}

.summary-data {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.summary-number {
  color: var(--hakkuma-purple-dark);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.summary-label {
  margin-top: 0.35rem;
  color: #57556c;
  font-size: 0.78rem;
  line-height: 1.25;
}

.hakkuma-code-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  padding: 1.5rem;
  overflow: hidden;
  background: radial-gradient(
                circle at 90% 10%,
                rgba(255, 255, 255, 0.22) 0,
                rgba(255, 255, 255, 0.22) 75px,
                transparent 76px
            ),
            linear-gradient(
                145deg,
                #ffc52d 0%,
                var(--hakkuma-yellow) 50%,
                #ffa800 100%
            );
  background-color: #fbb925;
  border: 1px solid rgba(198, 135, 0, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(174, 117, 0, 0.18);
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.code-card-title {
  color: #302537;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.code-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(48, 37, 55, 0.72);
  background: transparent;
  border: 0;
  font-size: 1rem;
}

.code-card-description {
  max-width: 280px;
  margin: 0.65rem auto 1.15rem;
  color: rgba(48, 37, 55, 0.82);
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
}

.qr-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 194px;
  height: 124px;
  margin: 0 auto;
  padding: 13px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(49, 38, 59, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(103, 68, 0, 0.14);
}

.qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease,
            transform 180ms ease;
}

.qr-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--hakkuma-purple);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  font-weight: 700;
}

.token-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  margin: 1rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.token-status-idle {
  color: #534315;
  background: rgba(255, 255, 255, 0.45);
}

.token-status-active {
  color: #17653c;
  background: #eaf9ef;
}

.token-status-error {
  color: #a32323;
  background: #fff0f0;
}

.generate-token-button {
  padding: 0.82rem 1rem;
  color: #ffffff;
  background: linear-gradient(
            135deg,
            #6633bf 0%,
            #432294 100%
        );
  border: 0;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 9px 18px rgba(67, 34, 148, 0.2);
  transition: transform 180ms ease,
            box-shadow 180ms ease,
            opacity 180ms ease;
}

.generate-token-button:hover,
    .generate-token-button:focus {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(67, 34, 148, 0.28);
}

.generate-token-button:disabled {
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.generateTokenButtonText {
  line-height: 1;
}

.code-card-help {
  margin-top: 0.8rem;
  color: rgba(48, 37, 55, 0.7);
  font-size: 0.72rem;
  text-align: center;
}

.summary-cards-row {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
}

.summary-cards-row > div {
  display: flex;
}

.summary-cards-row a {
  display: block;
  width: 100%;
}

.reward-type-mobile {
  display: none !important;
  color: #5f32b7;
  font-size: 0.88rem;
}

/* =========================================================
   Listado compacto de negocios
   ========================================================= */

.hakkuma-business-list-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hakkuma-business-list {
    align-items: flex-start;
}

.hakkuma-business-list-item {
    display: flex;
}

.hakkuma-business-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.hakkuma-business-link:hover {
    color: inherit !important;
}

.hakkuma-business-item {
    width: 100%;
    min-width: 0;
    padding: 0.5rem;
    text-align: center;
}

.hakkuma-business-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 108px;
    height: 108px;
    margin: 0 auto 0.85rem;
    padding: 8px;

    overflow: hidden;
    background-color: #fff;
    border: 1px solid #ebe8f1;
    border-radius: 50%;

    box-shadow:
        0 6px 18px rgba(41, 36, 111, 0.08),
        0 2px 6px rgba(41, 36, 111, 0.05);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.hakkuma-business-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.hakkuma-business-item-content {
    min-width: 0;
}

.hakkuma-business-item-name {
    min-height: 42px;
    margin: 0 0 0.25rem;

    color: #28244f;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.18;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hakkuma-business-item-category {
    min-height: 20px;
    margin: 0 0 0.25rem;

    color: #777387;
    font-size: 0.88rem;
    line-height: 1.2;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hakkuma-business-item-followers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;

    margin: 0;
    color: #777387;
    font-size: 0.8rem;
    line-height: 1.2;
}

.hakkuma-business-item-followers i {
    color: #ffb914;
    font-size: 0.8rem;
}

.hakkuma-business-link:hover .hakkuma-business-logo-wrapper {
    transform: translateY(-4px);
    border-color: rgba(102, 51, 191, 0.25);

    box-shadow:
        0 12px 28px rgba(41, 36, 111, 0.14),
        0 4px 10px rgba(41, 36, 111, 0.08);
}

.hakkuma-business-link:hover .hakkuma-business-item-name {
    color: #6633bf;
}

.hakkuma-business-see-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;

    color: #6633bf;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.hakkuma-business-see-all span {
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 0.7;
}

.hakkuma-business-see-all:hover {
    color: #432294 !important;
}

.hakkuma-business-item-followers.is-not-followed {
    color: #777387;
}

.hakkuma-business-item-followers.is-not-followed i {
    color: #b8b5c2;
}

.hakkuma-business-item-followers.is-followed {
    color: #777387;
}

.hakkuma-business-item-followers.is-followed i {
    color: #ffb914;
}

/* =========================================================
   Detalle moderno de fidelización
   ========================================================= */

.loyalty-detail-page {
    min-height: 100vh;
    color: var(--hakkuma-text);
    background:
        linear-gradient(
            180deg,
            rgba(255, 249, 236, 0.82) 0,
            #ffffff 240px
        );
}

.loyalty-detail-container {
    max-width: 1320px;
}

.loyalty-page-heading {
    color: var(--hakkuma-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.loyalty-page-heading-icon {
    color: var(--hakkuma-purple);
}

/* Negocio */

.loyalty-business-hero {
    padding: 1.5rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.08),
            transparent 230px
        ),
        linear-gradient(135deg, #08090d 0%, #171821 100%);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(12, 13, 22, 0.14);
}

.loyalty-business-logo-link {
    flex: 0 0 auto;
}

.loyalty-business-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    padding: 8px;
    overflow: hidden;
    background: #fff;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.loyalty-business-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.loyalty-business-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.loyalty-business-stars img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.loyalty-business-rating {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.loyalty-rating-info {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.loyalty-business-name-link:hover {
    color: #fff !important;
}

.loyalty-business-name {
    color: #fff;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
}

.loyalty-business-followers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.loyalty-follow-button,
.loyalty-following-button {
    min-width: 130px;
    padding: 0.7rem 1.15rem;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    font-weight: 700;
}

.loyalty-follow-button:hover,
.loyalty-following-button:hover {
    color: #191922;
    background: #fff;
}

/* Resumen de fidelización */

.loyalty-summary-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceaf2;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(41, 36, 111, 0.08);
}

.loyalty-summary-image-box {
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    background: #f7f7fa;
}

.loyalty-summary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loyalty-summary-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3.25rem);
}

.loyalty-summary-type {
    color: #514d62;
    font-size: 0.95rem;
    font-weight: 700;
}

.loyalty-summary-title {
    margin: 0 0 1rem;
    color: var(--hakkuma-purple);
    font-size: clamp(1.6rem, 2.3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
}

.loyalty-summary-description {
    margin: 0 0 1.5rem;
    color: #777387;
    font-size: 0.95rem;
    line-height: 1.5;
}

.loyalty-summary-data-list {
    display: grid;
    gap: 1.2rem;
}

.loyalty-summary-data-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.loyalty-summary-data-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #6935c7;
    background: #f0eaff;
    border-radius: 12px;
    font-size: 1rem;
}

.loyalty-summary-data-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #888494;
    font-size: 0.8rem;
}

.loyalty-summary-data-value {
    display: block;
    color: #514d62;
    font-size: 0.95rem;
}

.loyalty-summary-points {
    display: block;
    color: #7139d5;
    font-size: 1.35rem;
    font-weight: 800;
}

.loyalty-status-badge {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.loyalty-status-badge.is-published {
    color: #167747;
    background: #dcf8e8;
}

.loyalty-status-badge.is-inactive {
    color: #725d23;
    background: #fff2c7;
}

/* Secciones */

.loyalty-section-card {
    padding: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceaf2;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(41, 36, 111, 0.07);
}

.loyalty-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.loyalty-section-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #6935c7;
    background: #f0eaff;
    border-radius: 14px;
    font-size: 1.15rem;
}

.loyalty-section-title {
    color: var(--hakkuma-text);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.loyalty-section-subtitle {
    color: #7d798b;
    font-size: 0.85rem;
    line-height: 1.35;
}

/* Tabla */

.loyalty-ticket-table-wrapper {
    border: 1px solid #efedf4;
    border-radius: 14px;
}

.loyalty-ticket-table {
    min-width: 760px;
    color: #514d62;
}

.loyalty-ticket-table thead th {
    padding: 0.85rem;
    color: #fff;
    background:
        linear-gradient(135deg, #7139d5, #5325a8);
    border: 0;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.loyalty-ticket-table thead th:first-child {
    border-radius: 13px 0 0;
}

.loyalty-ticket-table thead th:last-child {
    border-radius: 0 13px 0 0;
}

.loyalty-ticket-table tbody td {
    padding: 0.85rem;
    border-color: #efedf4;
    font-size: 0.84rem;
    vertical-align: middle;
}

.loyalty-ticket-table tbody tr:nth-child(even) {
    background: #fcfbfe;
}

.loyalty-ticket-points {
    display: inline-flex;
    flex-direction: column;
    min-width: 82px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    background:
        linear-gradient(135deg, #ffba1a, #f09a00);
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(240, 154, 0, 0.2);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.loyalty-ticket-points small {
    margin-top: 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.loyalty-points-total {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.9rem;
    color: #5f32b7;
    background: #f6f2ff;
    border-radius: 12px;
    font-size: 1.3rem;
}

.loyalty-points-total i {
    color: var(--hakkuma-yellow);
}

.loyalty-points-total strong {
    font-size: 1.4rem;
}

/* Premios */

.loyalty-prize-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceaf2;
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(41, 36, 111, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.loyalty-prize-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 28px rgba(41, 36, 111, 0.13);
}

.loyalty-prize-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f5f5f8;
}

.loyalty-prize-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.loyalty-prize-available-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.4rem 0.7rem;
    color: #fff;
    background: #6633bf;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

.loyalty-prize-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.loyalty-prize-name {
    margin: 0 0 0.45rem;
    color: var(--hakkuma-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.loyalty-prize-description {
    margin: 0 0 0.75rem;
    color: #777387;
    font-size: 0.82rem;
    line-height: 1.4;
}

.loyalty-prize-cost {
    margin-bottom: 1rem;
    color: #7139d5;
    font-size: 1.35rem;
    font-weight: 800;
}

.loyalty-prize-cost span {
    font-size: 0.78rem;
    font-weight: 700;
}

.loyalty-prize-claim-button {
    padding: 0.7rem 1rem;
    color: #fff;
    background:
        linear-gradient(135deg, #ffba1a, #f3a300);
    border: 0;
    border-radius: 9px;
    font-weight: 700;
}

.loyalty-prize-claim-button:hover {
    color: #fff;
    background:
        linear-gradient(135deg, #f3a300, #e89300);
}

.loyalty-prize-locked-button {
    padding: 0.7rem 1rem;
    color: #fff;
    background: #aaa7b1;
    border: 0;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 1;
}

.loyalty-empty-state {
    padding: 2.5rem 1rem;
    color: #858190;
    background: #faf9fc;
    border: 1px dashed #dcd8e7;
    border-radius: 14px;
    text-align: center;
}

.loyalty-empty-state i {
    display: block;
    margin-bottom: 0.75rem;
    color: #aaa2bb;
    font-size: 2rem;
}

.loyalty-security-message {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    color: #5f5481;
    background: #f7f3ff;
    border: 1px solid #e6ddfa;
    border-radius: 14px;
}

.loyalty-security-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #6935c7;
    background: #ece3ff;
    border-radius: 12px;
}

.loyalty-security-message strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #51447c;
    font-size: 0.9rem;
}

.loyalty-security-message p {
    color: #756d88;
    font-size: 0.78rem;
    line-height: 1.35;
}

.loyalty-summary-progress {
    width: min(100%, 280px);
    height: 9px;
    overflow: hidden;
    background: #eeeaf7;
    border-radius: 999px;
}

.loyalty-summary-progress .progress-bar {
    background:
        linear-gradient(
            90deg,
            var(--hakkuma-yellow),
            #f39a00
        );
    border-radius: inherit;
}

/* =========================================================
   Detalle de fidelización: Cartilla
   ========================================================= */

.loyalty-card-groups {
    display: grid;
    gap: 1.5rem;
}

.loyalty-stamp-card {
    padding: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceaf2;
    border-radius: 18px;
}

.loyalty-stamp-card.is-active {
    box-shadow: 0 8px 24px rgba(41, 36, 111, 0.07);
}

.loyalty-stamp-card.is-completed {
    border-color: #cfeedd;
    box-shadow: 0 10px 28px rgba(22, 119, 71, 0.10);
}

.loyalty-stamp-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.loyalty-stamp-card-number {
    display: block;
    margin-bottom: 0.3rem;
    color: #8a8595;
    font-size: 0.78rem;
    font-weight: 700;
}

.loyalty-stamp-card-title {
    margin: 0 0 0.35rem;
    color: var(--hakkuma-text);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.loyalty-stamp-card-description {
    color: #777387;
    font-size: 0.88rem;
    line-height: 1.4;
}

.loyalty-stamp-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.loyalty-stamp-status.is-active {
    color: #725d23;
    background: #fff2c7;
}

.loyalty-stamp-status.is-completed {
    color: #167747;
    background: #dcf8e8;
}

.loyalty-stamp-progress-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.loyalty-stamp-progress {
    flex: 1;
    height: 10px;
    overflow: hidden;
    background: #eeeaf7;
    border-radius: 999px;
}

.loyalty-stamp-progress .progress-bar {
    background:
        linear-gradient(
            90deg,
            var(--hakkuma-yellow),
            #f39a00
        );
    border-radius: inherit;
}

.loyalty-stamp-progress-row strong {
    flex: 0 0 auto;
    color: #5f32b7;
    font-size: 0.9rem;
}

.loyalty-stamps-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.loyalty-stamp-item {
    padding: 0.8rem;
    text-align: center;
    background: #faf9fc;
    border: 1px solid #eceaf2;
    border-radius: 14px;
}

.loyalty-stamp-item.is-earned {
    background: #fff9e9;
    border-color: #ffe08c;
}

.loyalty-stamp-item.is-pending {
    opacity: 0.72;
}

.loyalty-stamp-ticket {
    position: relative;
    width: 110px;
    max-width: 100%;
    margin: 0 auto 0.45rem;
}

.loyalty-stamp-ticket img {
    display: block;
    width: 100%;
    height: auto;
}

.loyalty-stamp-ticket span {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.loyalty-stamp-item small {
    color: #817c8d;
    font-size: 0.7rem;
    font-weight: 600;
}

.loyalty-stamp-item.is-earned small {
    color: #9b6900;
}

.loyalty-card-prize {
    display: grid;
    grid-template-columns: 150px 1fr 210px;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background:
        linear-gradient(
            135deg,
            #faf8ff 0%,
            #fff 100%
        );
    border: 1px solid #e9e4f3;
    border-radius: 16px;
}

.loyalty-card-prize-image-box {
    overflow: hidden;
    background: #f5f5f8;
    border-radius: 12px;
}

.loyalty-card-prize-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.loyalty-card-prize-content {
    min-width: 0;
}

.loyalty-card-prize-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #7139d5;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loyalty-card-prize-name {
    margin: 0 0 0.35rem;
    color: var(--hakkuma-text);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.loyalty-card-prize-description {
    margin: 0;
    color: #777387;
    font-size: 0.82rem;
    line-height: 1.4;
}

.loyalty-card-prize-action {
    min-width: 0;
}

.loyalty-table-card-reference {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.loyalty-table-card-reference strong {
    color: var(--hakkuma-text);
    font-size: 0.82rem;
    line-height: 1.2;
}

.loyalty-table-card-status {
    display: inline-flex;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
}

.loyalty-table-card-status.is-active {
    color: #725d23;
    background: #fff2c7;
}

.loyalty-table-card-status.is-completed {
    color: #167747;
    background: #dcf8e8;
}

/* =========================================================
   Home: histórico de sorteos
   ========================================================= */

.raffle-history-section {
    width: 100%;
}

.raffle-history-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.raffle-history-heading-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: #7139d5;
    background: #eee6ff;
    border-radius: 12px;

    font-size: 1rem;
}

.raffle-history-title {
    color: var(--hakkuma-purple);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
}

.raffle-history-description {
    color: #777387;
    font-size: 0.86rem;
    line-height: 1.4;
}

.raffle-history-total {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;

    padding: 0.42rem 0.7rem;

    color: #625d6d;
    background: #f3f1f6;
    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 700;
}

.raffle-history-panel {
    width: 100%;
    padding: 1rem;

    background:
        linear-gradient(
            135deg,
            #f8f6fc 0%,
            #f2eff8 100%
        );

    border: 1px solid #e9e4f1;
    border-radius: 18px;
}

/*
 * La regla general de loyalty-card-header utiliza !important,
 * por eso este modificador también lo necesita.
 */
.raffle-history-card .loyalty-card-header {
    background:
        linear-gradient(
            135deg,
            #5b35aa 0%,
            #37236f 100%
        ) !important;
}

.raffle-history-header-icon {
    position: absolute;
    top: 50%;
    right: 0.7rem;

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

    width: 30px;
    height: 30px;

    color: #167747;
    background: #dcf8e8;
    border-radius: 50%;

    transform: translateY(-50%);
}

.raffle-history-finished-badge {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.4rem 0.65rem;

    color: #fff;
    background:
        linear-gradient(
            135deg,
            #7139d5,
            #5022a4
        );

    border-radius: 999px;

    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;

    box-shadow:
        0 5px 14px rgba(80, 34, 164, 0.24);
}

.raffle-history-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 16 / 9;

    color: #8d83a6;
    background:
        linear-gradient(
            135deg,
            #f4f0fb,
            #e9e2f5
        );

    font-size: 2rem;
}

.raffle-history-date {
    display: flex;
    align-items: center;
    gap: 0.65rem;

    margin-bottom: 0.8rem;
    padding: 0.65rem 0.7rem;

    color: #675f78;
    background: #f7f5fa;
    border: 1px solid #ece7f3;
    border-radius: 10px;
}

.raffle-history-date > i {
    flex: 0 0 auto;

    color: #7139d5;
    font-size: 1rem;
}

.raffle-history-date span {
    display: block;

    color: #8a8595;
    font-size: 0.62rem;
    line-height: 1.2;
}

.raffle-history-date strong {
    display: block;
    margin-top: 0.15rem;

    color: #514d62;
    font-size: 0.72rem;
    line-height: 1.25;
}

.raffle-history-result-button {
    color: #fff !important;
    background:
        linear-gradient(
            135deg,
            #7139d5,
            #5022a4
        );

    box-shadow:
        0 6px 14px rgba(80, 34, 164, 0.2);
}

.raffle-history-result-button:hover {
    color: #fff !important;
    background:
        linear-gradient(
            135deg,
            #5f2fba,
            #402080
        );

    box-shadow:
        0 9px 20px rgba(80, 34, 164, 0.28);
}


/* =========================================================
   Sorteo: transparencia y ganador
   ========================================================= */

.loyalty-raffle-transparency-note {
    display: flex;
    align-items: center;
    gap: 0.9rem;

    margin-bottom: 1.25rem;
    padding: 1rem;

    color: #51447c;
    background:
        linear-gradient(
            135deg,
            #f7f3ff,
            #fcfaff
        );

    border: 1px solid #e5dcf7;
    border-radius: 14px;
}

.loyalty-raffle-transparency-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: #6935c7;
    background: #e9e0ff;
    border-radius: 12px;
}

.loyalty-raffle-transparency-note strong {
    display: block;
    margin-bottom: 0.25rem;

    color: #51447c;
    font-size: 0.88rem;
}

.loyalty-raffle-transparency-note p {
    color: #756d88;
    font-size: 0.76rem;
    line-height: 1.4;
}

.loyalty-raffle-winner-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;

    margin-top: auto;
    margin-bottom: 1rem;
    padding: 1rem;

    background:
        linear-gradient(
            135deg,
            #fff9e8,
            #fffdf7
        );

    border: 1px solid #f3df9c;
    border-radius: 14px;
}

.loyalty-raffle-winner-avatar {
    display: flex;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    overflow: hidden;
    color: #7139d5;
    background: #eee6ff;
    border: 3px solid #fff;
    border-radius: 50%;

    box-shadow:
        0 5px 14px rgba(41, 36, 111, 0.14);
}

.loyalty-raffle-winner-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loyalty-raffle-winner-avatar i {
    font-size: 1.3rem;
}

.loyalty-raffle-winner-data {
    min-width: 0;
}

.loyalty-raffle-winner-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;

    margin-bottom: 0.25rem;

    color: #96711b;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loyalty-raffle-winner-label i {
    color: #ffb914;
}

.loyalty-raffle-winner-name {
    display: block;

    color: var(--hakkuma-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.loyalty-raffle-winner-nickname {
    display: block;
    margin-top: 0.2rem;

    color: #85808e;
    font-size: 0.72rem;
}

.loyalty-raffle-winning-ticket {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    margin-top: 0.55rem;
    padding: 0.4rem 0.65rem;

    color: #fff;
    background:
        linear-gradient(
            135deg,
            #7139d5,
            #5022a4
        );

    border-radius: 8px;

    font-size: 0.72rem;
    font-weight: 700;

    box-shadow:
        0 4px 10px rgba(80, 34, 164, 0.18);
}

.loyalty-raffle-user-winner-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    margin-bottom: 0.75rem;
    padding: 0.7rem;

    color: #167747;
    background: #dcf8e8;
    border: 1px solid #c6ebd5;
    border-radius: 9px;

    font-size: 0.78rem;
    font-weight: 700;
}

.loyalty-raffle-result-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    margin-top: auto;
    padding: 0.72rem 1rem;

    border-radius: 9px;

    font-size: 0.78rem;
    font-weight: 700;
}

.loyalty-raffle-result-status.is-pending {
    color: #725d23;
    background: #fff2c7;
    border: 1px solid #f0dfa8;
}

.loyalty-raffle-result-status.is-redeemed {
    color: #167747;
    background: #dcf8e8;
    border: 1px solid #cbeed9;
}

/* =========================================================
   Detalle de fidelización: Sorteo
   ========================================================= */

/* Fecha y cuenta regresiva */

.loyalty-raffle-countdown-card {
    position: relative;
    padding: clamp(1.25rem, 3vw, 2rem);
    overflow: hidden;

    color: #fff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.13),
            transparent 220px
        ),
        linear-gradient(
            135deg,
            #29246f 0%,
            #4f299f 55%,
            #7139d5 100%
        );

    border-radius: 22px;

    box-shadow:
        0 16px 40px rgba(41, 36, 111, 0.2);
}

.loyalty-raffle-countdown-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.loyalty-raffle-countdown-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loyalty-raffle-countdown-icon {
    display: flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    color: #4b3181;
    background:
        linear-gradient(
            135deg,
            #ffd458,
            #ffb914
        );

    border-radius: 17px;
    font-size: 1.4rem;

    box-shadow:
        0 9px 20px rgba(255, 185, 20, 0.25);
}

.loyalty-raffle-countdown-label {
    display: block;
    margin-bottom: 0.25rem;

    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.loyalty-raffle-countdown-title {
    margin: 0;

    color: #fff;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
}

.loyalty-raffle-date-panel {
    display: flex;
    flex-direction: column;
    min-width: 260px;
    padding: 1rem 1.2rem;

    color: #4c3577;
    background: rgba(255, 255, 255, 0.95);

    border-radius: 16px;

    box-shadow:
        0 10px 28px rgba(25, 16, 63, 0.2);
}

.loyalty-raffle-date-label {
    margin-bottom: 0.4rem;

    color: #82768f;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.loyalty-raffle-date {
    color: #3f3472;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.loyalty-raffle-time {
    margin-top: 0.25rem;

    color: #7139d5;
    font-size: 0.95rem;
}

.loyalty-raffle-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    margin-top: 1.5rem;
}

.loyalty-raffle-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 92px;
    min-height: 84px;
    padding: 0.7rem;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;

    backdrop-filter: blur(7px);
}

.loyalty-raffle-countdown-unit strong {
    color: #ffd058;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.loyalty-raffle-countdown-unit span {
    margin-top: 0.45rem;

    color: rgba(255, 255, 255, 0.75);
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.loyalty-raffle-countdown-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    font-weight: 800;
}

.loyalty-raffle-countdown.is-finished
.loyalty-raffle-countdown-unit strong {
    color: rgba(255, 255, 255, 0.72);
}

.loyalty-raffle-countdown-message {
    margin-top: 1rem;

    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    text-align: center;
}

/* Resumen y búsqueda de tickets */

.loyalty-raffle-ticket-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: 1rem;
    padding: 0.9rem 1rem;

    color: #514d62;
    background:
        linear-gradient(
            135deg,
            #faf8ff,
            #f6f1ff
        );

    border: 1px solid #e8e0f7;
    border-radius: 14px;
}

.loyalty-raffle-ticket-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.loyalty-raffle-ticket-stat span {
    color: #777387;
    font-size: 0.8rem;
}

.loyalty-raffle-ticket-stat strong {
    color: #7139d5;
    font-size: 1.35rem;
}

.loyalty-raffle-ticket-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    color: #6d6878;
    font-size: 0.78rem;
}

.loyalty-raffle-ticket-range i {
    color: #ffb914;
}

.loyalty-raffle-ticket-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: 1rem;
}

.loyalty-raffle-ticket-search {
    position: relative;
    width: min(100%, 340px);
}

.loyalty-raffle-ticket-search i {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    z-index: 2;

    color: #8a8595;

    transform: translateY(-50%);
}

.loyalty-raffle-ticket-search .form-control {
    min-height: 42px;
    padding-left: 2.5rem;

    color: #514d62;
    background: #faf9fc;
    border: 1px solid #e7e3ed;
    border-radius: 11px;

    font-size: 0.8rem;
}

.loyalty-raffle-ticket-search .form-control:focus {
    background: #fff;
    border-color: #9d78dc;

    box-shadow:
        0 0 0 3px rgba(113, 57, 213, 0.1);
}

.loyalty-raffle-ticket-results {
    color: #817c8d;
    font-size: 0.75rem;
}

/* Cuadrícula de tickets */

.loyalty-raffle-ticket-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.75rem;
}

.loyalty-raffle-ticket {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 62px;
    overflow: hidden;

    color: #fff;
    background:
        linear-gradient(
            135deg,
            #ffba1a,
            #ed9800
        );

    border: 1px solid #eda100;
    border-radius: 11px;

    box-shadow:
        0 5px 14px rgba(237, 152, 0, 0.16);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.loyalty-raffle-ticket::before,
.loyalty-raffle-ticket::after {
    content: "";
    position: absolute;
    left: 43px;

    width: 13px;
    height: 13px;

    background: #fff;
    border-radius: 50%;
}

.loyalty-raffle-ticket::before {
    top: -7px;
}

.loyalty-raffle-ticket::after {
    bottom: -7px;
}

.loyalty-raffle-ticket:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(237, 152, 0, 0.24);
}

.loyalty-raffle-ticket-barcode {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;

    color: #675a45;
    background: #fff9e7;

    border-right: 1px dashed rgba(98, 73, 25, 0.28);
    font-size: 1.15rem;
}

.loyalty-raffle-ticket-number {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 0.6rem;
    text-align: center;
}

.loyalty-raffle-ticket-number span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.loyalty-raffle-ticket-number strong {
    margin-top: 0.18rem;

    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.loyalty-raffle-show-more-button {
    min-width: 180px;
    padding: 0.7rem 1rem;

    color: #6633bf;
    background: #f4efff;
    border: 1px solid #dfd2f6;
    border-radius: 10px;

    font-size: 0.8rem;
    font-weight: 700;
}

.loyalty-raffle-show-more-button:hover {
    color: #fff !important;
    background: #6633bf;
    border-color: #6633bf;
}

/* Premios */

.loyalty-raffle-prize-card {
    display: flex;
    height: 100%;
    overflow: hidden;

    background: #fff;
    border: 1px solid #eceaf2;
    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(41, 36, 111, 0.08);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.loyalty-raffle-prize-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 32px rgba(41, 36, 111, 0.14);
}

.loyalty-raffle-prize-card.is-featured {
    display: grid;
    grid-template-columns:
        minmax(320px, 1.15fr)
        minmax(320px, 0.85fr);

    border: 2px solid rgba(255, 185, 20, 0.6);

    box-shadow:
        0 14px 36px rgba(41, 36, 111, 0.12),
        0 0 0 4px rgba(255, 185, 20, 0.08);
}

.loyalty-raffle-prize-card.is-secondary {
    flex-direction: column;
}

.loyalty-raffle-prize-image-wrapper {
    position: relative;
    min-height: 230px;
    overflow: hidden;

    background: #f5f5f8;
}

.loyalty-raffle-prize-card.is-featured
.loyalty-raffle-prize-image-wrapper {
    min-height: 330px;
}

.loyalty-raffle-prize-image {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.loyalty-raffle-prize-position {
    position: absolute;
    right: 12px;
    bottom: 12px;

    padding: 0.45rem 0.7rem;

    color: #fff;
    background:
        linear-gradient(
            135deg,
            #7139d5,
            #5022a4
        );

    border-radius: 9px;

    font-size: 0.72rem;
    font-weight: 800;

    box-shadow:
        0 5px 14px rgba(80, 34, 164, 0.24);
}

.loyalty-raffle-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.48rem 0.75rem;

    color: #4f3711;
    background:
        linear-gradient(
            135deg,
            #ffd65f,
            #ffb914
        );

    border-radius: 9px;

    font-size: 0.72rem;
    font-weight: 800;

    box-shadow:
        0 6px 16px rgba(255, 185, 20, 0.25);
}

.loyalty-raffle-prize-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.loyalty-raffle-prize-card.is-featured
.loyalty-raffle-prize-content {
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.loyalty-raffle-prize-kicker {
    margin-bottom: 0.4rem;

    color: #7139d5;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.loyalty-raffle-prize-name {
    margin: 0 0 0.7rem;

    color: var(--hakkuma-text);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.loyalty-raffle-prize-card.is-featured
.loyalty-raffle-prize-name {
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.loyalty-raffle-prize-description {
    margin: 0 0 1rem;

    color: #777387;
    font-size: 0.84rem;
    line-height: 1.45;
}

.loyalty-raffle-prize-waiting {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    margin-top: auto;
    padding: 0.85rem;

    color: #6b5c83;
    background: #f6f2ff;
    border: 1px solid #e6ddf8;
    border-radius: 12px;

    font-size: 0.78rem;
    line-height: 1.35;
}

.loyalty-raffle-prize-waiting div {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: #7139d5;
    background: #e8deff;
    border-radius: 10px;
}

.loyalty-raffle-winner {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    margin-top: auto;
    margin-bottom: 1rem;
    padding: 0.9rem;

    color: #17653c;
    background: #eaf9ef;
    border: 1px solid #d3efdd;
    border-radius: 12px;
}

.loyalty-raffle-winner.is-pending {
    color: #725d23;
    background: #fff8df;
    border-color: #f0e0a9;
}

.loyalty-raffle-winner-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #fff;
    background: #279762;
    border-radius: 11px;
}

.loyalty-raffle-winner.is-pending
.loyalty-raffle-winner-icon {
    background: #d4a524;
}

.loyalty-raffle-winner span,
.loyalty-raffle-winner small {
    display: block;

    font-size: 0.68rem;
}

.loyalty-raffle-winner strong {
    display: block;
    margin: 0.2rem 0;

    color: inherit;
    font-size: 0.9rem;
}

.loyalty-raffle-prize-pending-button {
    padding: 0.7rem 1rem;

    color: #fff;
    background: #777582;
    border: 0;
    border-radius: 9px;

    font-size: 0.78rem;
    font-weight: 700;
    opacity: 1;
}

/* =========================================================
   Listados completos de fidelizaciones
   ========================================================= */
	 /* =========================================================
	    Detalle de fidelización: Siguiente visita
	    ========================================================= */

.loyalty-ticket-count {
   display: inline-flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;

   min-width: 82px;
   padding: 0.5rem 0.75rem;

   color: #fff;
   background:
       linear-gradient(
           135deg,
           #7139d5,
           #5022a4
       );

   border-radius: 9px;

   box-shadow:
       0 5px 12px rgba(80, 34, 164, 0.2);

   font-size: 0.95rem;
   font-weight: 800;
   line-height: 1;
   text-align: center;
}

.loyalty-ticket-count small {
   margin-top: 0.2rem;
   font-size: 0.65rem;
   font-weight: 600;
}

.loyalty-visit-groups {
   display: grid;
   gap: 1.5rem;
}

.loyalty-visit-group {
   padding: 1.25rem;

   background:
       linear-gradient(
           135deg,
           #faf8ff 0%,
           #ffffff 100%
       );

   border: 1px solid #e9e4f3;
   border-radius: 18px;

   box-shadow:
       0 8px 24px rgba(41, 36, 111, 0.06);
}

.loyalty-visit-group-header {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 1rem;

   margin-bottom: 1.25rem;
}

.loyalty-visit-group-number {
   display: block;
   margin-bottom: 0.3rem;

   color: #7139d5;
   font-size: 0.75rem;
   font-weight: 800;
   letter-spacing: 0.04em;
   text-transform: uppercase;
}

.loyalty-visit-group-title {
   margin: 0 0 0.35rem;

   color: var(--hakkuma-text);
   font-size: 1.2rem;
   font-weight: 800;
   line-height: 1.2;
}

.loyalty-visit-group-description {
   color: #777387;
   font-size: 0.84rem;
   line-height: 1.4;
}

.loyalty-visit-group-summary {
   display: flex;
   flex: 0 0 auto;
   flex-wrap: wrap;
   justify-content: flex-end;
   gap: 0.45rem;
}

.loyalty-visit-group-summary span {
   display: inline-flex;
   align-items: center;
   gap: 0.35rem;

   padding: 0.42rem 0.7rem;
   border-radius: 999px;

   font-size: 0.7rem;
   font-weight: 700;
   line-height: 1;
   white-space: nowrap;
}

.loyalty-visit-group-summary .is-available {
   color: #167747;
   background: #dcf8e8;
}

.loyalty-visit-group-summary .is-pending {
   color: #725d23;
   background: #fff2c7;
}

.loyalty-visit-prize-card.is-pending {
   border-color: #eee1b5;
}

.loyalty-visit-prize-card.is-available {
   border-color: #d9cdf0;
}

.loyalty-visit-prize-card.is-redeemed {
   border-color: #cfeedd;
}

.loyalty-prize-available-badge.is-pending {
   color: #725d23;
   background: #fff2c7;
}

.loyalty-prize-available-badge.is-available {
   color: #fff;
   background:
       linear-gradient(
           135deg,
           #7139d5,
           #5022a4
       );
}

.loyalty-prize-available-badge.is-redeemed {
   color: #fff;
   background: #279762;
}

.loyalty-prize-available-badge.is-unavailable {
   color: #fff;
   background: #777582;
}

.loyalty-prize-validity {
   display: flex;
   align-items: center;
   gap: 0.65rem;

   margin-top: auto;
   margin-bottom: 1rem;
   padding: 0.7rem 0.8rem;

   border-radius: 11px;

   font-size: 0.76rem;
   font-weight: 700;
   line-height: 1.3;
}

.loyalty-prize-validity-icon {
   display: flex;
   flex: 0 0 30px;
   align-items: center;
   justify-content: center;

   width: 30px;
   height: 30px;

   border-radius: 9px;
}

.loyalty-prize-validity.is-pending {
   color: #725d23;
   background: #fff8df;
}

.loyalty-prize-validity.is-pending
.loyalty-prize-validity-icon {
   background: #ffe9a6;
}

.loyalty-prize-validity.is-available {
   color: #5f32b7;
   background: #f4efff;
}

.loyalty-prize-validity.is-available
.loyalty-prize-validity-icon {
   background: #e5d9ff;
}

.loyalty-prize-validity.is-redeemed {
   color: #167747;
   background: #eaf9f0;
}

.loyalty-prize-validity.is-redeemed
.loyalty-prize-validity-icon {
   background: #d3f2df;
}

.loyalty-prize-validity.is-unavailable {
   color: #696573;
   background: #f2f1f4;
}

.loyalty-prize-validity.is-unavailable
.loyalty-prize-validity-icon {
   background: #e3e1e7;
}

.loyalty-prize-pending-button {
   padding: 0.7rem 1rem;

   color: #725d23;
   background: #fff2c7;
   border: 1px solid #f1dfa6;
   border-radius: 9px;

   font-size: 0.78rem;
   font-weight: 700;
   opacity: 1;
}

.loyalty-prize-redeemed-button {
   padding: 0.7rem 1rem;

   color: #fff;
   background: #279762;
   border: 0;
   border-radius: 9px;

   font-size: 0.78rem;
   font-weight: 700;
   opacity: 1;
}

.loyalty-list-page {
    min-height: 100vh;
    color: var(--hakkuma-text);

    background:
        linear-gradient(
            180deg,
            rgba(255, 249, 236, 0.72) 0,
            #fff 250px
        );
}

.loyalty-list-container {
    max-width: 1320px;
}

.loyalty-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.loyalty-list-title {
    color: var(--hakkuma-purple);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
}

.loyalty-list-description {
    color: #777387;
    font-size: 0.95rem;
    line-height: 1.45;
}

.loyalty-list-back-button {
    flex: 0 0 auto;
    padding: 0.65rem 1rem;

    color: #6633bf;
    background: #f5f0ff;
    border: 1px solid #e5daf8;
    border-radius: 10px;

    font-size: 0.85rem;
    font-weight: 700;
}

.loyalty-list-back-button:hover {
    color: #fff !important;
    background: #6633bf;
    border-color: #6633bf;
}

.loyalty-pagination-wrapper {
    display: flex;
    justify-content: center;
}

.loyalty-pagination-wrapper .pagination {
    gap: 0.35rem;
    margin: 0;
}

.loyalty-pagination-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0.4rem 0.65rem;

    color: #6633bf;
    background: #fff;
    border: 1px solid #e5def0;
    border-radius: 9px !important;

    font-size: 0.8rem;
    font-weight: 700;
}

.loyalty-pagination-wrapper .page-item.active .page-link {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #7139d5,
            #5022a4
        );
    border-color: transparent;
}

.loyalty-pagination-wrapper .page-item.disabled .page-link {
    color: #aaa6b2;
    background: #f5f4f7;
}

/* =========================================================
   Popup: Mi código Hakkuma
   ========================================================= */

/* Contenedor general del modal */

#ShowModalQrGetPoints .modal-dialog,
#ShowModalQrClainPrize .modal-dialog {
    width: calc(100% - 30px);
    max-width: 460px;
    margin: 1.75rem auto;
}

#ShowModalQrGetPoints .modal-content,
#ShowModalQrClainPrize .modal-content {
    overflow: hidden;

    background: #fff;
    border: 0;
    border-radius: 22px;

    box-shadow:
        0 24px 65px rgba(34, 25, 77, 0.24);
}

#ShowModalQrGetPoints .modal-header,
#ShowModalQrClainPrize .modal-header {
    position: relative;
    align-items: center;

    min-height: 64px;
    padding: 1rem 1.25rem;

    background:
        linear-gradient(
            135deg,
            #ffc426 0%,
            #ffad00 100%
        );

    border: 0;
}

#ShowModalQrGetPoints .modal-title,
#ShowModalQrClainPrize .modal-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

#ShowModalQrGetPoints .modal-header .close,
#ShowModalQrClainPrize .modal-header .close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;

    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 9px;

    font-size: 1.35rem;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
}

#ShowModalQrGetPoints .modal-header .close:hover,
#ShowModalQrClainPrize .modal-header .close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

#ShowModalQrGetPoints .modal-body,
#ShowModalQrClainPrize .modal-body {
    padding: 0 !important;
    background: #fff;
}

#ShowModalQrGetPoints .modal-footer,
#ShowModalQrClainPrize .modal-footer {
    padding: 0.85rem 1rem;

    background: #fff;
    border-top: 1px solid #ece9f1;
}

#ShowModalQrGetPoints .modal-footer .btn,
#ShowModalQrClainPrize .modal-footer .btn {
    min-width: 90px;
    padding: 0.65rem 1rem;

    color: #fff;
    background: #73717b;
    border: 0;
    border-radius: 9px;

    font-size: 0.8rem;
    font-weight: 700;
}

#cnt_modal_qr_clain_prize,
#cnt_modal_qr_clain_prize_to_clain {
    width: 100%;
}

/* Flujo interno */

.hakkuma-qr-flow {
    width: 100%;
    min-height: 475px;
    padding: 1.35rem 1.5rem;

    color: var(--hakkuma-text);

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 185, 20, 0.12),
            transparent 170px
        ),
        linear-gradient(
            180deg,
            #fffcf4 0%,
            #ffffff 55%
        );

    box-sizing: border-box;
}

.hakkuma-qr-flow [hidden] {
    display: none !important;
}

.hakkuma-qr-flow [data-qr-screen],
.hakkuma-qr-flow [data-claim-screen] {
    width: 100%;
}

/* =========================================================
   Estado 1: código generado
   ========================================================= */

.hakkuma-qr-flow [data-qr-screen="generated"],
.hakkuma-qr-flow [data-claim-screen="generated"] {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.hakkuma-qr-description {
    max-width: 340px;
    margin: 0 auto 1rem;

    color: #5f5a6c;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.hakkuma-qr-image-box {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 238px;
    height: 238px;
    margin: 0 auto;
    padding: 8px;

    overflow: hidden;
    background: #fff;
    border: 1px solid #ebe7f1;
    border-radius: 18px;

    box-shadow:
        0 12px 30px rgba(41, 36, 111, 0.12),
        0 3px 8px rgba(41, 36, 111, 0.06);

    box-sizing: border-box;
}

.hakkuma-qr-image-box svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hakkuma-temporary-code-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;

    margin-top: 0.85rem;
    padding: 0.35rem 0.65rem;

    color: #6738bd;
    background: #f1eaff;
    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.hakkuma-temporary-code-label i {
    color: #7139d5;
}

.hakkuma-short-token {
    margin-top: 0.65rem;

    color: #6531bc;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
    text-align: center;
}

.hakkuma-expiration-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    margin-top: 0.85rem;

    color: #625d6d;
    font-size: 0.8rem;
}

.hakkuma-expiration-row strong {
    min-width: 64px;
    padding: 0.38rem 0.6rem;

    color: #6935c7;
    background: #fff;
    border: 1px solid #ded4f0;
    border-radius: 999px;

    box-shadow:
        0 4px 12px rgba(80, 34, 164, 0.1);

    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.hakkuma-auto-renew-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;

    width: 100%;
    margin-top: 0.8rem;
    padding: 0.65rem 0.8rem;

    color: #80621e;
    background: #fff6d7;
    border: 1px solid #f5df9a;
    border-radius: 11px;

    font-size: 0.74rem;
    font-weight: 600;
    text-align: center;
}

.hakkuma-auto-renew-message i {
    color: #efa900;
}

.hakkuma-refresh-token-button {
    margin-top: 0.7rem;
    padding: 0.72rem 1rem;

    color: #6331b9;
    background: #fff;
    border: 1px solid #dfd5ef;
    border-radius: 10px;

    font-size: 0.8rem;
    font-weight: 700;

    box-shadow:
        0 5px 14px rgba(41, 36, 111, 0.07);

    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.hakkuma-refresh-token-button:hover,
.hakkuma-refresh-token-button:focus {
    color: #fff !important;
    background: #6633bf;
    border-color: #6633bf;

    transform: translateY(-1px);
}

/* =========================================================
   Estados escaneado, confirmado y error
   ========================================================= */

.hakkuma-qr-flow [data-qr-screen="scanned"],
.hakkuma-qr-flow [data-qr-screen="confirmed"],
.hakkuma-qr-flow [data-qr-screen="error"],
.hakkuma-qr-flow [data-claim-screen="scanned"],
.hakkuma-qr-flow [data-claim-screen="confirmed"],
.hakkuma-qr-flow [data-claim-screen="error"] {
   display: flex;
   min-height: 430px;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   text-align: center;
}

.hakkuma-qr-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 94px;
    height: 94px;
    margin-bottom: 1rem;

    border-radius: 50%;
    font-size: 2.5rem;

    box-shadow:
        0 12px 28px rgba(41, 36, 111, 0.14);
}

.hakkuma-qr-state-icon.is-scanned {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #29c875,
            #079c53
        );

    animation:
        hakkuma-qr-pulse 1.8s ease-in-out infinite;
}

.hakkuma-qr-state-icon.is-error {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #ef6868,
            #c63131
        );
}

.hakkuma-qr-state-title {
    margin: 0 0 0.55rem;

    color: var(--hakkuma-text);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
}

.hakkuma-qr-state-description {
    max-width: 320px;
    margin: 0 auto 1rem;

    color: #706b7c;
    font-size: 0.86rem;
    line-height: 1.45;
}

.hakkuma-qr-waiting-store {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;
    margin: 0.3rem auto 1rem;

    color: #7139d5;
    background: #f0e9ff;
    border-radius: 20px;

    font-size: 2rem;
}

.hakkuma-qr-warning {
    width: 100%;
    max-width: 340px;
    padding: 0.85rem 1rem;

    color: #276540;
    background: #eaf9ef;
    border: 1px solid #cdebd8;
    border-radius: 12px;

    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
}

/* =========================================================
   Estado confirmado
   ========================================================= */

.hakkuma-qr-success-decoration {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 86px;
    height: 86px;
    margin-bottom: 0.85rem;

    background:
        linear-gradient(
            135deg,
            #fff0af,
            #ffd259
        );

    border-radius: 50%;
    font-size: 2.8rem;

    box-shadow:
        0 12px 28px rgba(230, 169, 0, 0.2);

    animation:
        hakkuma-success-entry 480ms ease-out;
}

.hakkuma-confirmation-summary {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(105px, 1fr));
    gap: 0.65rem;

    width: 100%;
    margin: 0.65rem 0 1rem;
}

.hakkuma-confirmation-summary > div {
    padding: 0.85rem 0.65rem;

    color: #6832bd;
    background:
        linear-gradient(
            135deg,
            #faf7ff,
            #f2ebff
        );

    border: 1px solid #e4daf5;
    border-radius: 13px;
}

.hakkuma-confirmation-summary strong {
    display: block;

    color: #6731bc;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.hakkuma-confirmation-summary > div > span {
    display: block;
    margin-top: 0.3rem;

    color: #746c83;
    font-size: 0.72rem;
    font-weight: 700;
}

.hakkuma-confirmation-business {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    width: 100%;
    margin-bottom: 1rem;
    padding: 0.85rem;

    color: #514d62;
    background: #fff;
    border: 1px solid #ebe7f1;
    border-radius: 13px;

    box-shadow:
        0 5px 16px rgba(41, 36, 111, 0.07);

    text-align: left;
}

.hakkuma-confirmation-business img {
    display: block;
    flex: 0 0 52px;

    width: 52px;
    height: 52px;
    padding: 3px;

    object-fit: contain;

    background: #fff;
    border: 1px solid #ebe7f1;
    border-radius: 12px;
}

.hakkuma-confirmation-business > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.hakkuma-confirmation-business strong {
    color: var(--hakkuma-text);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}

.hakkuma-confirmation-business span {
    margin-top: 0.15rem;

    color: #7139d5;
    font-size: 0.76rem;
    font-weight: 700;
}

.hakkuma-confirmation-business small {
    margin-top: 0.3rem;

    color: #898493;
    font-size: 0.68rem;
    line-height: 1.25;
}

/*
 * El botón usa una clase compartida con premios.
 * Lo personalizamos únicamente dentro de este modal.
 */
#ShowModalQrGetPoints .loyalty-prize-claim-button,
#ShowModalQrClainPrize .loyalty-prize-claim-button {
   padding: 0.75rem 1rem;

   color: #fff;

   background:
       linear-gradient(
           135deg,
           #7139d5,
           #5022a4
       );

   border: 0;
   border-radius: 10px;

   font-size: 0.82rem;
   font-weight: 700;

   box-shadow:
       0 7px 16px rgba(80, 34, 164, 0.22);
}

#ShowModalQrGetPoints .loyalty-prize-claim-button:hover,
#ShowModalQrClainPrize .loyalty-prize-claim-button:hover{
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #5e2db9,
            #401b89
        );
}

.hakkuma-popup-loading {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    color: #6a6475;
    background:
        linear-gradient(
            180deg,
            #fffcf4 0%,
            #ffffff 100%
        );

    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.hakkuma-popup-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;

    color: #ffb914 !important;
    border-width: 0.25rem;
}



/* Animaciones */

@keyframes hakkuma-qr-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 12px 28px rgba(9, 156, 83, 0.18);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 15px 34px rgba(9, 156, 83, 0.28);
    }
}

@keyframes hakkuma-success-entry {
    from {
        opacity: 0;
        transform: scale(0.65) rotate(-12deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}



@keyframes hakkuma-wave {
        0%,
        60%,
        100% {
            transform: rotate(0deg);
        }

        70% {
            transform: rotate(12deg);
        }

        80% {
            transform: rotate(-8deg);
        }

        90% {
            transform: rotate(7deg);
        }
    }

/* Resolución: (min-width: 992px) */
@media (min-width: 992px) {
  .home-section-title {
    font-size: 1.85rem;
  }

	.hakkuma-business-list-item {
      flex: 0 0 20%;
      width: 20%;
      max-width: 20%;
  }

}

/* Resolución: (max-width: 1400px) */
@media (max-width: 1400px) {
  .fs-xxl-7 {
    font-size: 0.8rem !important;
  }

  .fs-xxl-8 {
    font-size: 0.7rem !important;
  }

}

/* Resolución: (max-width: 1200px) */
@media (max-width: 1200px) {
  .fs-xl-7 {
    font-size: 0.8rem !important;
  }

  .fs-xl-8 {
    font-size: 0.7rem !important;
  }

}

/* Resolución: (max-width: 991.98px) */
@media (max-width: 991.98px) {
  .fs-lg-7 {
    font-size: 0.8rem !important;
  }

  .fs-lg-8 {
    font-size: 0.7rem !important;
  }

  .loyalty-card-header {
    min-height: 54px;
  }

  .loyalty-business-name {
      font-size: 0.92rem;
  }

  .loyalty-name {
      font-size: 0.9rem;
  }

  .loyalty-detail-btn {
    font-size: 1rem;
  }

  .business-name {
    font-size: .95rem;
  }

  .business-value {
    font-size: .85rem;
  }

  .home-section-title {
    font-size: 2.1rem;
  }

  .business-logo-box {
    padding: 12px;
    height: 95px;
  }

  .home-section-panel {
    padding: 14px;
  }

  .welcome-content {
    text-align: center;
  }

  .welcome-description {
    margin-right: auto;
    margin-left: auto;
  }

  .summary-card {
    text-align: left;
  }

  .hakkuma-code-card {
    margin-top: 0.5rem;
  }

  .hakkuma-welcome-section::before {
    background-image: url("/images/BannerQR-vTablet.png");
  }

	.hakkuma-business-logo-wrapper {
    width: 96px;
    height: 96px;
	}

	.hakkuma-business-item-name {
	    font-size: 0.92rem;
	}

	.hakkuma-business-item-category {
	    font-size: 0.82rem;
	}

	.loyalty-business-hero {
    padding: 1.25rem;
	}

	.loyalty-business-logo-box {
	    width: 96px;
	    height: 96px;
	}

	.loyalty-summary-image-box {
	    min-height: 320px;
	}

	.loyalty-summary-content {
	    padding: 2rem;
	}

	.loyalty-card-prize {
    grid-template-columns: 130px 1fr;
	}

	.loyalty-card-prize-action {
	    grid-column: 1 / -1;
	}

	.loyalty-raffle-countdown-content {
		align-items: stretch;
		flex-direction: column;
	}

	.loyalty-raffle-date-panel {
			min-width: 0;
	}

	.loyalty-raffle-prize-card.is-featured {
			grid-template-columns:
					minmax(260px, 0.9fr)
					minmax(280px, 1.1fr);
	}

}

/* Resolución: (max-width: 767.98px) */
@media (max-width: 767.98px) {
  .fs-md-7 {
    font-size: 0.8rem !important;
  }

  .fs-md-8 {
    font-size: 0.7rem !important;
  }

  .card-body {
    padding: 8px !important;
  }

	.container {
    width: calc(100% - 40px);
    padding: 0;
	}

  .loyalty-type-badge {
    font-size: 0.68rem;
  }

  .loyalty-name {
      min-height: 48px;
      font-size: 0.82rem;
  }

  .loyalty-card-content {
    padding: 0.7rem;
  }

  .loyalty-card-header {
      gap: 0.5rem;
      padding: 0.45rem 0.55rem;
  }

  .loyalty-card-logo-wrapper {
      flex-basis: 38px;
      width: 38px;
      height: 38px;
  }

  .loyalty-business-name {
      font-size: 0.84rem;
  }

  .home-section-title {
    font-size: 1.9rem;
  }

  .home-section-panel {
    padding: 12px;
  }

  .business-logo-box {
    height: 88px;
  }

  .hakkuma-business-logo-wrapper {
      width: 88px;
      height: 88px;
  }

  .hakkuma-business-item {
      padding: 0.35rem;
  }

  .hakkuma-business-item-name {
      min-height: 38px;
      font-size: 0.86rem;
  }

  .hakkuma-business-item-category {
      font-size: 0.78rem;
  }

  .hakkuma-business-item-followers {
      font-size: 0.74rem;
  }

  .loyalty-detail-container {
    width: calc(100% - 24px);
    padding-right: 0;
    padding-left: 0;
  }

  .loyalty-business-hero {
      border-radius: 18px;
  }

  .loyalty-business-logo-box {
      width: 82px;
      height: 82px;
  }

  .loyalty-business-stars img {
      width: 21px;
      height: 21px;
  }

  .loyalty-follow-form,
  .loyalty-follow-button,
  .loyalty-following-button {
      width: 100%;
  }

  .loyalty-summary-image-box {
      min-height: 0;
  }

  .loyalty-summary-image {
      aspect-ratio: 16 / 10;
  }

  .loyalty-summary-content {
      padding: 1.5rem;
  }

  .loyalty-section-card {
      padding: 1rem;
  }

  .loyalty-stamps-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
  }

  .loyalty-card-prize {
      grid-template-columns: 110px 1fr;
  }

  .loyalty-card-prize-action {
      grid-column: 1 / -1;
  }

	.loyalty-raffle-countdown-unit {
		min-width: 72px;
	}

	.loyalty-raffle-prize-card.is-featured {
			display: flex;
			flex-direction: column;
	}

	.loyalty-raffle-prize-card.is-featured
	.loyalty-raffle-prize-image-wrapper {
			min-height: 0;
	}

	.loyalty-raffle-prize-card.is-featured
	.loyalty-raffle-prize-image {
			aspect-ratio: 16 / 10;
	}
}

/* Resolución: (max-width: 575.98px) */
@media (max-width: 575.98px) {
  .fs-sm-7 {
    font-size: 0.8rem !important;
  }

  .fs-sm-8 {
    font-size: 0.7rem !important;
  }

  .card-body {
    padding: 6px !important;
  }

  .logo_general_business {
    float: left !important;
    width: 100px !important;
    padding-top: 10px;
  }

  .cont_header_business {
    float: left !important;
    width: calc( 100% - 100px) !important;
    padding-left: 0;
    padding-right: 0;
  }

  .cont_header_business .qualification {
    min-width: 200px;
  }

  .cont_header_business .qualification img {
    max-width: 30px;
    height: auto;
  }

  .cont_header_business .title {
    font-size: 18px;
  }

  .home-section-see-all {
    width: 86px;
  }

  .loyalty-card-body {
    padding: 6px;
  }

  .business-stores {
    min-height: 30px;
  }

  .business-stars img {
    width: 14px;
    height: 14px;
  }

  .home-section-panel {
    padding: 10px 0;
  }

  .home-section-title {
    font-size: 1.7rem;
  }

  .loyalty-card {
    border-radius: 11px;
  }

  .loyalty-card-header {
      min-height: 48px;
  }

  .loyalty-card-logo-wrapper {
      flex-basis: 34px;
      width: 34px;
      height: 34px;
      padding: 3px;
      border-radius: 8px;
  }

  .loyalty-card-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .loyalty-business-name {
    padding-right: 0;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .loyalty-type-badge {
    width: 100%;
    margin-bottom: 0.45rem;
    padding-right: 0.35rem;
    font-size: 0.62rem;
  }

  .loyalty-type-badge .hk-icon-sm {
    transform: scale(0.82);
    transform-origin: center;
  }
  .loyalty-card-state-indicator {
    display: none;
  }

  .loyalty-card-content {
    padding: 0.55rem;
  }

  .loyalty-claimable-badge {
      right: 0.45rem;
      bottom: 0.45rem;
      padding: 0.32rem 0.48rem;
      font-size: 0.58rem;
  }

  .loyalty-type {
    font-size: .9rem;
  }

  .loyalty-name {
    min-height: 42px;
    margin-bottom: 0.55rem;
    padding: 0.15rem;

    font-size: 0.7rem;
    line-height: 1.15;
  }

  .loyalty-detail-btn {
    min-height: 34px;
    padding: 0.45rem 0.4rem;
    font-size: 0.68rem;
  }

  .business-logo-box {
    height: 78px;
    padding: 9px;
  }

  .business-card-body {
    padding: 7px;
  }

  .business-name {
    margin-bottom: 8px;
    min-height: 34px;
    font-size: .7rem;
  }

  .business-label {
    font-size: .6rem;
  }

  .business-value {
    font-size: .64rem;
  }

  .business-followers {
    font-size: .64rem;
  }

  .business-profile-btn {
    padding: 6px 4px;
    width: 90%;
    font-size: .66rem;
  }

  .home-index-wrapper {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hakkuma-welcome-section {
    border-radius: 0 0 22px 22px;
  }

  .welcome-title {
    font-size: 2rem;
  }

  .welcome-description {
    font-size: 0.95rem;
  }

  .summary-card {
    min-height: 82px;
    padding: 0.9rem 1rem;
  }

  .summary-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .summary-label br {
    display: none;
  }

  .hakkuma-code-card {
    max-width: 100%;
    padding: 1.25rem;
    border-radius: 20px;
  }

  .qr-container {
    width: 155px;
    height: 155px;
  }

  .reward-type-mobile {
    display: flex !important;
  }

  .hakkuma-welcome-section::before {
    background-image: url("/images/BannerQR-vMobile.png");
  }

  .hakkuma-business-list {
    row-gap: 1.25rem !important;
  }

  .hakkuma-business-logo-wrapper {
      width: 78px;
      height: 78px;
      margin-bottom: 0.65rem;
      padding: 6px;
  }

  .hakkuma-business-item {
      padding: 0.25rem;
  }

  .hakkuma-business-item-name {
      min-height: 34px;
      margin-bottom: 0.18rem;
      font-size: 0.78rem;
      line-height: 1.12;
  }

  .hakkuma-business-item-category {
      min-height: 18px;
      margin-bottom: 0.18rem;
      font-size: 0.7rem;
  }

  .hakkuma-business-item-followers {
      gap: 0.2rem;
      font-size: 0.66rem;
  }

  .hakkuma-business-item-followers i {
      font-size: 0.66rem;
  }

  .hakkuma-business-see-all {
      font-size: 0.8rem;
  }

  .hakkuma-business-see-all span {
      font-size: 1.25rem;
  }

  .loyalty-page-heading {
    font-size: 0.9rem;
  }

  .loyalty-business-hero {
      padding: 1rem;
  }

  .loyalty-business-logo-box {
      width: 72px;
      height: 72px;
      padding: 5px;
  }

  .loyalty-business-name {
      font-size: 1.15rem;
  }

  .loyalty-business-rating,
  .loyalty-business-followers {
      font-size: 0.75rem;
  }

  .loyalty-summary-card,
  .loyalty-section-card {
      border-radius: 15px;
  }

  .loyalty-summary-content {
      padding: 1.2rem;
  }

  .loyalty-summary-title {
      font-size: 1.4rem;
  }

  .loyalty-summary-points {
      font-size: 1.2rem;
  }

  .loyalty-section-header {
      align-items: flex-start;
  }

  .loyalty-section-icon {
      flex-basis: 40px;
      width: 40px;
      height: 40px;
  }

  .loyalty-section-title {
      font-size: 1rem;
  }

  .loyalty-section-subtitle {
      font-size: 0.76rem;
  }

  /* La tabla se transforma en tarjetas */
  .loyalty-ticket-table {
      min-width: 0;
  }

  .loyalty-ticket-table thead {
      display: none;
  }

  .loyalty-ticket-table,
  .loyalty-ticket-table tbody,
  .loyalty-ticket-table tr,
  .loyalty-ticket-table td {
      display: block;
      width: 100%;
  }

  .loyalty-ticket-table tbody tr {
      margin-bottom: 0.75rem;
      padding: 0.8rem;
      background: #fff;
      border: 1px solid #eceaf2;
      border-radius: 12px;
  }

  .loyalty-ticket-table tbody tr:last-child {
      margin-bottom: 0;
  }

  .loyalty-ticket-table tbody td {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.45rem 0;
      border: 0;
      text-align: right !important;
  }

  .loyalty-ticket-table tbody td::before {
      content: attr(data-label);
      color: #898593;
      font-size: 0.72rem;
      font-weight: 700;
      text-align: left;
  }

  .loyalty-ticket-points {
      min-width: 76px;
  }

  .loyalty-points-total {
      flex-wrap: wrap;
      font-size: 0.88rem;
  }

  .loyalty-points-total strong {
      font-size: 1rem;
  }

  .loyalty-prize-cost {
      font-size: 1.2rem;
  }

  .loyalty-security-message {
      align-items: flex-start;
  }

  .loyalty-stamp-card {
    padding: 1rem;
    border-radius: 15px;
  }

  .loyalty-stamp-card-header {
      flex-direction: column;
  }

  .loyalty-stamp-status {
      align-self: flex-start;
  }

  .loyalty-stamp-card-title {
      font-size: 1.1rem;
  }

  .loyalty-stamp-card-description {
      font-size: 0.8rem;
  }

  .loyalty-stamps-grid {
      grid-template-columns:
          repeat(2, minmax(0, 1fr));
      gap: 0.6rem;
  }

  .loyalty-stamp-item {
      padding: 0.6rem;
  }

  .loyalty-stamp-ticket {
      width: 96px;
  }

  .loyalty-stamp-ticket span {
      font-size: 0.78rem;
  }

  .loyalty-card-prize {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      padding: 0.8rem;
  }

  .loyalty-card-prize-image-box {
      width: 100%;
  }

  .loyalty-card-prize-image {
      aspect-ratio: 16 / 9;
  }

  .loyalty-card-prize-content {
      text-align: center;
  }

  .loyalty-card-prize-action {
      width: 100%;
  }

  .loyalty-summary-progress {
      width: 100%;
  }

	.loyalty-list-heading {
    flex-direction: column;
    align-items: flex-start;
	}

	.loyalty-list-back-button {
	    width: 100%;
	}

	.loyalty-list-description {
	    font-size: 0.84rem;
	}

	.loyalty-pagination-wrapper .page-link {
	    min-width: 34px;
	    height: 34px;
	    padding: 0.3rem 0.5rem;
	    font-size: 0.72rem;
	}

	.loyalty-ticket-count {
		min-width: 76px;
	}

	.loyalty-visit-group {
			padding: 1rem;
			border-radius: 15px;
	}

	.loyalty-visit-group-header {
			flex-direction: column;
	}

	.loyalty-visit-group-summary {
			align-self: flex-start;
			justify-content: flex-start;
	}

	.loyalty-visit-group-title {
			font-size: 1.05rem;
	}

	.loyalty-visit-group-description {
			font-size: 0.78rem;
	}

	.loyalty-prize-validity {
			align-items: flex-start;
			font-size: 0.72rem;
	}

	.loyalty-raffle-countdown-card {
		padding: 1rem;
		border-radius: 16px;
	}

	.loyalty-raffle-countdown-heading {
			align-items: flex-start;
	}

	.loyalty-raffle-countdown-icon {
			flex-basis: 46px;
			width: 46px;
			height: 46px;
			border-radius: 13px;
	}

	.loyalty-raffle-countdown-title {
			font-size: 1.2rem;
	}

	.loyalty-raffle-date {
			font-size: 1rem;
	}

	.loyalty-raffle-countdown {
			gap: 0.25rem;
	}

	.loyalty-raffle-countdown-unit {
			min-width: 0;
			min-height: 68px;
			padding: 0.5rem;
			flex: 1;
	}

	.loyalty-raffle-countdown-unit strong {
			font-size: 1.2rem;
	}

	.loyalty-raffle-countdown-unit span {
			font-size: 0.52rem;
	}

	.loyalty-raffle-countdown-separator {
			font-size: 1rem;
	}

	.loyalty-raffle-ticket-summary {
			align-items: flex-start;
			flex-direction: column;
	}

	.loyalty-raffle-ticket-toolbar {
			align-items: stretch;
			flex-direction: column;
	}

	.loyalty-raffle-ticket-search {
			width: 100%;
	}

	.loyalty-raffle-ticket-grid {
			grid-template-columns:
					repeat(2, minmax(0, 1fr));
			gap: 0.55rem;
	}

	.loyalty-raffle-ticket {
			min-height: 56px;
	}

	.loyalty-raffle-ticket-barcode {
			flex-basis: 40px;
	}

	.loyalty-raffle-ticket::before,
	.loyalty-raffle-ticket::after {
			left: 34px;
	}

	.loyalty-raffle-ticket-number strong {
			font-size: 0.76rem;
	}

	.loyalty-raffle-prize-image-wrapper {
			min-height: 190px;
	}

	.loyalty-raffle-prize-content {
			padding: 1rem;
	}

	.loyalty-raffle-prize-card.is-featured
	.loyalty-raffle-prize-content {
			padding: 1.2rem;
	}

	.loyalty-raffle-prize-card.is-featured
	.loyalty-raffle-prize-name {
			font-size: 1.3rem;
	}

	.loyalty-raffle-transparency-note {
		align-items: flex-start;
	}

	.loyalty-raffle-winner-card {
			align-items: flex-start;
			padding: 0.85rem;
	}

	.loyalty-raffle-winner-avatar {
			flex-basis: 52px;
			width: 52px;
			height: 52px;
	}

	.loyalty-raffle-winner-name {
			font-size: 0.9rem;
	}

	.loyalty-raffle-winning-ticket {
			font-size: 0.66rem;
	}

	.raffle-history-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.raffle-history-heading-icon {
			flex-basis: 36px;
			width: 36px;
			height: 36px;
	}

	.raffle-history-title {
			font-size: 1.2rem;
	}

	.raffle-history-description {
			font-size: 0.76rem;
	}

	.raffle-history-panel {
			padding: 0.65rem;
			border-radius: 14px;
	}

	.raffle-history-date {
			align-items: flex-start;
			gap: 0.45rem;
			padding: 0.55rem;
	}

	.raffle-history-date strong {
			font-size: 0.64rem;
	}

	.raffle-history-finished-badge {
			right: 0.4rem;
			bottom: 0.4rem;
			padding: 0.32rem 0.48rem;
			font-size: 0.56rem;
	}


	#ShowModalQrGetPoints .modal-dialog,
  #ShowModalQrClainPrize .modal-dialog {
        width: calc(100% - 20px);
        margin: 0.7rem auto;
    }

	#ShowModalQrGetPoints .modal-content,
  #ShowModalQrClainPrize .modal-content {
	        border-radius: 18px;
	    }

	#ShowModalQrGetPoints .modal-header,
  #ShowModalQrClainPrize .modal-header {
      min-height: 58px;
      padding: 0.85rem 1rem;
  }

	#ShowModalQrGetPoints .modal-title,
  #ShowModalQrClainPrize .modal-title {
      font-size: 1rem;
  }

	#ShowModalQrGetPoints .modal-header .close,
  #ShowModalQrClainPrize .modal-header .close {
      width: 31px;
      height: 31px;
  }

	.hakkuma-popup-loading {
        min-height: 260px;
    }

	.hakkuma-qr-flow {
			min-height: 440px;
			padding: 1rem;
	}

	.hakkuma-qr-description {
			margin-bottom: 0.8rem;
			font-size: 0.78rem;
	}

	.hakkuma-qr-image-box {
			width: 215px;
			height: 215px;
			padding: 7px;
			border-radius: 15px;
	}

	.hakkuma-temporary-code-label {
			margin-top: 0.7rem;
			font-size: 0.66rem;
	}

	.hakkuma-short-token {
			font-size: 1.65rem;
	}

	.hakkuma-expiration-row {
			font-size: 0.74rem;
	}

	.hakkuma-auto-renew-message {
			font-size: 0.68rem;
	}

	.hakkuma-qr-flow [data-qr-screen="scanned"],
	.hakkuma-qr-flow [data-qr-screen="confirmed"],
	.hakkuma-qr-flow [data-qr-screen="error"],
	.hakkuma-qr-flow [data-claim-screen="scanned"],
	.hakkuma-qr-flow [data-claim-screen="confirmed"],
	.hakkuma-qr-flow [data-claim-screen="error"] {
	    min-height: 405px;
	}

	.hakkuma-qr-state-icon {
			width: 82px;
			height: 82px;
			font-size: 2.2rem;
	}

	.hakkuma-qr-state-title {
			font-size: 1.25rem;
	}

	.hakkuma-qr-state-description {
			font-size: 0.78rem;
	}

	.hakkuma-qr-warning {
			font-size: 0.7rem;
	}

	.hakkuma-confirmation-summary {
			gap: 0.5rem;
	}

	.hakkuma-confirmation-summary > div {
			padding: 0.7rem 0.45rem;
	}

	.hakkuma-confirmation-summary strong {
			font-size: 1.2rem;
	}

	.hakkuma-confirmation-business {
			padding: 0.75rem;
	}

}

/* Resolución: (max-width: 420px) */
@media (max-width: 420px) {
  .fs-xs-7 {
    font-size: 0.8rem !important;
  }

  .fs-xs-8 {
    font-size: 0.7rem !important;
  }

  .card-body {
    padding: 4px !important;
  }

	.hakkuma-qr-flow {
		min-height: 420px;
		padding: 0.85rem;
	}

	.hakkuma-qr-image-box {
			width: 195px;
			height: 195px;
	}

	.hakkuma-short-token {
			font-size: 1.45rem;
	}

	.hakkuma-expiration-row {
			flex-wrap: wrap;
	}

	.hakkuma-qr-success-decoration {
			width: 74px;
			height: 74px;
			font-size: 2.35rem;
	}

}

/* Resolución: (prefers-reduced-motion: reduce) */
@media (prefers-reduced-motion: reduce) {
  .welcome-wave,
        .summary-card,
        .generate-token-button,
        .qr-image {
    animation: none;
    transition: none;
  }

	.hakkuma-qr-state-icon.is-scanned,
	.hakkuma-qr-success-decoration {
			animation: none;
	}

}





/* ============================================================
   HAKKUMA QR - CANCELAR OPERACIÓN
   ============================================================ */

.hakkuma-cancel-operation-area {
    margin-top: 18px;
    text-align: center;
}


.hakkuma-cancel-operation-button {
    min-height: 42px;
    border:
        1px solid
        #d8d5dc;

    border-radius:
        8px;

    background:
        #ffffff;

    color:
        #77727e;

    font-size:
        12px;

    font-weight:
        700;
}


.hakkuma-cancel-operation-button:hover {
    border-color:
        #dc7b7b;

    background:
        #fff7f7;

    color:
        #b53b3b;
}


.hakkuma-cancel-operation-area small {
    display:
        block;

    margin-top:
        8px;

    color:
        #9892a1;

    font-size:
        9px;

    line-height:
        1.4;
}



/* Cancelado */

.hakkuma-qr-state-icon.is-cancelled {
    display:
        flex;

    width:
        90px;

    height:
        90px;

    align-items:
        center;

    justify-content:
        center;

    margin:
        20px auto 14px;

    border-radius:
        50%;

    background:
        #f1eff4;

    color:
        #797480;

    font-size:
        36px;
}


.hakkuma-cancelled-message {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    margin:
        18px 0;

    padding:
        12px;

    border-radius:
        9px;

    background:
        #f5f4f7;

    color:
        #686371;

    font-size:
        10px;

    font-weight:
        700;
}



/* ============================================================
   HEADER MODERNO - HAKKUMA BENEFIT
   ============================================================ */


/* ============================================================
   Header general
   ============================================================ */

.hk-benefit-header {
    position: relative;

    z-index: 1030;

    width: 100%;

    background-color: #ffffff;
}



/* ============================================================
   Navbar principal
   ============================================================ */

.hk-benefit-navbar {
    min-height: 82px;

    padding:
        0;

    background-color:
        #ffffff;
}


.hk-benefit-navbar-inner {
    min-height: 82px;
}



/* ============================================================
   Logo
   ============================================================ */

.hk-benefit-brand {
    display: inline-flex;

    align-items: center;

    margin: 0;

    padding: 0;
}


.hk-benefit-brand-logo {
    display: block;

    width: auto;

    max-width: 215px;

    max-height: 58px;
}



/* ============================================================
   Acciones derecha
   ============================================================ */

.hk-benefit-navbar-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}



/* ============================================================
   Botón QR
   ============================================================ */

.hk-benefit-qr-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 48px;

    width: 48px;

    height: 48px;

    padding: 0;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ffc426,
            #ffad00
        );

    border: 0;

    border-radius: 12px;

    font-size: 21px;

    cursor: pointer;

    box-shadow:
        0 5px 14px
        rgba(230, 161, 0, .16);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}


.hk-benefit-qr-button:hover {
    color: #ffffff;

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 18px
        rgba(230, 161, 0, .24);
}


.hk-benefit-qr-button:active {
    transform:
        scale(.97);
}



/* ============================================================
   Usuario
   ============================================================ */

.hk-benefit-user-menu {
    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 48px;

    padding:
        5px
        9px;

    color:
        var(--hakkuma-text);

    background-color:
        transparent;

    border: 0;

    border-radius:
        10px;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.hk-benefit-user-menu:hover,
.hk-benefit-user-menu[aria-expanded="true"] {
    color:
        var(--hakkuma-purple);

    background-color:
        #f8f5ff;
}



/* ============================================================
   Avatar
   ============================================================ */

.hk-benefit-user-avatar,
.hk-benefit-user-avatar-fallback {
    display: inline-flex;

    flex: 0 0 40px;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: 40px;

    border-radius: 50%;
}


.hk-benefit-user-avatar {
    object-fit: cover;

    background-color:
        #f5f5f7;

    border:
        1px solid
        #ebe8f1;
}


.hk-benefit-user-avatar-fallback {
    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #7139d5,
            #5022a4
        );

    font-size: 14px;

    font-weight: 800;
}



/* ============================================================
   Nombre
   ============================================================ */

.hk-benefit-user-name {
    display: block;

    max-width: 180px;

    overflow: hidden;

    color:
        #2c2c2c;

    font-size: 14px;

    font-weight: 800;

    line-height: 1.2;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.hk-benefit-user-menu:hover
.hk-benefit-user-name,

.hk-benefit-user-menu[aria-expanded="true"]
.hk-benefit-user-name {
    color:
        var(--hakkuma-purple);
}



/* ============================================================
   Flecha dropdown
   ============================================================ */

.hk-benefit-user-chevron {
    margin-left: 2px;

    color:
        var(--hakkuma-purple);

    font-size: 10px;

    transition:
        transform .2s ease;
}


.hk-benefit-user-menu[aria-expanded="true"]
.hk-benefit-user-chevron {
    transform:
        rotate(180deg);
}



/* ============================================================
   Dropdown usuario
   ============================================================ */

.hk-benefit-user-dropdown {
    min-width: 220px;

    margin-top:
        9px !important;

    padding:
        7px;

    background-color:
        #ffffff;

    border:
        1px solid
        #ebe8f1;

    border-radius:
        12px;

    box-shadow:
        0 10px 28px
        rgba(41, 36, 111, .12);
}


.hk-benefit-user-dropdown
.dropdown-item {
    display: flex;

    align-items: center;

    min-height: 40px;

    padding:
        9px
        10px;

    color:
        #625d6d !important;

    border-radius:
        8px;

    font-size: 13px;

    font-weight: 600;

    transition:
        color .15s ease,
        background-color .15s ease;
}


.hk-benefit-user-dropdown
.dropdown-item i {
    width: 18px;

    color:
        #918b9c;

    text-align: center;
}


.hk-benefit-user-dropdown
.dropdown-item:hover {
    color:
        var(--hakkuma-purple) !important;

    background-color:
        #f6f2ff;
}


.hk-benefit-user-dropdown
.dropdown-item:hover i {
    color:
        var(--hakkuma-purple);
}



/* ============================================================
   Cerrar sesión
   ============================================================ */

.hk-benefit-user-dropdown
.hk-benefit-dropdown-logout {
    color:
        #b42318 !important;
}


.hk-benefit-user-dropdown
.hk-benefit-dropdown-logout i {
    color:
        #b42318;
}


.hk-benefit-user-dropdown
.hk-benefit-dropdown-logout:hover {
    color:
        #b42318 !important;

    background-color:
        #fef3f2;
}



/* ============================================================
   Login / registro
   ============================================================ */

.hk-benefit-auth-link {
    display: inline-flex;

    align-items: center;

    min-height: 42px;

    padding:
        8px
        12px;

    color:
        var(--hakkuma-purple) !important;

    font-weight: 700;
}


.hk-benefit-auth-link:hover {
    color:
        var(--hakkuma-purple-dark) !important;
}


.hk-benefit-auth-button {
    display: inline-flex;

    align-items: center;

    min-height: 42px;

    padding:
        8px
        15px;

    color:
        #312800 !important;

    background-color:
        var(--hakkuma-yellow);

    border-radius:
        9px;

    font-weight: 800;
}


.hk-benefit-auth-button:hover {
    color:
        #312800 !important;

    background-color:
        var(--hakkuma-yellow-dark);
}



/* ============================================================
   Menú horizontal amarillo
   ============================================================ */

.hk-benefit-menu-bar {
    width: 100%;

    background:
        linear-gradient(
            135deg,
            #ffc426,
            #ffb20b
        );
}


.hk-benefit-menu {
    width: 100%;

    overflow-x: auto;

    scrollbar-width: none;
}


.hk-benefit-menu::-webkit-scrollbar {
    display: none;
}


.hk-benefit-menu-list {
    display: flex;

    align-items: center;

    gap: 3px;

    min-width: max-content;

    margin: 0;

    padding: 0;
}


.hk-benefit-menu-item {
    flex: 0 0 auto;
}


.hk-benefit-menu-link {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 54px;

    padding:
        0
        15px;

    color:
        #ffffff !important;

    border-radius:
        8px;

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color .15s ease;
}


.hk-benefit-menu-link:hover {
    color:
        #ffffff !important;

    background-color:
        rgba(255, 255, 255, .14);
}


.hk-benefit-menu-link.active {
    color:
        #ffffff !important;

    font-weight: 800;
}


.hk-benefit-menu-link.active::after {
    position: absolute;

    right: 15px;

    bottom: 7px;

    left: 15px;

    height: 2px;

    background-color:
        #ffffff;

    border-radius:
        10px;

    content: "";
}



/* ============================================================
   Franja cuando NO existe menú
   ============================================================ */

.hk-benefit-header-accent {
    width: 100%;

    height: 8px;

    background:
        linear-gradient(
            90deg,
            #ffc426,
            #ffad00
        );
}



/* ============================================================
   Toggler
   ============================================================ */

.hk-benefit-navbar-toggler {
    border-color:
        #e3e0e8;

    border-radius:
        9px;
}


.hk-benefit-navbar-toggler:focus {
    box-shadow:
        0 0 0 3px
        rgba(113, 57, 213, .10);
}



/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 767.98px) {

    .hk-benefit-navbar {
        min-height: 70px;
    }


    .hk-benefit-navbar-inner {
        min-height: 70px;
    }


    .hk-benefit-brand-logo {
        max-width: 170px;

        max-height: 46px;
    }


    .hk-benefit-navbar-actions {
        align-items: stretch;

        gap: 7px;

        padding:
            12px
            0;
    }


    .hk-benefit-qr-button {
        width: 44px;

        height: 44px;

        flex-basis: 44px;

        font-size: 18px;
    }


    .hk-benefit-user-menu {
        width: 100%;
    }


    .hk-benefit-user-dropdown {
        width: 100%;
    }


    .hk-benefit-menu-link {
        min-height: 48px;

        padding:
            0
            12px;

        font-size: 13px;
    }


    .hk-benefit-menu-link.active::after {
        right: 12px;

        left: 12px;
    }


    .hk-benefit-header-accent {
        height: 6px;
    }

}
