/* Elévate Documentos 1.0.3 — biblioteca pública para Flatsome y WordPress.
   Variables ajustables desde Documentos > Configuración. */
.eld-library{
  --eld-accent:#008f86;--eld-download-text:#fff;--eld-preview-bg:#eef5f4;
  --eld-preview-text:#526b70;--eld-folder-bg:#f4f8f7;--eld-folder-text:#17655e;
  --eld-text:#263d45;--eld-muted:#82949b;--eld-line:#e6eeed;
  color:var(--eld-text);font-family:inherit;font-size:14px;line-height:1.55;
  max-width:1120px;margin:0 auto 2rem
}
.eld-library *, .eld-library *::before, .eld-library *::after,
.eld-preview-backdrop *, .eld-preview-backdrop *::before,.eld-preview-backdrop *::after {box-sizing:border-box}
.eld-library button,.eld-library input{font-family:inherit}
.eld-library-title{font-size:clamp(24px,2.5vw,34px);font-weight:650;margin:0 0 23px;color:var(--eld-text)}
.eld-library-tools{display:flex;justify-content:flex-end;margin:0 0 19px}
.eld-search-label{display:flex;align-items:center;gap:10px;max-width:360px;width:100%;min-height:45px;
  padding:0 13px;border:1px solid #dce6e6;border-radius:10px;background:#fff;color:#8c9b9b;box-shadow:0 2px 14px #172d3508}
.eld-library input.eld-library-search{flex:1;min-width:0;height:44px;padding:0!important;border:0!important;background:transparent!important;
  font-size:13px;color:var(--eld-text);box-shadow:none!important;margin:0!important;outline:none!important}
.eld-library :is(a,button,input,summary):focus-visible{outline:2px solid var(--eld-accent)!important;outline-offset:3px}

/* Carpetas: jerarquía clara y encabezados alineados, sin símbolos cuadrados. */
.eld-library .eld-folder{margin:0 0 12px;border:1px solid #dfebe9;border-radius:12px;overflow:hidden;background:#fff;
  box-shadow:0 3px 15px #1b444909}
.eld-library .eld-folder[hidden],.eld-library .eld-file[hidden],.eld-library .eld-empty[hidden]{display:none!important}
.eld-library .eld-folder-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:60px;margin:0;padding:14px 19px;list-style:none;cursor:pointer;background:var(--eld-folder-bg);
  color:var(--eld-folder-text);font-size:16px;font-weight:650;line-height:1.35;transition:filter .18s,border-color .18s}
.eld-library .eld-folder-summary::-webkit-details-marker{display:none}
.eld-library .eld-folder-summary::marker{content:''}
.eld-library .eld-folder-summary:hover{filter:brightness(.987)}
.eld-library .eld-folder[open] > .eld-folder-summary{border-bottom:1px solid #dfece8}
.eld-library .eld-folder-summary-name{display:flex;align-items:center;gap:13px;min-width:0;flex:1}
.eld-library .eld-folder-label{min-width:0;overflow-wrap:anywhere}
.eld-library .eld-folder-symbol{flex:none;display:block;width:18px;height:18px;opacity:.72}
.eld-library .eld-chevron{display:block;flex:none;width:8px;height:8px;border-right:1.9px solid currentColor;
  border-bottom:1.9px solid currentColor;transform:rotate(-45deg);transition:transform .18s;margin:0 2px 0 0}
.eld-library .eld-folder[open] > .eld-folder-summary .eld-chevron{transform:rotate(45deg)}
.eld-library .eld-folder-summary-tail{display:flex;gap:7px;align-items:center;flex:none;color:var(--eld-folder-text);
  opacity:.68;font-size:11px;font-weight:550;text-align:right;white-space:nowrap}
.eld-library .eld-tail-separator{font-weight:800;font-size:13px;opacity:.65}
.eld-library .eld-locked-tag{font-size:11px;border-radius:99px;background:#ffffffa6;border:1px solid #ffffffc5;padding:3px 9px;color:inherit}
.eld-library .eld-folder-content{padding:16px 20px 17px;background:#fff}
.eld-library .eld-subfolders{display:grid;gap:9px;padding:0;margin:0 0 1px 15px;border-left:2px solid #e2efeb;padding-left:14px}
.eld-library .eld-subfolders>.eld-folder{margin:0;box-shadow:none;background:#fff;border-color:#e5eeec}
.eld-library .eld-subfolders .eld-folder-summary{min-height:52px;padding:12px 15px;font-size:14px;font-weight:600}
.eld-library .eld-subfolders .eld-folder-summary-tail{font-size:10px}
.eld-library .eld-subfolders .eld-folder-content{padding:11px 14px 14px}
.eld-library .eld-subfolders .eld-subfolders{margin-left:9px;padding-left:11px;gap:8px}
.eld-library .eld-empty{padding:24px 12px;color:#8d9b9d;text-align:center;font-size:13px}

/* Documentos: título legible, icono de línea sin placa de color ni cuadrado. */
.eld-library .eld-files{width:100%;min-width:0;margin:0}
.eld-library .eld-files-header{display:grid;grid-template-columns:minmax(0,1fr) 188px;gap:12px;min-height:32px;
  align-items:center;padding:0 12px 10px;border-bottom:1px solid var(--eld-line);
  color:#8d9b9d;letter-spacing:.08em;font-size:10px;font-weight:750}
.eld-library .eld-files-header>span:last-child{text-align:right;padding-right:4px}
.eld-library .eld-file{display:flex;justify-content:space-between;align-items:center;gap:16px;
  min-height:70px;padding:11px 12px;background:#fff;border-bottom:1px solid var(--eld-line);transition:background .15s}
.eld-library .eld-file:last-child{border-bottom:0}
.eld-library .eld-file:hover{background:#fafcfc}
.eld-library .eld-file-main{display:flex;align-items:center;flex:1;min-width:0;gap:13px}
.eld-library .eld-file-icon{display:flex;align-items:center;justify-content:center;flex:none;width:29px;height:39px;
  background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;
  color:#8fa2a7!important;opacity:.92;overflow:hidden}
.eld-library .eld-file-icon svg{display:block;flex:none}
.eld-library .eld-file-icon.eld-icon-image{width:38px;height:41px;opacity:1}
.eld-library .eld-file-icon.eld-icon-image img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border:0!important;border-radius:0!important}
.eld-library.eld-library-no-icons .eld-file-icon{display:none!important}
.eld-library .eld-file-info{min-width:0;display:flex;flex-direction:column;gap:2px}
.eld-library .eld-file-name{color:#2a4650;font-size:13.5px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.eld-library .eld-file-size{font-size:10.5px;color:#95a3a7;font-weight:450;line-height:1.5}
.eld-library .eld-file-actions{display:flex;align-items:center;justify-content:flex-end;flex:none;gap:8px}
.eld-library .eld-action{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
  min-width:77px;min-height:35px;margin:0!important;padding:8px 13px!important;border-radius:7px!important;
  font-size:11.5px!important;font-weight:650!important;line-height:1.2!important;white-space:nowrap;
  text-decoration:none!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important;
  border:1px solid transparent!important;transition:background .16s,filter .16s,transform .16s}
.eld-library .eld-action svg{display:block;flex:none;opacity:.92}
.eld-library .eld-action-download{background:var(--eld-accent)!important;color:var(--eld-download-text)!important}
.eld-library .eld-action-preview{background:var(--eld-preview-bg)!important;color:var(--eld-preview-text)!important;
  border-color:var(--eld-line)!important;min-width:59px;padding-inline:11px!important;font-weight:550!important}
.eld-library .eld-action:hover{filter:brightness(.95);transform:translateY(-1px)}
.eld-library .eld-action:visited{color:inherit}
.eld-library .eld-action-download:visited,.eld-library .eld-action-download:hover{color:var(--eld-download-text)!important}
.eld-library .eld-action-preview:visited,.eld-library .eld-action-preview:hover{color:var(--eld-preview-text)!important}
.eld-library .eld-files-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:13px;margin:0}
.eld-library .eld-files-cards .eld-file{display:flex;align-items:stretch;flex-direction:column;justify-content:space-between;gap:24px;
  padding:19px;border:1px solid #e1ebeb;border-radius:10px;box-shadow:0 4px 15px #203b400b}
.eld-library .eld-files-cards .eld-file-actions{justify-content:stretch}
.eld-library .eld-files-cards .eld-action{flex:1}

/* Acceso protegido. */
.eld-library .eld-lock-panel{display:flex;gap:16px;align-items:flex-start;padding:18px;
  background:#f8fbfa;border:1px solid #e4edeb;border-radius:10px;flex-wrap:wrap}
.eld-library .eld-lock-illustration{font-size:23px;line-height:1.2}
.eld-library .eld-lock-panel strong{display:block;font-size:15px;color:#2a444c;margin:0 0 3px}
.eld-library .eld-lock-panel p{margin:0!important;color:#71858a;font-size:12px}
.eld-library .eld-unlock-form{display:flex;flex:1 1 100%;align-items:center;flex-wrap:wrap;gap:9px;margin:6px 0 0!important}
.eld-library .eld-unlock-form input[type=password]{width:min(315px,100%);min-height:42px;margin:0!important;
  padding:9px 12px!important;background:#fff!important;border:1px solid #cdddda!important;
  border-radius:7px!important;box-shadow:none!important}
.eld-library .eld-unlock-form button{min-height:42px;margin:0!important;padding:9px 16px!important;border:0!important;
  border-radius:7px!important;background:var(--eld-accent)!important;color:var(--eld-download-text)!important;font-size:12px;font-weight:650;cursor:pointer}
.eld-library .eld-unlock-form button:disabled{opacity:.6;cursor:wait}
.eld-library .eld-unlock-feedback{width:100%;font-size:12px;color:#a84839}

/* Vista previa — X vectorial centrada sin desplazamientos entre navegadores. */
.eld-modal-open{overflow:hidden}
.eld-preview-backdrop{--eld-accent:#008f86;--eld-download-text:#fff;position:fixed;z-index:9999999;inset:0;
  background:rgba(11,26,31,.78);display:flex;justify-content:center;align-items:center;padding:18px;backdrop-filter:blur(4px)}
.eld-preview-dialog{display:flex;flex-direction:column;width:min(1120px,100%);height:min(92vh,960px);overflow:hidden;
  border-radius:13px;background:white;box-shadow:0 23px 90px #0006;font-family:inherit}
.eld-preview-header{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#fff;border-bottom:1px solid #e7eeee;min-height:60px}
.eld-preview-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#28414a;font-size:14px;font-weight:650}
.eld-preview-buttons{display:flex;align-items:center;gap:9px;flex:none}
.eld-preview-download{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:7px;
  background:var(--eld-accent)!important;color:var(--eld-download-text)!important;text-decoration:none!important;font-size:12px;font-weight:650}
.eld-preview-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:none;width:37px!important;height:37px!important;min-width:37px!important;min-height:37px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:8px!important;
  background:#f1f4f4!important;color:#52686e!important;line-height:1!important;cursor:pointer}
.eld-preview-close svg{display:block;flex:none;width:18px;height:18px}
.eld-preview-close:hover{background:#e4ebeb!important}
.eld-preview-frame-holder{flex:1;min-height:0;background:#54595e}
.eld-preview-frame{display:block;border:0;width:100%;height:100%}

@media(max-width:760px){
  .eld-library{font-size:13px}
  .eld-library-tools{margin-bottom:14px}.eld-search-label{max-width:100%}
  .eld-library .eld-folder-summary{padding:12px 13px;min-height:54px;font-size:15px;gap:8px}
  .eld-library .eld-folder-summary-name{gap:9px}
  .eld-library .eld-folder-summary-tail{font-size:10px}
  .eld-library .eld-folder-content{padding:9px 12px 12px}
  .eld-library .eld-subfolders{margin-left:6px;padding-left:9px;gap:8px}
  .eld-library .eld-subfolders .eld-folder-summary{font-size:13px;padding:11px}
  .eld-library .eld-files-header{display:none}
  .eld-library .eld-file{padding:13px 6px;flex-direction:column;align-items:stretch;gap:11px;min-height:0}
  .eld-library .eld-file-main{gap:10px}
  .eld-library .eld-file-actions{width:100%;padding-left:40px;justify-content:flex-start}
  .eld-library.eld-library-no-icons .eld-file-actions{padding-left:0}
  .eld-library .eld-action{min-height:35px;font-size:11px!important;min-width:70px}
  .eld-library .eld-files-cards{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))}
  .eld-library .eld-files-cards .eld-file-actions{padding-left:0}
  .eld-library .eld-lock-panel{padding:14px;gap:11px}
  .eld-library .eld-unlock-form input[type=password]{width:100%}
  .eld-library .eld-unlock-form button{width:100%}
  .eld-preview-backdrop{padding:0}.eld-preview-dialog{width:100%;height:100dvh;border-radius:0}
  .eld-preview-header{padding:9px 11px}.eld-preview-title{font-size:12px}
  .eld-preview-download{padding:8px 9px}
}
/* Compacto también en contenedores angostos de Flatsome (columnas / acordeones anidados). */
.eld-library .eld-file-icon.eld-icon-missing{display:none!important}
@media(max-width:760px){
  .eld-library .eld-file-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-left:0;gap:7px}
  .eld-library .eld-action{width:100%;max-width:100%;min-width:0!important;padding-inline:5px!important;gap:5px;font-size:10.5px!important}
  .eld-library .eld-action svg{width:14px;height:14px}
}
@media(max-width:380px){
  .eld-library .eld-folder-summary-tail{font-size:9px}
  .eld-library .eld-file-main{gap:7px}
  .eld-library .eld-file-icon.eld-icon-image{width:31px;height:34px}
  .eld-library .eld-file-name{font-size:12.5px}
}
