/* ========== Modal accesible mejorado ========== */
.ce-modal-overlay { position:fixed; inset:0; background:rgba(15,23,42,.55); backdrop-filter:blur(3px); z-index:9998; }
.ce-modal {
  position:fixed; z-index:9999; top:50%; left:50%; transform:translate(-50%,-46%);
  width:min(92vw,760px); background:#fff; border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.2); border:1px solid #e5e7eb; overflow:hidden;
}
.ce-modal[hidden], .ce-modal-overlay[hidden] { display:none !important; }
.ce-modal-close { appearance:none; border:none; background:#fff; width:40px; height:40px; border-radius:10px; display:grid; place-items:center; cursor:pointer; position:absolute; top:12px; right:12px; font-size:22px; box-shadow:0 2px 12px rgba(0,0,0,.12); }
.ce-modal-media { width:100%; aspect-ratio: 16/9; background:#f3f4f6; overflow:hidden; display:block; }
.ce-modal-media img { width:100%; height:100%; object-fit:cover; display:block; }
.ce-modal-content { padding:18px; }
#ce-modal-title { font-size:24px; line-height:1.2; margin:6px 0 10px; }
#ce-modal-meta { display:grid; grid-template-columns:1fr; gap:6px; font-size:14px; color:#4b5563; margin-bottom:10px; }
#ce-modal-desc { font-size:15px; color:#111827; }
.ce-modal-actions { display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.ce-btn, .ce-btn-outline { display:inline-flex; align-items:center; justify-content:center; padding:10px 12px; border-radius:10px; font-weight:600; border:1px solid #e5e7eb; text-decoration:none; }
.ce-btn { background:#111827; color:#fff; border-color:#111827; }
.ce-btn-outline { background:#fff; color:#111827; }
.ce-link { appearance:none; border:none; background:none; color:#2563eb; font-weight:600; margin-top:6px; cursor:pointer; }
.chip { display:inline-block; font-size:12px; padding:6px 10px; border-radius:9999px; border:1px solid #e5e7eb; background:#f8fafc; color:#0f172a; }
.ce-chips { margin-top:8px; }

/* clamp long content */
#ce-modal-desc.clamp { display:-webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow:hidden; }

.ce-modal{max-height:calc(100vh - 24px);}

/* === v3.6.4: Imagen más pequeña, sin scroll interno, X centrada, sin hovers === */
.ce-modal { width:min(92vw,740px); display:flex; flex-direction:column; overflow:hidden; }
.ce-modal-media{ flex:0 0 auto; width:100%; height:220px; background:#f3f4f6; overflow:hidden; display:block; }
.ce-modal-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.ce-modal-content{ flex:0 0 auto; padding:16px 18px 14px; overflow:visible; }
#ce-modal-desc.clamp{-webkit-line-clamp:3}
#ce-modal-meta{margin-bottom:8px}
.ce-modal-actions{margin-top:10px}
@media (max-width:640px){
  .ce-modal{ width:96vw; max-height:calc(100dvh - 16px); border-radius:14px; }
  .ce-modal-media{ height:160px; }
  #ce-modal-title{ font-size:20px; }
}
.ce-modal-close{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:0 !important;
  padding:0 !important;
}
.ce-btn:hover, .ce-btn:focus { background:#111827 !important; color:#fff !important; box-shadow:none !important; transform:none !important; }
.ce-btn-outline:hover, .ce-btn-outline:focus { background:#fff !important; color:#111827 !important; box-shadow:none !important; transform:none !important; }
.ce-link{ text-decoration:none !important; }
.ce-link:hover, .ce-link:focus{ color:inherit !important; text-decoration:none !important; }
