/* ═══════════════════════════════════════════════
   ENTORNOS RP — Chile Roleplay Community
   Cinematic dark theme · Matching portal style
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* ── Variables ── */
:root {
    --ent-robo: #ef4444;
    --ent-secuestro: #f59e0b;
    --ent-robo-vehiculo: #8b5cf6;
    --ent-general: #64748b;
}

/* ── Base ── */
body.ent-page * { box-sizing: border-box; }

body.ent-page {
    box-sizing: border-box;
    background: #080d19;
    color: #e2e8f0;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

body.ent-page .container {
    width: min(1280px, 100% - 2rem);
    margin-inline: auto;
    padding-inline: 0;
}

/* ── Background ── */
.ent-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ent-bg-gradient {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(239,68,68,0.08), transparent 46%),
        radial-gradient(circle at 75% 15%, rgba(139,92,246,0.10), transparent 44%),
        radial-gradient(circle at 50% 70%, rgba(56,189,248,0.08), transparent 48%),
        #080d19;
}
.ent-bg-noise {
    position: absolute; inset: 0; opacity: 0.12;
    background-image:
        repeating-linear-gradient(120deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.10) 0 1px, transparent 1px 100%);
    mix-blend-mode: soft-light;
}

/* ══════════════════════════════
   TOPBAR
   ══════════════════════════════ */
.ent-topbar {
    position: sticky; top: 0; z-index: 30; width: 100%;
    border-bottom: 1px solid rgba(148,163,184,0.2);
    box-shadow: 0 16px 34px rgba(2,6,23,0.26);
    padding-inline: 1rem;
    background: linear-gradient(180deg, rgba(8,13,25,0.92) 0%, rgba(8,13,25,0.5) 100%);
    backdrop-filter: blur(14px);
}
.ent-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 68px;
}
.ent-brand {
    display: inline-flex; align-items: center; gap: 0.6rem;
    text-decoration: none; color: #f8fafc;
    font-weight: 700; letter-spacing: 0.03em; font-size: 0.88rem; flex-shrink: 0;
    padding: 0.3rem 0;
}
.ent-brand span {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}
.ent-brand img {
    width: auto;
    height: 36px;
    object-fit: contain;
}

/* Nav pills */
.ent-nav {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.28rem; border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.25);
    background: rgba(11,19,36,0.68);
}
.ent-nav-item {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: #cbd5e1; font-size: 0.84rem; font-weight: 600;
    padding: 0.5rem 0.9rem; border-radius: 999px;
    background: transparent; border: none; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none;
}
.ent-nav-item:hover { color: #f8fafc; background: rgba(255,255,255,0.06); }
.ent-nav-item.is-active {
    background: rgba(239,68,68,0.15); color: #fca5a5;
    box-shadow: inset 0 0 12px rgba(239,68,68,0.12);
}
.ent-nav-item i { font-size: 1.1rem; }

/* Top actions */
.ent-top-actions { display: flex; align-items: center; gap: 0.6rem; }
.ent-user-pill {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem; border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.2);
    background: rgba(15,23,42,0.6);
}
.ent-user-pill img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ent-user-pill span {
    font-size: 0.84rem; font-weight: 700; color: #f8fafc;
    white-space: nowrap; font-family: 'Inter', sans-serif;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.ent-action-btn {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(148,163,184,0.2);
    color: #94a3b8; font-size: 1.1rem; cursor: pointer;
    transition: all 0.2s; text-decoration: none;
}
.ent-action-btn:hover { color: #f8fafc; border-color: rgba(239,68,68,0.4); }

/* ══════════════════════════════
   MAIN
   ══════════════════════════════ */
.ent-main { flex: 1; padding: 2.5rem 0; }

/* ── Hero Section ── */
.ent-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; margin-bottom: 2rem;
    padding: 1.8rem 2rem; border-radius: 18px;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148,163,184,0.12);
}
.ent-hero-content {
    display: flex; align-items: center; gap: 1.2rem;
}
.ent-hero-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #fca5a5; font-size: 1.6rem; flex-shrink: 0;
}
.ent-hero-text h1 {
    font-size: 1.35rem; font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.3px; color: #f8fafc;
    margin-bottom: 4px;
}
.ent-hero-text p {
    font-size: 0.84rem; color: #94a3b8; line-height: 1.55;
    max-width: 520px;
}

