/* Acciones tipográficas (piloto ABM propietarios). Color = luz en texto y línea, sin caja rellena. */

.tx-act {
  --tx-rest: 230, 224, 216;
  --tx-line-rest: 255, 252, 248;
  --tx-line-rest-a: 0.1;
  --tx-h1: 250, 248, 244;
  --tx-h2: 235, 230, 222;
  --tx-h3: 216, 210, 202;
  --tx-line-mid: 220, 228, 222;
  --tx-line-mid-a: 0.42;
  --tx-glow: 160, 168, 162;
  --tx-glow-a: 0.1;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 6px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(var(--tx-rest), 0.55);
  transition:
    color 0.32s ease,
    opacity 0.28s ease,
    transform 0.18s ease;
}

.tx-act__text {
  position: relative;
  z-index: 1;
  transition:
    background 0.38s ease,
    -webkit-text-fill-color 0.38s ease;
}

.tx-act::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 1px;
  border-radius: 999px;
  opacity: 0.45;
  background: rgba(var(--tx-line-rest), var(--tx-line-rest-a));
  transform: scaleX(0.38);
  transform-origin: left center;
  transition:
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.2s ease,
    opacity 0.3s ease,
    background 0.36s ease,
    box-shadow 0.36s ease;
}

.tx-act:hover:not(:disabled),
.tx-act:active:not(:disabled) {
  color: rgba(var(--tx-rest), 0.92);
}

.tx-act:hover:not(:disabled) .tx-act__text,
.tx-act:active:not(:disabled) .tx-act__text {
  background: linear-gradient(
    118deg,
    rgb(var(--tx-h1)) 0%,
    rgb(var(--tx-h2)) 46%,
    rgb(var(--tx-h3)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tx-act:hover:not(:disabled)::after,
.tx-act:active:not(:disabled)::after {
  opacity: 1;
  height: 1.5px;
  transform: scaleX(1);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--tx-line-mid), calc(var(--tx-line-mid-a) * 0.55)) 22%,
    rgba(var(--tx-line-mid), var(--tx-line-mid-a)) 50%,
    rgba(var(--tx-line-mid), calc(var(--tx-line-mid-a) * 0.55)) 78%,
    transparent 100%
  );
  box-shadow: 0 4px 16px rgba(var(--tx-glow), var(--tx-glow-a));
}

.tx-act:focus-visible {
  outline: none;
}
.tx-act:focus-visible::after {
  opacity: 0.75;
}

