/* V374 — Central de Recursos + autocomplete */
.resources-panel{display:block;margin:0 auto 28px;max-width:1180px;padding:0 2px;color:var(--text)}
.resources-topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;margin-bottom:16px;padding:20px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(135deg,var(--card),var(--primary-soft-2));box-shadow:var(--shadow)}
.resources-topbar h2{margin:2px 0 4px;font-size:clamp(24px,3vw,34px);color:var(--b3)}.resources-topbar p{margin:0;color:var(--text-muted);font-weight:700}.resource-eyebrow{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:900;color:var(--primary)}
.resources-back{width:42px;height:42px;min-width:42px;padding:0;margin:0;display:grid;place-items:center;border-radius:13px}.resources-new{margin:0;white-space:nowrap}.resources-card{position:relative;background:var(--card);border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:var(--shadow)}
.resources-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:12px;margin-bottom:14px}.resources-toolbar label{margin:0;font-size:12px;color:var(--text-muted)}.resources-toolbar input,.resources-toolbar select{margin-top:6px;background:var(--surface);border-color:var(--border)}
.resources-list{display:grid;gap:9px}.resource-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.resource-row-image{width:58px;height:58px;border-radius:13px;overflow:hidden;background:var(--primary-soft);display:grid;place-items:center;color:var(--primary);font-weight:950}.resource-row-image img{width:100%;height:100%;object-fit:cover}.resource-row-main{min-width:0}.resource-row-title{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.resource-row-main strong{color:var(--text);font-size:14px}.resource-row-main p{margin:4px 0 0;color:var(--text-muted);font-size:12px;font-weight:700}.resource-row-main small{display:block;margin-top:3px;color:var(--primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.resource-row-actions button{margin:0;min-height:38px}.resource-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900}.resource-status.is-active{background:var(--success-bg);color:var(--success)}.resource-status.is-inactive{background:var(--danger-bg);color:var(--danger)}.resources-empty{display:grid;place-items:center;text-align:center;gap:5px;padding:40px 16px;border:1px dashed var(--border);border-radius:16px;color:var(--text-muted)}
.resource-notice{margin:0 0 12px;padding:10px 12px;border-radius:12px;font-size:12px;font-weight:800}.resource-notice.is-info{background:var(--primary-soft);color:var(--chip-text);border:1px solid var(--border)}.resource-notice.is-warning{background:var(--warning-bg);color:var(--warning);border:1px solid color-mix(in srgb,var(--warning) 28%,transparent)}.resource-notice.is-error{background:var(--danger-bg);color:var(--danger);border:1px solid color-mix(in srgb,var(--danger) 28%,transparent)}
.resource-modal-overlay{position:fixed;inset:0;z-index:2400;background:rgba(2,6,23,.56);display:grid;place-items:center;padding:18px}.resource-modal-overlay[hidden]{display:none!important}.resource-modal{position:relative;width:min(720px,100%);max-height:min(88vh,820px);overflow:auto;background:var(--card);border:1px solid var(--border);border-radius:24px;padding:20px;box-shadow:var(--shadow-lg)}.resource-modal-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}.resource-modal-head h3{margin:2px 0 0;color:var(--text);font-size:22px}.resource-icon-btn{width:38px;height:38px;min-width:38px;margin:0;padding:0;border-radius:12px;font-size:22px}.resource-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.resource-field{min-width:0}.resource-field-wide{grid-column:1/-1}.resource-field label{margin:0;font-size:12px}.resource-field input,.resource-field textarea{margin-top:6px;background:var(--surface);border-color:var(--border)}.resource-field-error{display:block;min-height:14px;margin-top:3px;color:var(--danger);font-size:11px;font-weight:800}.resource-image-control{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:center;margin-top:6px}.resource-image-preview{width:120px;height:86px;border:1px solid var(--border);border-radius:13px;background:var(--primary-soft-2);overflow:hidden;display:grid;place-items:center;color:var(--text-muted);font-size:12px;font-weight:800}.resource-image-preview img{width:100%;height:100%;object-fit:cover}.resource-image-control input{margin:0}.resource-image-control small{display:block;margin-top:4px;color:var(--text-muted);font-size:11px}.resource-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.resource-form-actions button{margin:0}
.resource-search-host{position:relative}.resource-search-popup{position:absolute;z-index:1350;top:calc(100% + 6px);left:0;right:0;max-height:280px;overflow:auto;padding:6px;background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-lg)}.resource-search-popup[hidden]{display:none!important}.resource-search-option,.resource-search-create{width:100%;margin:0;padding:10px 11px;border:0;border-radius:10px;background:transparent;text-align:left;display:grid;gap:2px;transform:none!important}.resource-search-option:hover,.resource-search-option.is-active,.resource-search-create:hover{background:var(--primary-soft-2)}.resource-search-option strong{color:var(--text);font-size:13px}.resource-search-option small{color:var(--text-muted);font-size:11px;font-weight:700}.resource-search-create{margin-top:4px;border-top:1px solid var(--border);border-radius:0 0 10px 10px;color:var(--primary);font-weight:900}.resource-search-state{padding:11px;color:var(--text-muted);font-size:12px;font-weight:750}.resource-search-state.is-error{color:var(--danger)}
html[data-theme="dark"] .resources-topbar,html[data-theme="dark"] .resources-card,html[data-theme="dark"] .resource-row,html[data-theme="dark"] .resource-modal,html[data-theme="dark"] .resource-search-popup{background:var(--card);border-color:var(--border)}
@media(max-width:700px){.resources-topbar{grid-template-columns:auto minmax(0,1fr);padding:14px}.resources-new{grid-column:1/-1;width:100%}.resources-toolbar{grid-template-columns:1fr}.resource-row{grid-template-columns:48px minmax(0,1fr)}.resource-row-image{width:48px;height:48px}.resource-row-actions{grid-column:1/-1;justify-content:stretch}.resource-row-actions button{flex:1}.resource-form-grid{grid-template-columns:1fr}.resource-field-wide{grid-column:auto}.resource-image-control{grid-template-columns:92px minmax(0,1fr)}.resource-image-preview{width:92px;height:76px}.resource-modal-overlay{align-items:end;padding:0}.resource-modal{width:100%;max-height:92vh;border-radius:22px 22px 0 0;padding:16px}.resource-search-popup{max-height:230px}}

