/* Ensigna Tours V9.0.4 · Formatos, formularios y CTAs coherentes */
:root{--v904-primary:#3011bc;--v904-focus:rgba(48,17,188,.16);--v904-border:#d8dfeb;--v904-ink:#172033;--v904-muted:#66758a;--v904-soft:#f8f9fd}

/* Controles: una sola apariencia V9 para admin/operación. */
body[data-ensigna-user-type] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
body[data-ensigna-user-type] select,
body[data-ensigna-user-type] textarea{
  width:100%;max-width:100%;min-height:46px;box-sizing:border-box;
  border:1px solid var(--v904-border);border-radius:13px;padding:11px 13px;
  background:#fff;color:var(--v904-ink);font:inherit;font-size:16px;line-height:1.3;
  box-shadow:0 1px 0 rgba(15,23,42,.02);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
body[data-ensigna-user-type] textarea{min-height:104px;resize:vertical}
body[data-ensigna-user-type] input::placeholder,body[data-ensigna-user-type] textarea::placeholder{color:#8a94a6;opacity:1}
body[data-ensigna-user-type] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body[data-ensigna-user-type] select:focus,body[data-ensigna-user-type] textarea:focus{outline:0;border-color:var(--v904-primary);box-shadow:0 0 0 4px var(--v904-focus)}
body[data-ensigna-user-type] input:disabled,body[data-ensigna-user-type] select:disabled,body[data-ensigna-user-type] textarea:disabled{background:#f1f3f7;color:#8791a2;cursor:not-allowed}
body[data-ensigna-user-type] label.admin-field,body[data-ensigna-user-type] .admin-field{min-width:0}
body[data-ensigna-user-type] .admin-field>span:first-child,body[data-ensigna-user-type] .admin-field>label:first-child{display:block;margin:0 0 6px;color:var(--v904-muted);font-weight:800}
body[data-ensigna-user-type] .admin-filter{align-items:end;gap:12px}
body[data-ensigna-user-type] .admin-filter>input,body[data-ensigna-user-type] .admin-filter>select{min-width:0}

/* Acciones que antes aparecían como texto suelto. */
body[data-ensigna-user-type] a.v904-action-link{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;margin:6px 4px 0 0;
  border:1px solid rgba(48,17,188,.17);border-radius:12px;background:#f1efff;color:var(--v904-primary);
  font-weight:800;text-decoration:none;line-height:1.2;transition:transform .12s ease,box-shadow .12s ease,background .12s ease;
}
body[data-ensigna-user-type] a.v904-action-link:hover{background:#e8e4ff;box-shadow:0 8px 20px rgba(48,17,188,.10);transform:translateY(-1px)}

/* Marketing: filtros avanzados colapsables en móvil. */
.v904-filter-panel{margin:0 0 18px;border:0}.v904-filter-summary{display:none;cursor:pointer;list-style:none;padding:13px 15px;border-radius:14px;background:#f1efff;color:var(--v904-primary);font-weight:900;margin-bottom:10px}.v904-filter-summary::-webkit-details-marker{display:none}.v904-filter-summary:after{content:"⌄";float:right}.v904-filter-panel[open]>.v904-filter-summary:after{content:"⌃"}.v904-section-select-wrap{display:none;margin:0 0 14px}.v904-section-select-wrap label{display:grid;gap:6px;color:var(--v904-muted);font-weight:800}.v904-section-select-wrap select{min-height:48px}

/* Presentación consistente de estados humanizados. */
.v904-human-status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef1ff;color:var(--v904-primary);font-weight:800;font-size:.8rem}

@media(max-width:760px){
  body[data-ensigna-user-type] .admin-filter{display:grid!important;grid-template-columns:1fr!important;width:100%}
  body[data-ensigna-user-type] .admin-filter>*{width:100%;max-width:100%}
  body[data-ensigna-user-type] .admin-filter .admin-button,body[data-ensigna-user-type] .admin-filter .admin-button-secondary{width:100%}
  body[data-ensigna-user-type] a.v904-action-link{width:100%;margin:7px 0 0}
  .v904-filter-summary{display:block}.v904-filter-panel>.admin-card{margin-bottom:0}.v904-section-select-wrap{display:block}.v821-tabs.v904-desktop-tabs{display:none!important}
  .v821-filter{grid-template-columns:1fr!important}
  .v821-filter>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v821-filter>div>*{width:100%;margin:0!important}
}
@media(max-width:420px){.v821-filter>div{grid-template-columns:1fr}}
