/* ============================================================
   COMPANY PAGE — company.css
   Extiende styles.css + dite.css. Sin colores hardcodeados.
   ============================================================ */

/* ════════════════════════════════════════════
   TOKENS
   ════════════════════════════════════════════ */

:root,
[data-theme="light"] {
  --adm-bg:              #f0f4fd;
  --adm-header-h:        var(--dite-header-h, 4rem);
  --adm-bottom-nav-h:    4rem;

  --adm-card-bg:         rgba(255,255,255,.65);
  --adm-card-border:     rgba(255,255,255,.55);
  --adm-card-shadow:     0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);

  --adm-text:            #0d1c2e;
  --adm-text-muted:      #5a6070;
  --adm-label:           #747688;

  --adm-field-bg:        var(--surface-container-highest, #d5e3fc);
  --adm-field-bg-focus:  var(--surface-container-lowest, #ffffff);
  --adm-field-border:    transparent;
  --adm-field-ring:      rgba(0,53,197,.35);

  --adm-prefix-bg:       var(--surface-container-high, #dce9ff);
  --adm-prefix-text:     var(--on-surface-variant, #434657);
  --adm-prefix-border:   var(--outline-variant, #c4c5da);

  --adm-tip-bg:          var(--primary-container, #0047ff);
  --adm-tip-text:        #ffffff;
  --adm-tip-eyebrow:     rgba(185,195,255,.9);

  --adm-brand-card-bg:   var(--surface-container-low, #eff4ff);
  --adm-brand-card-border: rgba(255,255,255,.3);

  --adm-logo-overlay-bg: rgba(0,53,197,.42);

  --adm-tab-text:        var(--on-surface-variant, #434657);
  --adm-tab-active-bg:   rgba(0,53,197,.07);
  --adm-tab-active-text: var(--primary, #0035c5);

  --adm-fab-bg:          var(--primary, #0035c5);
  --adm-fab-text:        #ffffff;
  --adm-fab-shadow:      0 8px 28px rgba(0,53,197,.35);

  --adm-bottom-nav-bg:   rgba(255,255,255,.92);
  --adm-bottom-nav-border: var(--outline-variant, #c4c5da);
  --adm-bottom-nav-text: var(--on-surface-variant, #434657);
  --adm-bottom-nav-active: var(--primary, #0035c5);

  --adm-avatar-bg:       var(--primary, #0035c5);
  --adm-avatar-text:     #ffffff;

  --adm-empty-icon:      var(--primary, #0035c5);

  --adm-plan-badge-bg:   var(--surface-container-high, #dce9ff);
  --adm-plan-badge-text: var(--primary, #0035c5);

  --adm-header-bg:       rgba(255,255,255,.88);
  --adm-header-border:   rgba(220,228,255,.9);
}

[data-theme="dark"] {
  --adm-bg:              #0b0e14;

  --adm-card-bg:         rgba(22,26,35,.72);
  --adm-card-border:     rgba(67,70,87,.4);
  --adm-card-shadow:     0 4px 20px rgba(0,0,0,.45);

  --adm-text:            #eaf1ff;
  --adm-text-muted:      #8b92a5;
  --adm-label:           #9393a5;

  --adm-field-bg:        var(--surface-container, #232426);
  --adm-field-bg-focus:  var(--surface-container-high, #2a2b2d);
  --adm-field-border:    transparent;
  --adm-field-ring:      rgba(0,71,255,.45);

  --adm-prefix-bg:       var(--surface-container-high, #2a2b2d);
  --adm-prefix-text:     var(--on-surface-variant, #c4c5da);
  --adm-prefix-border:   var(--outline-variant, #434657);

  --adm-tip-bg:          #0f1a3a;
  --adm-tip-text:        #eaf1ff;
  --adm-tip-eyebrow:     rgba(130,160,255,.85);

  --adm-brand-card-bg:   var(--surface-container, #232426);
  --adm-brand-card-border: rgba(67,70,87,.5);

  --adm-logo-overlay-bg: rgba(0,71,255,.5);

  --adm-tab-text:        var(--on-surface-variant, #c4c5da);
  --adm-tab-active-bg:   rgba(0,71,255,.14);
  --adm-tab-active-text: var(--primary, #0047ff);

  --adm-fab-bg:          var(--primary, #0047ff);
  --adm-fab-text:        #ffffff;
  --adm-fab-shadow:      0 8px 28px rgba(0,71,255,.4);

  --adm-bottom-nav-bg:   rgba(22,26,35,.95);
  --adm-bottom-nav-border: var(--outline-variant, #434657);
  --adm-bottom-nav-text: var(--on-surface-variant, #c4c5da);
  --adm-bottom-nav-active: var(--primary, #0047ff);

  --adm-avatar-bg:       var(--primary, #0047ff);
  --adm-avatar-text:     #ffffff;

  --adm-empty-icon:      var(--primary, #0047ff);

  --adm-plan-badge-bg:   rgba(0,71,255,.12);
  --adm-plan-badge-text: #82a0ff;

  --adm-header-bg:       rgba(11,14,20,.88);
  --adm-header-border:   rgba(67,70,87,.4);
}

/* ════════════════════════════════════════════
   BODY
   ════════════════════════════════════════════ */

.adm-body {
  background: var(--adm-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════
   HEADER
   Extiende .dite-header de dite.css
   ════════════════════════════════════════════ */

.adm-header {
  --dite-header-bg:     var(--adm-header-bg);
  --dite-header-border: var(--adm-header-border);
  /* El header de admin es más alto para acomodar los tabs */
  height: auto !important;
  min-height: var(--adm-header-h);
}

.adm-header__inner {
  /* Sobreescribe el inner de dite para layout de 2 filas en mobile */
  flex-wrap: wrap;
  gap: 0;
  padding-block: .625rem;
  max-width: 100%;
  padding-inline: 2rem;
  align-items: center;
}

.adm-header__brand-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

.adm-header__brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.adm-header__brand-icon {
  font-size: 1.625rem;
  color: var(--adm-tab-active-text);
  display: inline-block;
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  vertical-align: middle;
}

.adm-header__brand-text {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--adm-text);
  white-space: nowrap;
}

.adm-header__actions {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}

/* Avatar de usuario en header */
.adm-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--adm-avatar-bg);
  color: var(--adm-avatar-text);
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
}

/* ── Tabs (Desktop) ── */
.adm-tabs {
  display: none;
  align-items: center;
  gap: .25rem;
}

@media (min-width: 1024px) { .adm-tabs { display: flex; } }

.adm-tab {
  padding: .5rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 600;
  color: var(--adm-tab-text);
  background: transparent;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.adm-tab:hover { color: var(--adm-tab-active-text); background: var(--adm-tab-active-bg); }

.adm-tab--active {
  background: var(--adm-tab-active-bg);
  color: var(--adm-tab-active-text);
  font-weight: 700;
}

/* ════════════════════════════════════════════
   MAIN / CANVAS
   ════════════════════════════════════════════ */

.adm-main {
  padding-top: var(--adm-header-h);
  padding-bottom: calc(var(--adm-bottom-nav-h) + 1rem);
  min-height: 100vh;
}

@media (min-width: 768px) { .adm-main { padding-bottom: 3rem; } }

.adm-canvas {
  max-width: 100rem;
  margin-inline: auto;
  padding: 2rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 768px) { .adm-canvas { padding: 3rem; } }

/* ── Page header ── */
.adm-page-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .adm-page-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.adm-page-header__eyebrow {
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--adm-tab-active-text);
  margin-bottom: .25rem;
}

.adm-page-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--adm-text);
}

.adm-page-header__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 700;
  padding: .625rem 1.375rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
}

.adm-btn .material-symbols-outlined { font-size: 1.125rem; }

.adm-btn--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}
.adm-btn--primary:hover  { opacity: .92; box-shadow: 0 6px 20px rgba(0,71,255,.35); }
.adm-btn--primary:active { transform: scale(.97); }

.adm-btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(0,71,255,.25);
}
.adm-btn--ghost:hover  { background: var(--primary-fixed); }
.adm-btn--ghost:active { transform: scale(.97); }

[data-theme="dark"] .adm-btn--ghost:hover { background: rgba(0,71,255,.12); }

/* ════════════════════════════════════════════
   GLASSMORPHISM
   ════════════════════════════════════════════ */

.adm-glass {
  background: var(--adm-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--adm-card-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--adm-card-shadow);
  overflow: hidden;
}

[data-theme="dark"] .adm-glass { backdrop-filter: none; }

/* ════════════════════════════════════════════
   TAB PANELS
   ════════════════════════════════════════════ */

.adm-tab-panel {
  min-height: 37.5rem;
  padding: 2.5rem;
  animation: adm-fadein .22s ease;
}

@keyframes adm-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adm-tab-panel[hidden] { display: none; }

/* ── Layout 2 columnas ── */
.adm-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .adm-panel-grid { grid-template-columns: 1fr 22rem; }
}

/* ════════════════════════════════════════════
   FORMULARIO
   ════════════════════════════════════════════ */

.adm-form-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.adm-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .adm-form-grid { grid-template-columns: 1fr 1fr; }
}

.adm-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .adm-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.adm-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.adm-field--full { grid-column: 1 / -1; }

.adm-field__label {
  font-size: .625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--adm-label);
  padding-inline: .25rem;
}

.adm-field__input {
  width: 100%;
  padding: .875rem 1rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--adm-field-border);
  background: var(--adm-field-bg);
  color: var(--adm-text);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  outline: none;
  transition: background .2s, box-shadow .2s, border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.adm-field__input:focus {
  background: var(--adm-field-bg-focus);
  box-shadow: 0 0 0 3px var(--adm-field-ring);
  border-color: transparent;
}

.adm-field__input::placeholder { color: var(--adm-label); opacity: .6; }

.adm-field__input--textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.6;
}

.adm-field__input--select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23747688' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  cursor: pointer;
}

/* Input con prefijo https:// */
.adm-field__input-prefix-wrap {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .2s;
}

.adm-field__input-prefix-wrap:focus-within {
  box-shadow: 0 0 0 3px var(--adm-field-ring);
}

.adm-field__prefix {
  padding: .875rem 1rem;
  background: var(--adm-prefix-bg);
  color: var(--adm-prefix-text);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid var(--adm-prefix-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.adm-field__input--prefixed {
  border-radius: 0;
  box-shadow: none !important;
  border-left: none;
  flex: 1;
}

/* ════════════════════════════════════════════
   COLUMNA BRANDING
   ════════════════════════════════════════════ */

.adm-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Brand card */
.adm-brand-card {
  background: var(--adm-brand-card-bg);
  border: 1px solid var(--adm-brand-card-border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}

.adm-brand-card__title {
  font-family: var(--font-headline);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--adm-text);
  margin-bottom: 1.5rem;
}

/* Plan Badge / Message info */
.adm-plan-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--adm-plan-badge-bg);
  color: var(--adm-plan-badge-text);
  padding: .625rem .875rem;
  border-radius: var(--radius-lg);
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: adm-fadein .3s ease;
}

.adm-plan-badge .material-symbols-outlined {
  font-size: 1.125rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Logo uploader */
.adm-logo-uploader {
  aspect-ratio: 1;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--adm-card-border);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.05);
  margin-bottom: 1.25rem;
  transition: box-shadow .2s;
}

.adm-logo-uploader:hover { box-shadow: inset 0 2px 6px rgba(0,0,0,.05), 0 0 0 3px var(--adm-field-ring); }

/* Estado deshabilitado (sin plan) */
.adm-logo-uploader--disabled {
  cursor: not-allowed;
  opacity: 0.8;
  filter: grayscale(0.5);
  background: var(--surface-container-high);
}

.adm-logo-uploader--disabled::after {
  content: 'lock';
  font-family: 'Material Symbols Outlined';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.25rem;
  color: var(--on-surface-variant);
  opacity: 0.6;
}

.adm-logo-uploader--disabled:hover {
  box-shadow: none;
}

.adm-logo-uploader--disabled:hover .adm-logo-uploader__overlay {
  opacity: 0;
}

[data-theme="dark"] .adm-logo-uploader { background: var(--surface-container); }

.adm-logo-uploader__img {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  opacity: .22;
  transition: opacity .25s;
}

.adm-logo-uploader:hover .adm-logo-uploader__img { opacity: .08; }

.adm-logo-uploader__overlay {
  position: absolute;
  inset: 0;
  background: var(--adm-logo-overlay-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  color: #ffffff;
  font-size: .8125rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s;
}

.adm-logo-uploader__overlay .material-symbols-outlined { font-size: 1.75rem; }
.adm-logo-uploader:hover .adm-logo-uploader__overlay { opacity: 1; }

/* Ocultar input file real */
.adm-logo-uploader__file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Tip card */
.adm-tip-card {
  background: var(--adm-tip-bg);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adm-tip-card__body { position: relative; z-index: 1; padding-right: 5rem; }

.adm-tip-card__eyebrow {
  display: block;
  font-size: .625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--adm-tip-eyebrow);
  margin-bottom: .625rem;
}

.adm-tip-card__text {
  font-size: .875rem;
  font-weight: 500;
  color: var(--adm-tip-text);
  line-height: 1.65;
}

.adm-tip-card__mascot {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  width: 8rem;
  opacity: .3;
  pointer-events: none;
}

.adm-tip-card__mascot img { width: 100%; height: 100%; object-fit: contain; }

/* ════════════════════════════════════════════
   SECCIÓN INFERIOR (Hacienda + Firma)
   ════════════════════════════════════════════ */

.adm-panel-footer {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--adm-header-border);
}

.adm-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .adm-footer-grid { grid-template-columns: 1.5fr 1fr; }
}

/* Dropzone compacto para certificados */
.adm-mini-dropzone {
  background: var(--surface-container-lowest);
  border: 2px dashed var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .75rem;
  cursor: pointer;
  transition: all .2s;
  min-height: 10rem;
  position: relative;
}

[data-theme="dark"] .adm-mini-dropzone { background: var(--surface-container); }

.adm-mini-dropzone:hover {
  border-color: var(--primary);
  background: var(--adm-tab-active-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.adm-mini-dropzone--active {
  border-color: var(--primary);
  background: var(--adm-tab-active-bg);
}

.adm-mini-dropzone__icon {
  font-size: 2rem;
  color: var(--on-surface-variant);
  opacity: .5;
}

.adm-mini-dropzone__text {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--adm-text);
}

.adm-mini-dropzone__filename {
  font-size: .75rem;
  font-weight: 500;
  color: var(--primary);
  word-break: break-all;
  display: none;
}

.adm-mini-dropzone.has-file .adm-mini-dropzone__filename { display: block; }
.adm-mini-dropzone.has-file .adm-mini-dropzone__icon { color: var(--primary); opacity: 1; }
.adm-mini-dropzone.has-file .adm-mini-dropzone__text { display: none; }

/* ════════════════════════════════════════════
   ESTADO VACÍO (tabs sin contenido aún)
   ════════════════════════════════════════════ */

.adm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 25rem;
  gap: 1rem;
}

.adm-empty-state__icon {
  font-size: 3.5rem;
  color: var(--adm-empty-icon);
  opacity: .35;
  display: block;
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
  line-height: 1;
}

.adm-empty-state__title {
  font-family: var(--font-headline);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--adm-text);
}

.adm-empty-state__desc {
  font-size: .9375rem;
  color: var(--adm-text-muted);
  max-width: 24rem;
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   FAB
   ════════════════════════════════════════════ */

.adm-fab {
  position: fixed;
  bottom: calc(var(--adm-bottom-nav-h) + 1rem);
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--adm-fab-bg);
  color: var(--adm-fab-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--adm-fab-shadow);
  transition: transform .2s, box-shadow .2s;
}

.adm-fab:hover  { transform: scale(1.1); box-shadow: 0 12px 36px rgba(0,53,197,.45); }
.adm-fab:active { transform: scale(.95); }

.adm-fab .material-symbols-outlined { transition: transform .25s; }
.adm-fab:hover .material-symbols-outlined { transform: rotate(12deg); }

@media (min-width: 768px) {
  .adm-fab { bottom: 2rem; }
}

/* ════════════════════════════════════════════
   BOTTOM NAV (solo mobile)
   ════════════════════════════════════════════ */

.adm-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  height: var(--adm-bottom-nav-h);
  background: var(--adm-bottom-nav-bg);
  border-top: 1px solid var(--adm-bottom-nav-border);
  backdrop-filter: blur(12px);
  z-index: 60;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 768px) { .adm-bottom-nav { display: none; } }

.adm-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1875rem;
  flex: 1;
  font-size: .625rem;
  font-weight: 700;
  color: var(--adm-bottom-nav-text);
  background: none;
  border: none;
  cursor: pointer;
  padding-block: .5rem;
  transition: color .2s;
}

.adm-bottom-nav__item .material-symbols-outlined { font-size: 1.375rem; }
.adm-bottom-nav__item:hover { color: var(--adm-bottom-nav-active); }

.adm-bottom-nav__item--active { color: var(--adm-bottom-nav-active); }

/* ════════════════════════════════════════════
   TOAST (reutilizado del dashboard)
   ════════════════════════════════════════════ */

.adm-toast {
  position: fixed;
  bottom: calc(var(--adm-bottom-nav-h) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(4rem);
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s;
  pointer-events: none;
  z-index: 300;
  white-space: nowrap;
}

.adm-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.adm-toast .material-symbols-outlined { font-size: 1.125rem; color: #4ade80; }

@media (min-width: 768px) { .adm-toast { bottom: 2.5rem; } }

/* ════════════════════════════════════════════
   CONFIGURACION / AJUSTES DE PERFIL
   ════════════════════════════════════════════ */

.conf-main {
  padding-top: var(--adm-header-h, 4rem);
  min-height: 100vh;
}

.conf-container {
  max-width: 52rem;
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4rem;
}

.conf-page-header {
  margin-bottom: 2rem;
}

.conf-page-title {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--adm-text);
}

.conf-page-sub {
  font-size: 0.875rem;
  color: var(--adm-text-muted);
  margin-top: 0.25rem;
}

.adm-alert {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.adm-alert--success {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.adm-alert--error {
  background: #ffdad6;
  color: #410002;
}

[data-theme="dark"] .adm-alert--error {
  background: rgba(255, 90, 80, .15);
  color: #ffb4ab;
}

.conf-card {
  padding: 2.5rem;
  margin-top: 0.5rem;
}

.conf-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 0.75rem;
  color: var(--adm-text);
}

.conf-section-title + .adm-form-grid,
.conf-section-title--mt {
  margin-top: 2.5rem;
}

.conf-security {
  opacity: 0.72;
}

.adm-field__hint {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  display: block;
  margin-top: 0.25rem;
}

.adm-field__input--disabled {
  background: var(--surface-container-low) !important;
  cursor: not-allowed;
  opacity: 0.8;
}

.conf-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--outline-variant);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Chip wrapper: needed for dropdown absolute positioning */
.db-chip-wrap {
  position: relative;
}