.tx-act:disabled {
  opacity: 0.26;
  cursor: not-allowed;
  transform: none;
}
.tx-act:disabled::after {
  opacity: 0.12;
  transform: scaleX(0.22);
  box-shadow: none;
}
.tx-act:disabled .tx-act__text {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.tx-act--accept,
.tx-act--primary {
  --tx-rest: 168, 198, 182;
  --tx-line-rest: 130, 185, 165;
  --tx-line-rest-a: 0.2;
  --tx-h1: 244, 252, 248;
  --tx-h2: 210, 235, 224;
  --tx-h3: 168, 205, 186;
  --tx-line-mid: 150, 210, 185;
  --tx-line-mid-a: 0.48;
  --tx-glow: 90, 155, 125;
  --tx-glow-a: 0.11;
  color: rgba(var(--tx-rest), 0.62);
}

.tx-act--cancel {
  --tx-rest: 210, 178, 172;
  --tx-line-rest: 195, 145, 138;
  --tx-line-rest-a: 0.18;
  --tx-h1: 255, 248, 246;
  --tx-h2: 240, 210, 205;
  --tx-h3: 218, 175, 168;
  --tx-line-mid: 225, 155, 145;
  --tx-line-mid-a: 0.45;
  --tx-glow: 180, 110, 100;
  --tx-glow-a: 0.1;
  color: rgba(var(--tx-rest), 0.58);
  font-weight: 500;
}

.tx-act--danger {
  --tx-rest: 215, 172, 168;
  --tx-line-rest: 200, 130, 125;
  --tx-line-rest-a: 0.22;
  --tx-h1: 255, 246, 244;
  --tx-h2: 245, 200, 195;
  --tx-h3: 225, 165, 158;
  --tx-line-mid: 235, 140, 130;
  --tx-line-mid-a: 0.5;
  --tx-glow: 190, 95, 88;
  --tx-glow-a: 0.11;
  color: rgba(var(--tx-rest), 0.64);
}

.tx-act--edit,
.tx-act--secondary {
  --tx-rest: 210, 188, 155;
  --tx-line-rest: 200, 165, 110;
  --tx-line-rest-a: 0.18;
  --tx-h1: 255, 250, 242;
  --tx-h2: 245, 225, 195;
  --tx-h3: 228, 195, 150;
  --tx-line-mid: 235, 195, 130;
  --tx-line-mid-a: 0.44;
  --tx-glow: 200, 155, 80;
  --tx-glow-a: 0.1;
  color: rgba(var(--tx-rest), 0.58);
  font-weight: 500;
}

.tx-act--ghost {
  --tx-rest: 168, 162, 154;
  --tx-line-rest-a: 0.08;
  color: rgba(var(--tx-rest), 0.48);
  font-weight: 500;
  font-size: 0.86rem;
}
.tx-act--ghost::after {
  opacity: 0.35;
  transform: scaleX(0.3);
}

/* Piloto: cabeceras tarjeta ABM propietarios */
#ndModalProp .pp-card__head-actions {
  gap: 0.35rem 1.5rem;
}
#ndModalProp .pp-card__head-actions .tx-act.hidden {
  display: none !important;
}

/* Tema claro (tarjetas claras del modal) */
html:not(.theme-f10) #ndModalProp .pp-card__head-actions .tx-act {
  --tx-rest: 71, 85, 105;
  --tx-line-rest: 30, 41, 59;
  --tx-line-rest-a: 0.14;
  --tx-h1: 15, 23, 42;
  --tx-h2: 51, 65, 85;
  --tx-h3: 100, 116, 139;
  --tx-line-mid: 71, 85, 105;
  --tx-line-mid-a: 0.5;
  --tx-glow: 100, 116, 139;
  --tx-glow-a: 0.08;
  color: rgba(var(--tx-rest), 0.65);
}
html:not(.theme-f10) #ndModalProp .pp-card__head-actions .tx-act--accept,
html:not(.theme-f10) #ndModalProp .pp-card__head-actions .tx-act--primary {
  --tx-rest: 4, 120, 87;
  --tx-h1: 6, 78, 59;
  --tx-h2: 5, 150, 105;
  --tx-h3: 16, 185, 129;
  --tx-line-mid: 16, 185, 129;
  --tx-glow: 16, 185, 129;
}
html:not(.theme-f10) #ndModalProp .pp-card__head-actions .tx-act--cancel {
  --tx-rest: 120, 90, 85;
  --tx-h1: 127, 29, 29;
  --tx-h2: 185, 28, 28;
  --tx-h3: 220, 100, 90;
  --tx-line-mid: 239, 68, 68;
  --tx-glow: 239, 68, 68;
}
html:not(.theme-f10) #ndModalProp .pp-card__head-actions .tx-act--danger {
  --tx-rest: 153, 27, 27;
  --tx-h1: 127, 29, 29;
  --tx-h2: 185, 28, 28;
  --tx-h3: 220, 80, 70;
  --tx-line-mid: 220, 38, 38;
  --tx-glow: 220, 38, 38;
}
html:not(.theme-f10) #ndModalProp .pp-card__head-actions .tx-act--edit,
html:not(.theme-f10) #ndModalProp .pp-card__head-actions .tx-act--secondary {
  --tx-rest: 146, 110, 50;
  --tx-h1: 120, 83, 18;
  --tx-h2: 180, 130, 40;
  --tx-h3: 217, 150, 60;
  --tx-line-mid: 217, 150, 60;
  --tx-glow: 217, 150, 60;
}