.ent-btn-create {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.6rem; border-radius: 12px;
    border: none; cursor: pointer; font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff; transition: all 0.25s;
    box-shadow: 0 4px 18px rgba(239,68,68,0.18);
}
.ent-btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(239,68,68,0.3);
}
.ent-btn-create i { font-size: 1.1rem; }

/* ── Toolbar (filters + stats) ── */
.ent-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}

/* ── Filters ── */
.ent-filters {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
}

.ent-filter-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.9rem; border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.18);
    background: transparent; color: #94a3b8;
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.ent-filter-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(148,163,184,0.3);
    color: #e2e8f0;
}
.ent-filter-btn.active {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
}

.ent-filter-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ── Stats Bar ── */
.ent-stats-bar {
    display: flex; gap: 0.6rem;
}
.ent-stat-pill {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(148,163,184,0.12);
    font-size: 0.75rem; color: #94a3b8;
}
.ent-stat-pill strong { color: #f8fafc; font-weight: 700; }
.ent-stat-pill i { font-size: 0.9rem; }

/* ══════════════════════════════
   FEED / GRID
   ══════════════════════════════ */
.ent-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

.ent-feed-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    color: #64748b;
}
.ent-feed-empty i {
    font-size: 3rem; margin-bottom: 0.8rem;
    display: block; opacity: 0.35;
}
.ent-feed-empty h3 {
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 0.4rem; color: #94a3b8;
}

/* ══════════════════════════════
   ENTORNO CARD (Glass)
   ══════════════════════════════ */
