/* ============================================================
   Tarjeta de cliente frecuente con forma de tarjeta de crédito
   (Views/negocio/_tarjeta_credito.php). Negro con brillo naranja,
   chip de cobre, letras en relieve. Medida real: 85,6 × 54 mm.
   ============================================================ */
.cc {
  --cc-crema: #F2EFE9;
  --cc-naranja: #C9502A;
  position: relative;
  aspect-ratio: 85.6 / 54;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 7% 7.5% 6.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  color: var(--cc-crema);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201,80,42,.55) 0%, rgba(201,80,42,.12) 38%, transparent 62%),
    radial-gradient(80% 70% at 0% 110%, rgba(201,80,42,.22) 0%, transparent 60%),
    linear-gradient(140deg, #24201E 0%, #141110 46%, #0A0A0B 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 22px 44px -18px rgba(10,10,11,.55), 0 6px 14px -6px rgba(10,10,11,.35) !important;
  font-family: Archivo, system-ui, sans-serif;
}
/* Líneas finas en diagonal, como guilloché */
.cc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
/* Borde interior de luz */
.cc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.09);
  pointer-events: none;
}
.cc-brillo {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 120%;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
  transform: rotate(18deg);
}

.cc-arriba { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-logo {
  width: 30px; height: 30px; flex: none; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cc-crema); color: #141110; font-weight: 800; font-size: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) !important;
}
.cc-logo img { width: 100%; height: 100%; object-fit: cover; }
.cc-nombre {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(14px, 4.2cqw, 17px); text-transform: uppercase; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-tipo {
  flex: none; font-family: 'DM Mono', ui-monospace, monospace; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cc-naranja); border: 1px solid rgba(201,80,42,.6); border-radius: 2px; padding: 4px 7px 3px;
}

.cc-medio { display: flex; align-items: center; gap: 12px; }
.cc-chip {
  position: relative; width: 44px; height: 33px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, #F0BE9C 0%, #D9855E 30%, #A9512F 62%, #E2A27F 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset, 0 1px 0 rgba(255,255,255,.35) inset !important;
  overflow: hidden;
}
.cc-chip i { position: absolute; background: rgba(60,22,8,.35); }
.cc-chip i:nth-child(1) { left: 0; right: 0; top: 33%; height: 1px; }
.cc-chip i:nth-child(2) { left: 0; right: 0; top: 66%; height: 1px; }
.cc-chip i:nth-child(3) { top: 0; bottom: 0; left: 50%; width: 1px; }
.cc-ondas { width: 22px; height: 22px; fill: none; stroke: rgba(242,239,233,.55); stroke-width: 1.6; stroke-linecap: round; }

/* Sellos: una fila de puntos, como los números de la tarjeta */
.cc-sellos { display: flex; align-items: center; gap: clamp(5px, 1.6cqw, 9px); flex-wrap: wrap; row-gap: 6px; }
.cc-sellos span {
  width: clamp(14px, 4.6cqw, 20px); aspect-ratio: 1; border-radius: 50%; flex: none;
  border: 1px solid rgba(242,239,233,.38);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; color: rgba(242,239,233,.55);
}
.cc-sellos span.lleno {
  border-color: transparent;
  background: radial-gradient(circle at 35% 30%, #EE8A62 0%, #C9502A 55%, #9C3A1C 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 2px 6px rgba(201,80,42,.45) !important;
  color: #fff;
}
.cc-sellos span.premio:not(.lleno) { border-style: dashed; border-color: rgba(201,80,42,.85); color: var(--cc-naranja); }
.cc-sellos em {
  margin-left: auto; font-style: normal; font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .14em;
  color: rgba(242,239,233,.7);
}
.cc-numero {
  font-family: 'DM Mono', ui-monospace, monospace; font-size: clamp(17px, 5.4cqw, 24px); letter-spacing: .16em;
  color: var(--cc-crema); text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.12); white-space: nowrap;
}

.cc-abajo { display: flex; align-items: flex-end; gap: 18px; }
.cc-dato { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-titular { flex: 1; }
.cc-dato small {
  font-family: 'DM Mono', monospace; font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(242,239,233,.5);
}
.cc-dato strong {
  font-family: 'DM Mono', ui-monospace, monospace; font-weight: 500; font-size: clamp(11px, 3.3cqw, 13.5px);
  letter-spacing: .12em; text-transform: uppercase; color: var(--cc-crema);
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-radio {
  flex: none; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 15px; color: rgba(242,239,233,.75);
}

/* El tamaño de la letra sigue al ancho de la tarjeta */
.cc-envoltura { container-type: inline-size; }
@container (max-width: 360px) {
  .cc-tipo { letter-spacing: .14em; font-size: 8.5px; padding: 3px 6px 2px; }
  .cc-radio { font-size: 13px; }
  .cc-abajo { gap: 12px; }
}