/* V375 — Estado visual local del autocomplete de Hotel. */
.resource-search-feedback{display:flex;align-items:center;gap:6px;min-height:16px;margin-top:5px;color:var(--text-muted);font-size:11px;font-weight:800;line-height:1.25}
.resource-search-feedback[hidden]{display:none!important}
.resource-search-feedback.is-searching{color:var(--primary)}
.resource-search-feedback.is-searching::before{content:"";width:10px;height:10px;flex:0 0 10px;border:2px solid color-mix(in srgb,var(--primary) 24%,transparent);border-top-color:var(--primary);border-radius:50%;animation:resource-search-spin .7s linear infinite}
.resource-search-feedback.is-selected{color:var(--success)}
.resource-search-feedback.is-selected::before{content:"✓";display:grid;place-items:center;width:15px;height:15px;flex:0 0 15px;border-radius:50%;background:var(--success-bg);color:var(--success);font-size:10px;font-weight:950}
.resource-search-host>input.is-resource-selected{border-color:color-mix(in srgb,var(--success) 46%,var(--border));background:color-mix(in srgb,var(--success-bg) 52%,var(--surface))}
.resource-search-host>input.is-resource-searching{border-color:color-mix(in srgb,var(--primary) 42%,var(--border))}
@keyframes resource-search-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.resource-search-feedback.is-searching::before{animation-duration:1.4s}}