.ent-card {
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}
.ent-card:hover {
    border-color: rgba(148,163,184,0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.ent-card-stripe { height: 3px; width: 100%; }
.ent-card-stripe--robo { background: linear-gradient(90deg, var(--ent-robo), #b91c1c); }
.ent-card-stripe--secuestro { background: linear-gradient(90deg, var(--ent-secuestro), #d97706); }
.ent-card-stripe--robo_vehiculo { background: linear-gradient(90deg, var(--ent-robo-vehiculo), #6d28d9); }
.ent-card-stripe--general { background: linear-gradient(90deg, var(--ent-general), #475569); }

.ent-card-body { padding: 1.2rem 1.4rem; }

.ent-card-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.ent-card-tipo {
    font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    padding: 0.2rem 0.65rem; border-radius: 6px;
    flex-shrink: 0; font-family: 'Rajdhani', sans-serif;
}
.ent-card-tipo--robo { background: rgba(239,68,68,0.12); color: var(--ent-robo); }
.ent-card-tipo--secuestro { background: rgba(245,158,11,0.12); color: var(--ent-secuestro); }
.ent-card-tipo--robo_vehiculo { background: rgba(139,92,246,0.12); color: var(--ent-robo-vehiculo); }
.ent-card-tipo--general { background: rgba(100,116,139,0.15); color: var(--ent-general); }

.ent-card-time {
    font-size: 0.7rem; color: #64748b;
    display: flex; align-items: center; gap: 4px;
    flex-shrink: 0; font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.ent-card-title {
    font-size: 0.95rem; font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.4rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    color: #f8fafc;
}

.ent-card-desc {
    font-size: 0.78rem; color: #94a3b8;
    line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 0.9rem;
}

.ent-card-details {
    display: flex; flex-wrap: wrap;
    gap: 0.35rem; margin-bottom: 0.9rem;
}

.ent-card-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.68rem; padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    border: 1px solid rgba(148,163,184,0.1);
    font-family: 'Rajdhani', sans-serif; font-weight: 600;
}
.ent-card-tag i { font-size: 0.8rem; }

.ent-card-footer {
    display: flex; align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(148,163,184,0.1);
}

.ent-card-author {
    display: flex; align-items: center; gap: 0.5rem;
}
.ent-card-author img {
    width: 24px; height: 24px;
    border-radius: 50%; object-fit: cover;
}
.ent-card-author span {
    font-size: 0.75rem; color: #94a3b8; font-weight: 500;
}

.ent-card-location {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.72rem; color: #38bdf8; font-weight: 600;
}
.ent-card-location i { font-size: 0.85rem; }

/* ══════════════════════════════
   MODAL OVERLAY
   ══════════════════════════════ */
.ent-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    z-index: 1000; display: none;
    justify-content: center; align-items: flex-start;
    padding: 40px 20px; overflow-y: auto;
}
.ent-modal-overlay.active { display: flex; }

.ent-modal {
    background: rgba(15,23,42,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 20px;
    width: 100%; max-width: 680px;
    animation: entModalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.ent-modal--detail { max-width: 720px; }

@keyframes entModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ent-modal-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 1.3rem 1.6rem;
    border-bottom: 1px solid rgba(148,163,184,0.12);
}
.ent-modal-header h3 {
    font-size: 1.05rem; font-weight: 800;
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
}
.ent-modal-header h3 i { color: #fca5a5; font-size: 1.15rem; }

.ent-modal-close {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.15);
    background: none; color: #94a3b8;
    font-size: 1.2rem; cursor: pointer;
    transition: all 0.2s;
}
.ent-modal-close:hover {
    background: rgba(239,68,68,0.1);
    color: var(--ent-robo);
    border-color: rgba(239,68,68,0.3);
}

.ent-modal-body {
    padding: 1.6rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* ── Form Styles ── */
.ent-form-group { margin-bottom: 1.2rem; }

.ent-form-label {
    display: block;
    font-size: 0.75rem; font-weight: 700;
    color: #94a3b8; margin-bottom: 0.4rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    font-family: 'Rajdhani', sans-serif;
}

.ent-form-input,
.ent-form-textarea,
.ent-form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.15);
    background: rgba(15,23,42,0.6);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    outline: none;
}
.ent-form-input:focus,
.ent-form-textarea:focus,
.ent-form-select:focus {
    border-color: rgba(239,68,68,0.4);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}
.ent-form-input::placeholder,
.ent-form-textarea::placeholder {
    color: #475569;
}

.ent-form-textarea { min-height: 100px; resize: vertical; }

.ent-form-select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2rem;
}

.ent-form-hint {
    font-size: 0.68rem; color: #64748b; margin-top: 0.3rem;
}

.ent-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}

/* ── Tipo Selector Cards ── */
.ent-tipo-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
}
.ent-tipo-option {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.4rem;
    padding: 1rem 0.5rem; border: 2px solid rgba(148,163,184,0.12);
    border-radius: 14px; background: none;
    color: #94a3b8; cursor: pointer;
    transition: all 0.25s; text-align: center;
    font-family: 'Inter', sans-serif;
}
.ent-tipo-option:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(148,163,184,0.25);
}
.ent-tipo-option.selected {
    border-color: rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.06);
    color: #f8fafc;
}
.ent-tipo-option i { font-size: 1.4rem; }
.ent-tipo-option span {
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
    font-family: 'Rajdhani', sans-serif;
}

/* Dynamic Fields */
.ent-dynamic-fields { display: none; }
.ent-dynamic-fields.visible {
    display: block;
    animation: entFadeIn 0.3s ease;
}
@keyframes entFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Array Field (add items) */
.ent-array-field {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.ent-array-row {
    display: flex; gap: 0.5rem; align-items: center;
}
.ent-array-row .ent-form-input { flex: 1; }

.ent-array-remove {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(239,68,68,0.2);
    background: rgba(239,68,68,0.06);
    color: var(--ent-robo); cursor: pointer;
    font-size: 0.9rem; transition: all 0.2s;
    flex-shrink: 0;
}
.ent-array-remove:hover { background: rgba(239,68,68,0.15); }

.ent-array-add {
    display: flex; align-items: center;
    justify-content: center; gap: 0.4rem;
    padding: 0.5rem; border-radius: 10px;
    border: 1px dashed rgba(148,163,184,0.2);
    background: none; color: #64748b;
    font-size: 0.75rem; cursor: pointer;
    transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.ent-array-add:hover {
    border-color: rgba(239,68,68,0.4);
    color: #fca5a5;
}

/* ── Map Picker ── */
.ent-map-container {
    position: relative; border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.12);
    cursor: crosshair;
}
.ent-map-container img { width: 100%; display: block; }

.ent-map-marker {
    position: absolute; width: 20px; height: 20px;
    border-radius: 50%; background: var(--ent-robo);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    pointer-events: none; display: none; z-index: 5;
    animation: markerPulse 1.5s infinite;
}
.ent-map-marker.visible { display: block; }

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4), 0 2px 10px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 0 10px rgba(239,68,68,0), 0 2px 10px rgba(0,0,0,0.5); }
}

.ent-map-hint {
    position: absolute; bottom: 10px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75); color: #fff;
    font-size: 0.7rem; padding: 0.35rem 0.9rem;
    border-radius: 999px; pointer-events: none;
    backdrop-filter: blur(4px);
    font-family: 'Rajdhani', sans-serif; font-weight: 600;
}

/* ── Modal Footer ── */
.ent-modal-footer {
    padding: 1rem 1.6rem;
    border-top: 1px solid rgba(148,163,184,0.12);
    display: flex; justify-content: flex-end; gap: 0.6rem;
}

.ent-btn {
    padding: 0.65rem 1.4rem; border-radius: 12px;
    font-weight: 700; font-size: 0.82rem;
    cursor: pointer; transition: all 0.2s;
    border: 1px solid rgba(148,163,184,0.15);
    font-family: 'Outfit', sans-serif;
}
.ent-btn--ghost {
    background: none; color: #94a3b8;
}
.ent-btn--ghost:hover {
    background: rgba(255,255,255,0.05); color: #f8fafc;
}
.ent-btn--primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; border-color: transparent;
}
.ent-btn--primary:hover {
    box-shadow: 0 4px 18px rgba(239,68,68,0.3);
    transform: translateY(-1px);
}
.ent-btn--primary:disabled {
    opacity: 0.4; cursor: not-allowed;
    transform: none; box-shadow: none;
}

