/* ============================================================
   Paz House 8.2 F1
   Primitivas visuales compartidas.
   F2-F6 migraran los componentes especificos sobre esta base.
   ============================================================ */

/* Botones */
.btn {
  min-height: var(--ph-control-h);
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--ph-radius-pill);
  font-family: var(--ph-font-sans);
  font-size: var(--ph-fs-14);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color var(--ph-fast), border-color var(--ph-fast), color var(--ph-fast), box-shadow var(--ph-fast), transform var(--ph-fast);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--oro {
  background: var(--ph-brand);
  color: var(--ph-text);
  border-color: var(--ph-brand);
  box-shadow: 0 10px 24px rgba(255, 79, 168, .20);
}

.btn--oro:hover {
  background: var(--ph-brand-hover);
  border-color: var(--ph-brand-hover);
  color: #fff;
  box-shadow: 0 12px 28px rgba(196, 31, 122, .24);
}

.btn--outline {
  background: var(--ph-surface);
  color: var(--ph-brand-text);
  border-color: var(--ph-brand-border);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--ph-brand-soft);
  border-color: var(--ph-brand);
  color: var(--ph-brand-text);
}

.btn--ghost {
  background: transparent;
  color: var(--ph-text);
  border-color: var(--ph-border);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--ph-surface-soft);
  border-color: var(--ph-border-strong);
  color: var(--ph-text);
}

/* Controles de formulario */
.form-input,
input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']):not([type='file']),
select,
textarea {
  min-height: var(--ph-control-h);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-md);
  background: var(--ph-surface);
  color: var(--ph-text);
  box-shadow: none;
  transition: border-color var(--ph-fast), box-shadow var(--ph-fast), background-color var(--ph-fast);
}

input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']):not([type='file']),
select,
textarea {
  padding-inline: 14px;
}

textarea { padding-block: 12px; }

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #938a91;
  opacity: 1;
}

.form-input:focus,
input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']):not([type='file']):focus,
select:focus,
textarea:focus {
  border-color: var(--ph-brand-text);
  background: var(--ph-surface);
  box-shadow: 0 0 0 4px rgba(255, 79, 168, .10);
  outline: none;
}

/* Labels editoriales y utilidades de marca */
.t-label,
.eyebrow {
  color: var(--ph-brand-text);
  font-family: var(--ph-font-sans);
  font-size: var(--ph-fs-12);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.linea-oro {
  width: 56px;
  height: 3px;
  border-radius: var(--ph-radius-pill);
  background: linear-gradient(90deg, var(--ph-brand), var(--ph-orange));
}

/* Superficies y badges reutilizables para fases siguientes */
.ph-surface {
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-lg);
  background: var(--ph-surface);
  box-shadow: var(--ph-shadow-sm);
}

.ph-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--ph-radius-pill);
  background: var(--ph-brand-soft);
  color: var(--ph-brand-text);
  font-size: var(--ph-fs-12);
  font-weight: 700;
  line-height: 1;
}

.ph-icon-button {
  display: inline-grid;
  place-items: center;
  width: var(--ph-control-h);
  height: var(--ph-control-h);
  padding: 0;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-pill);
  background: var(--ph-surface);
  color: var(--ph-text);
  cursor: pointer;
  transition: background-color var(--ph-fast), border-color var(--ph-fast), color var(--ph-fast), transform var(--ph-fast);
}

.ph-icon-button:hover {
  border-color: var(--ph-brand-border);
  background: var(--ph-brand-soft);
  color: var(--ph-brand-text);
}

.ph-icon-button:active { transform: scale(.97); }

/* Alertas */
.alert {
  border-radius: var(--ph-radius-md);
  border-width: 1px;
  font-size: var(--ph-fs-14);
}

.alert--info {
  border-color: var(--ph-brand-border);
  background: var(--ph-brand-soft);
  color: var(--ph-brand-text);
}

/* Scrollbars discretas en escritorio, sin alterar el gesto tactil */
@media (hover: hover) and (pointer: fine) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #d8cbd3 transparent;
  }

  *::-webkit-scrollbar { width: 7px; height: 7px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb {
    border-radius: var(--ph-radius-pill);
    background: #d8cbd3;
  }
  *::-webkit-scrollbar-thumb:hover { background: #c8b8c2; }
}
