/* Identifica el plan vigente sin alterar la jerarquía de los demás planes. */
.plan-compra-card--actual {
  border-color: #74a5ff;
  box-shadow: 0 10px 27px -20px rgb(37 99 235 / .72);
  position: relative;
}

.plan-compra-actual {
  align-items: center;
  background: #e8f1ff;
  border: 1px solid #c6dcff;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: .65rem;
  font-weight: 800;
  gap: .28rem;
  letter-spacing: .045em;
  padding: .3rem .55rem;
  text-transform: uppercase;
  width: fit-content;
}

.plan-compra-actual svg {
  height: .86rem;
  width: .86rem;
}

.plan-compra-card--actual .plan-compra-boton {
  background: #174fc7;
}

.plan-compra-card--actual .plan-compra-boton:hover {
  background: #123f9e;
}

.planes-cupon-portal {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #dbe6f6;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgb(15 23 42 / .03);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.15rem;
  padding: .95rem 1.1rem;
}

.planes-cupon-fila {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  justify-content: space-between;
}

.planes-cupon-encabezado {
  align-items: center;
  display: flex;
  flex: 1 1 260px;
  gap: .65rem;
  min-width: 0;
}

.planes-cupon-icono {
  align-items: center;
  background: #eaf1ff;
  border-radius: 10px;
  color: #2563eb;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.3rem;
  justify-content: center;
  width: 2.3rem;
}

.planes-cupon-icono svg {
  height: 1.1rem;
  width: 1.1rem;
}

.planes-cupon-encabezado strong {
  color: #0f172a;
  display: block;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
}

.planes-cupon-encabezado small {
  color: #64748b;
  display: block;
  font-size: .75rem;
  line-height: 1.35;
  margin-top: .12rem;
}

.planes-cupon-controles {
  align-items: center;
  display: flex;
  flex: 0 1 360px;
  gap: .5rem;
  justify-content: flex-end;
  min-width: min(100%, 260px);
}

.planes-cupon-input {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box;
  color: #0f172a;
  flex: 1 1 150px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .86rem;
  font-weight: 700;
  height: 2.5rem;
  letter-spacing: .04em;
  min-width: 0;
  padding: .45rem .8rem;
  text-transform: uppercase;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.planes-cupon-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / .14);
  outline: none;
}

.planes-cupon-input:disabled {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e3a8a;
}

.planes-cupon-btn {
  align-items: center;
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  gap: .35rem;
  height: 2.5rem;
  justify-content: center;
  padding: 0 .95rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  width: auto !important;
}

.planes-cupon-btn[hidden] {
  display: none !important;
}

.planes-cupon-btn svg {
  height: .92rem;
  width: .92rem;
}

.planes-cupon-btn--aplicar {
  background: #1d4ed8;
  border: 1px solid #1d4ed8;
  color: #fff;
}

.planes-cupon-btn--aplicar:hover:not(:disabled) {
  background: #1e40af;
  border-color: #1e40af;
}

.planes-cupon-btn--aplicar:disabled {
  cursor: wait;
  opacity: .75;
}

.planes-cupon-btn--quitar {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.planes-cupon-btn--quitar:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.planes-cupon-estado {
  align-items: center;
  border-radius: 10px;
  display: flex;
  font-size: .78rem;
  font-weight: 600;
  gap: .4rem;
  line-height: 1.35;
  margin: 0;
  padding: .48rem .75rem;
}

.planes-cupon-estado[hidden] {
  display: none !important;
}

.planes-cupon-estado--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.planes-cupon-estado--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.plan-compra-precio.plan-compra-precio--con-descuento {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: .42rem;
}

.plan-compra-precio-fila {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  line-height: 1;
}

.plan-compra-precio-valor {
  color: var(--color-texto-principal, #0f172a);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.045em;
}

.plan-compra-precio-ahorro {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.plan-compra-precio .plan-compra-precio-antes {
  color: #64748b;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  text-decoration: line-through;
}

.plan-compra-precio .plan-compra-descuento-pill {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: .68rem !important;
  font-style: normal;
  font-weight: 800 !important;
  gap: .25rem;
  letter-spacing: 0 !important;
  line-height: 1.15;
  margin: 0;
  padding: .24rem .55rem;
  width: fit-content;
}

.plan-compra-precio .plan-compra-descuento-pill svg {
  flex: 0 0 auto;
  height: .76rem;
  width: .76rem;
}

@media (max-width: 640px) {
  .planes-cupon-portal {
    padding: .85rem .9rem;
  }
  .planes-cupon-controles {
    flex: 1 1 100%;
  }
  .plan-compra-precio-valor {
    font-size: 1.5rem;
  }
}