/* ══════════════════════════════
   DETAIL MODAL
   ══════════════════════════════ */
.ent-detail-stripe { height: 4px; width: 100%; }

.ent-detail-top {
    padding: 1.6rem;
    border-bottom: 1px solid rgba(148,163,184,0.12);
}
.ent-detail-meta {
    display: flex; align-items: center;
    gap: 0.6rem; margin-bottom: 0.8rem; flex-wrap: wrap;
}
.ent-detail-title {
    font-size: 1.25rem; font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.3px; margin-bottom: 0.5rem;
    color: #f8fafc;
}
.ent-detail-desc {
    font-size: 0.88rem; color: #94a3b8; line-height: 1.65;
}

.ent-detail-body { padding: 1.6rem; }

.ent-detail-section { margin-bottom: 1.3rem; }
.ent-detail-section-title {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #64748b; margin-bottom: 0.65rem;
    display: flex; align-items: center; gap: 0.4rem;
    font-family: 'Rajdhani', sans-serif;
}

.ent-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}
.ent-detail-field {
    padding: 0.8rem 1rem;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 12px;
}
.ent-detail-field label {
    display: block; font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #64748b; margin-bottom: 0.25rem;
    font-family: 'Rajdhani', sans-serif;
}
.ent-detail-field span {
    font-size: 0.85rem; color: #e2e8f0; font-weight: 500;
}

.ent-detail-list {
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.ent-detail-list li {
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 8px;
    font-size: 0.8rem; color: #94a3b8;
}

/* Detail Map */
.ent-detail-map {
    position: relative; border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.12);
    margin-top: 0.6rem;
}
.ent-detail-map img { width: 100%; display: block; }
.ent-detail-map-marker {
    position: absolute; width: 16px; height: 16px;
    border-radius: 50%; background: var(--ent-robo);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%); z-index: 5;
    animation: markerPulse 1.5s infinite;
}

.ent-detail-footer {
    padding: 1rem 1.6rem;
    border-top: 1px solid rgba(148,163,184,0.12);
    display: flex; align-items: center;
    justify-content: space-between;
}
.ent-detail-author {
    display: flex; align-items: center; gap: 0.6rem;
}
.ent-detail-author img {
    width: 32px; height: 32px;
    border-radius: 50%; object-fit: cover;
}
.ent-detail-author-info span {
    display: block; font-size: 0.82rem;
    font-weight: 600; color: #f8fafc;
}
.ent-detail-author-info small {
    font-size: 0.68rem; color: #64748b;
}

.ent-detail-delete {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border-radius: 10px;
    border: 1px solid rgba(239,68,68,0.2);
    background: rgba(239,68,68,0.06);
    color: var(--ent-robo);
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}
.ent-detail-delete:hover {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.4);
}

/* ══════════════════════════════
   LOADING & UTILS
   ══════════════════════════════ */
.ent-loading {
    grid-column: 1 / -1;
    display: flex; align-items: center;
    justify-content: center; gap: 0.6rem;
    padding: 3rem; color: #64748b; font-size: 0.85rem;
}
.ent-spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(148,163,184,0.15);
    border-top-color: #fca5a5;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TTL Badge ── */
.ent-ttl-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.68rem; font-weight: 600;
    padding: 0.2rem 0.6rem; border-radius: 6px;
    background: rgba(239,68,68,0.08); color: #fca5a5;
    font-family: 'Rajdhani', sans-serif;
}

/* ── Pagination ── */
.ent-pagination {
    display: flex; justify-content: center;
    gap: 0.5rem; margin-top: 2rem;
}
.ent-page-btn {
    padding: 0.5rem 1rem; border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.15);
    background: none; color: #94a3b8;
    font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.ent-page-btn:hover:not(:disabled) {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
}
.ent-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.ent-page-btn.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; border-color: transparent;
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.exp-footer {
    margin-top: auto;
    border-top: 1px solid rgba(148,163,184,0.22);
    background: rgba(3,6,15,0.84);
    position: relative; z-index: 1; overflow: hidden;
}
.exp-footer-shell {
    display: flex; flex-direction: column; gap: 0.9rem;
    padding: 1.5rem 0 2rem;
    width: 100%; margin: 0 auto; max-width: 1240px;
}
.exp-footer-links {
    display: flex; flex-wrap: wrap; gap: 0.65rem;
}
.exp-footer-links a {
    text-decoration: none; color: #cbd5e1;
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem; font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}
.exp-footer-links a:hover {
    color: #f8fafc;
    border-color: rgba(239,68,68,0.5);
}
.exp-footer-note {
    margin: 0; color: #94a3b8;
    font-size: 0.85rem; line-height: 1.6;
}
.exp-footer-strong { color: #f8fafc; font-weight: 700; }
.exp-footer-watermark {
    position: absolute; right: 2.2rem; bottom: -18px;
    opacity: 0.14; pointer-events: none;
}
.exp-footer-watermark img {
    width: 120px; height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(2,6,23,0.5));
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 768px) {
    .ent-topbar-inner { flex-wrap: wrap; min-height: auto; padding: 0.6rem 0; gap: 0.5rem; }
    .ent-brand span { display: none; }
    .ent-nav { order: 3; width: 100%; justify-content: center; }
    .ent-hero { flex-direction: column; text-align: center; }
    .ent-hero-content { flex-direction: column; }
    .ent-btn-create { width: 100%; justify-content: center; }
    .ent-toolbar { flex-direction: column; align-items: stretch; }
    .ent-filters { justify-content: center; }
    .ent-stats-bar { justify-content: center; }
    .ent-feed { grid-template-columns: 1fr; }
    .ent-tipo-grid { grid-template-columns: repeat(2, 1fr); }
    .ent-form-row { grid-template-columns: 1fr; }
    .ent-detail-grid { grid-template-columns: 1fr; }
    .ent-user-pill span { display: none; }
}

@media (max-width: 480px) {
    .ent-modal { margin: 10px; }
}
