@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');




.ucp-sidebar {
    background: var(--surface);
    border-color: var(--border);
}

/* ... continúa usando var() para todo ... */



/* ── LIGHT MODE OVERRIDES ─────────────────────────────── */
.ucp-light,
body.ucp-light,
html.ucp-light {
    --bg: #f4f4f0;
    --surface: #ffffff;
    --surface2: #f0f0ec;
    --border: #e0e0da;
    --border2: #cacac3;
    --text: #111111;
    --muted: #888880;
    --muted2: #b8b8b0;
    --accent2: #d4f08a;
}

.ucp-light .ucp-sidebar {
    background: var(--surface);
}

.ucp-light .ucp-field input[type="text"],
.ucp-light .ucp-field input[type="url"],
.ucp-light .ucp-field input[type="date"],
.ucp-light .ucp-field input[type="time"],
.ucp-light .ucp-field textarea {
    background: var(--surface2);
    color-scheme: light;
}

.ucp-light .ucp-card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ucp-light .ucp-login-box {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.ucp-light .ucp-login-box input[type="text"],
.ucp-light .ucp-login-box input[type="password"] {
    background: var(--surface2);
    color-scheme: light;
}

/* ── LOGIN EN MODO CLARO ─────────────────────────────────
   Selectores con !important para ganarle a .elementor *
   y a otros estilos globales del tema de WordPress.
   Se activan cuando body recibe la clase ucp-light.
───────────────────────────────────────────────────────── */
body.ucp-light .ucp-login-wrap {
    background: var(--bg) !important;
    color: var(--text) !important;
}

body.ucp-light .ucp-login-box {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

body.ucp-light .ucp-login-box input[type="text"],
body.ucp-light .ucp-login-box input[type="password"] {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border2) !important;
    color-scheme: light;
}

body.ucp-light .ucp-login-box input[type="text"]:focus,
body.ucp-light .ucp-login-box input[type="password"]:focus {
    border-color: var(--color-verde) !important;
    outline: none !important;
}

body.ucp-light .ucp-login-box label {
    color: var(--muted) !important;
}

body.ucp-light .ucp-login-title {
    color: var(--text) !important;
}

body.ucp-light .ucp-login-sub,
body.ucp-light .ucp-login-brand {
    color: var(--muted) !important;
}

/* Logo text más oscuro en modo claro (login y sidebar) */
body.ucp-light .ucp-logo-text,
.ucp-light .ucp-logo-text {
    color: #111111 !important;
}

.ucp-light .ucp-table tbody tr:hover td {
    background: var(--surface2);
}

.ucp-light .ucp-preview-panel {
    background: var(--surface2);
}

.ucp-light .ucp-preview-card {
    background: var(--surface);
}

/* ── THEME TOGGLE BUTTON ──────────────────────────────── */
.ucp-theme-toggle {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-bottom: 8px;
    text-align: left;
    justify-content: space-around;
}

.ucp-theme-toggle:hover {
    border-color: var(--color-verde);
    background: rgba(0, 151, 57, 0.08);
    color: var(--color-verde);
}

.ucp-theme-toggle svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.ucp-theme-toggle:hover svg {
    transform: rotate(20deg);
}

.ucp-theme-track {
    margin-left: auto;
    width: 30px;
    height: 17px;
    border-radius: 999px;
    background: var(--border);
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}

.ucp-theme-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 0.25s, background 0.25s;
}

/* En modo claro el thumb se mueve a la derecha */
.ucp-light .ucp-theme-track {
    background: rgba(0, 151, 57, 0.25);
}

.ucp-light .ucp-theme-thumb {
    transform: translateX(13px);
    background: var(--color-verde);
}

/* ── RESET & ROOT ─────────────────────────────────────── */
:root {
    --bg: #0c0c0c;
    --surface: #141414;
    --surface2: #1c1c1c;
    --border: #252525;
    --border2: #303030;
    --accent: #c8f060;
    --accent2: #3d6600;
    --text: #efefef;
    --muted: #666;
    --muted2: #444;
    --danger: #ff4d4d;
    --success: #4ade80;
    --radius: 10px;
    --sidebar: 220px;
    --font: 'Jost', system-ui, sans-serif;
    --mono: 'DM Mono', monospace;
    --color-verde: #009739;
    --color-azul: #004c97;
    --color-rojo: #CB2C30;
    --color-amarillo: #FFA400;
    --ast-global-color-0: #0274be;
}

.ucp-root *,
.ucp-root *::before,
.ucp-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── ROOT WRAPPER ─────────────────────────────────────── */
.ucp-root {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.ucp-sidebar {
    width: var(--sidebar);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    padding: 24px 16px;
}

.ucp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    margin-bottom: 32px;
}

.ucp-logo-icon {
    font-size: 22px;
    color: var(--color-verde);
    line-height: 1;
}

.ucp-logo-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text);
}

.ucp-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ucp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
}

.ucp-nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ucp-nav-item:hover {
    background: var(--surface2);
    color: var(--text);
}

.ucp-nav-item.active {
    background: var(--surface2);
    color: var(--text);
}

.ucp-nav-item.active::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    background: var(--color-verde);
    border-radius: 3px;
    position: absolute;
    left: 4px;
}

.ucp-nav-item {
    position: relative;
}

.ucp-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    gap: 8px;
}

.ucp-user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.ucp-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent2);
    color: var(--color-verde);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.ucp-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ucp-user-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ucp-user-role {
    font-size: 10px;
    color: var(--muted);
    font-family: var(--mono);
}

.ucp-logout {
    color: var(--muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .15s;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.ucp-logout svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ucp-logout:hover {
    color: var(--danger);
    border-color: rgba(255, 77, 77, .3);
    background: rgba(255, 77, 77, .06);
}

/* ── MAIN ─────────────────────────────────────────────── */
.ucp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* ── TOPBAR ───────────────────────────────────────────── */
.ucp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 36px 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
}

.ucp-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.ucp-page-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    font-family: var(--mono);
}

.ucp-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all .15s;
    flex-shrink: 0;
}

.ucp-back-btn svg {
    width: 16px;
    height: 16px;
}

.ucp-back-btn:hover {
    border-color: var(--color-verde);
    color: var(--color-verde);
}

/* ── BUTTONS ──────────────────────────────────────────── */
.ucp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.ucp-btn-primary {
    background: var(--color-verde);
    color: #fff;
}

.ucp-btn-primary:hover {
    background: var(--color-verde);
    transform: translateY(-1px);
}

.ucp-btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.ucp-btn-ghost:hover {
    border-color: var(--border2);
    color: var(--text);
}

.ucp-btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.ucp-btn-danger:hover {
    background: rgba(255, 77, 77, .1);
}

.ucp-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ── ALERTS ───────────────────────────────────────────── */
.ucp-alert {
    margin: 16px 36px 0;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
}

.ucp-alert-success {
    background: rgba(74, 222, 128, .1);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, .2);
}

.ucp-alert-danger {
    background: rgba(255, 77, 77, .1);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 77, .2);
}

/* ── EMPTY STATE ──────────────────────────────────────── */
.ucp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 36px;
    color: var(--muted);
    text-align: center;
}

.ucp-empty-icon {
    font-size: 48px;
    color: var(--muted2);
}

.ucp-empty p {
    font-size: 15px;
}

/* ── EVENT GRID ───────────────────────────────────────── */
.ucp-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 24px 36px;
}

.ucp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s;
}

.ucp-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
}

.ucp-card-thumb {
    aspect-ratio: 16/9;
    background: var(--surface2);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ucp-card-thumb-placeholder {
    font-size: 32px;
    color: var(--muted2);
}

.ucp-card-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-family: var(--mono);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .05em;
}

.is-published .ucp-card-status-badge {
    background: var(--color-verde);
    color: #fff;
    border: 1px solid var(--color-verde);
}

.is-draft .ucp-card-status-badge {
    background: var(--color-rojo);
    color: var(--text);

}

.ucp-card-content {
    padding: 16px;
    flex: 1;
}

.ucp-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ucp-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ucp-card-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--mono);
}

.ucp-card-meta svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--color-verde);
}

.ucp-card-actions {
    display: flex;
    border-top: 1px solid var(--border);
}

.ucp-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 8px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--muted);
    text-decoration: none;
    border-right: 1px solid var(--border);
    transition: all .15s;
    letter-spacing: .02em;
}

.ucp-action-btn:last-child {
    border-right: none;
}

.ucp-action-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.ucp-action-btn:hover {
    background: var(--surface2);
    color: var(--text);
}

.ucp-action-btn svg {
    transition: color .15s;
}

.ucp-action-btn.is-publish:hover {
    color: var(--color-verde);
}

.ucp-action-btn.is-unpublish:hover {
    color: var(--muted);
}

.ucp-action-btn.is-danger:hover {
    background: rgba(255, 77, 77, .08);
    color: var(--danger);
}

/* ── FORM LAYOUT ──────────────────────────────────────── */
.ucp-form-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 0;
    flex: 1;
}

.ucp-form-panel {
    padding: 28px 36px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

/* Title input */
.ucp-field-title input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    padding: 0 0 12px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    transition: border-color .2s;
}

.ucp-field-title input:focus {
    border-bottom-color: var(--color-verde);
}

.ucp-field-title input::placeholder {
    color: var(--muted2);
}

/* Image zone */
.ucp-image-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    aspect-ratio: 16/7;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
}

.ucp-image-zone:hover {
    border-color: var(--color-verde);
}

.ucp-image-zone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ucp-image-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
}

.ucp-image-ph svg {
    width: 28px;
    height: 28px;
    opacity: .4;
}

.ucp-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ucp-image-zone:hover .ucp-image-overlay {
    display: flex;
}

/* Fields grid */
.ucp-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.ucp-field-full {
    grid-column: 1 / -1;
}

.ucp-field label {
    display: block;
    font-size: 10px;
    font-family: var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.ucp-field input[type="text"],
.ucp-field input[type="url"],
.ucp-field input[type="date"],
.ucp-field input[type="time"],
.ucp-field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    padding: 10px 13px;
    outline: none;
    transition: border-color .15s;
    color-scheme: dark;
    -webkit-appearance: none;
}

.ucp-field input:focus,
.ucp-field textarea:focus {
    border-color: var(--color-verde);
}

.ucp-field textarea {
    resize: vertical;
    min-height: 85px;
}

/* ── PREVIEW PANEL ────────────────────────────────────── */
.ucp-preview-panel {
    background: var(--surface);
    position: sticky;
    top: 0;
    height: calc(100vh - 73px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ucp-preview-label {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-family: var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ucp-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-verde);
    animation: ucpPulse 2s ease infinite;
}

@keyframes ucpPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }
}

.ucp-preview-card {
    margin: 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.ucp-prev-thumb {
    aspect-ratio: 16/9;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ucp-prev-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#prev_img_ph {
    font-size: 36px;
    color: var(--muted2);
}

.ucp-prev-body {
    padding: 16px;
}

.ucp-prev-date {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--color-verde);
    letter-spacing: .08em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.ucp-prev-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.ucp-prev-desc {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.ucp-prev-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.ucp-prev-meta div {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--muted);
    font-family: var(--mono);
}

.ucp-prev-meta svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--color-verde);
}

.ucp-prev-btn {
    display: block;
    text-align: center;
    width: 100%;
    background: var(--color-verde);
    color: #0a1500;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    padding: 10px;
    border-radius: 7px;
    text-decoration: none;
}

/* ── LOGIN ────────────────────────────────────────────── */
.ucp-login-wrap {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    color: var(--text);
    padding: 24px;
}

.ucp-login-box {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
}

.ucp-login-sub {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 28px;
    font-family: var(--mono);
}

/* Override WP login form styles */
.ucp-login-box #loginform {
    margin: 0;
}

.ucp-login-box .login-username,
.ucp-login-box .login-password {
    margin-bottom: 16px;
}

.ucp-login-box label {
    display: block;
    font-size: 10px;
    font-family: var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.ucp-login-box input[type="text"],
.ucp-login-box input[type="password"] {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    transition: border-color .15s;
}

.ucp-login-box input[type="text"]:focus,
.ucp-login-box input[type="password"]:focus {
    border-color: var(--color-verde);
}

.ucp-login-box input[type="submit"],
.ucp-login-box #wp-submit {
    width: 100%;
    background: var(--color-verde);
    color: #0a1500;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: background .15s;
}

.ucp-login-box input[type="submit"]:hover,
.ucp-login-box #wp-submit:hover {
    background: var(--color-verde);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .ucp-form-layout {
        grid-template-columns: 1fr;
    }

    .ucp-preview-panel {
        position: static;
        height: auto;
    }
}

@media (max-width: 768px) {
    .ucp-sidebar {
        display: none;
    }

    .ucp-topbar {
        padding: 20px 20px 16px;
    }

    .ucp-form-panel {
        padding: 20px;
    }

    .ucp-event-grid {
        padding: 16px 20px;
        grid-template-columns: 1fr;
    }

    .ucp-fields-grid {
        grid-template-columns: 1fr;
    }

    .ucp-alert {
        margin: 12px 20px 0;
    }
}

/* ── LOGIN: marca y nuevos elementos ─────────────────── */
.ucp-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.ucp-login-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text);
}

.ucp-login-sub {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 24px;
    font-family: var(--mono);
    line-height: 1.5;
}

.ucp-login-alert {
    background: rgba(255, 77, 77, .1);
    border: 1px solid rgba(255, 77, 77, .25);
    color: var(--danger);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 20px;
}

/* ── TABLA ────────────────────────────────────────────── */
.ucp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ucp-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 10px;
    font-family: var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.ucp-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.ucp-table tbody tr:hover td {
    background: var(--surface2);
}

.ucp-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── NAV activo ───────────────────────────────────────── */
.ucp-nav-item.active {
    background: var(--surface2);
    color: var(--text);
}

.ucp-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── NAV activo ───────────────────────────────────────── */
.ucp-nav-item.active {
    background: var(--surface2);
    color: var(--text);
}

/* --- SPOTLIGHT INTEGRATION EN PANEL --- */
.ucp-spot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 24px 36px;
}

.ucp-spot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ucp-spot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ucp-spot-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-verde);
}

.ucp-spot-sc {
    font-family: var(--mono);
    font-size: 10px;
    background: var(--surface2);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.ucp-spot-preview {
    aspect-ratio: 16/9;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.ucp-spot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ucp-spot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.ucp-spot-preview:hover .ucp-spot-overlay {
    opacity: 1;
}

.ucp-spot-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--surface2);
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
}

.ucp-prev-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5px;
    height: 433px;
}

.ucp-prev-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.ucp-prev-slides {
    width: 100%;
    height: 100%;
}

.ucp-prev-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.ucp-prev-slide.active {
    display: block;
}

.ucp-prev-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ucp-prev-empty-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

.ucp-prev-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ucp-prev-arrow-left {
    left: 8px;
}

.ucp-prev-arrow-right {
    right: 8px;
}

.ucp-prev-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.ucp-prev-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
}

.ucp-prev-dot.active {
    background: #fff;
}

.ucp-prev-sidebar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ucp-prev-side-slot {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    display: block;
    text-decoration: none;
    transition: opacity .2s;
}

.ucp-prev-side-slot:hover {
    opacity: .8;
    outline: 2px solid var(--color-verde);
}

.ucp-prev-side-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ucp-prev-empty-side {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

.ucp-prev-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.ucp-prev-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
}

.ucp-layout-preview {
    margin-bottom: 32px;
    padding: 0 36px;
}

/* ── PUBLICIDAD: ZONAS Y GRUPOS ────────────────────────── */
.ucp-pub-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ucp-pub-section {
    padding: 28px 36px;
    border-bottom: 1px solid var(--border);
}

.ucp-pub-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ucp-pub-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-verde);
    flex-shrink: 0;
}

.ucp-pub-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.ucp-pub-section-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 0;
}

.ucp-pub-group {
    margin-bottom: 28px;
}

.ucp-pub-group:last-child {
    margin-bottom: 0;
}

.ucp-pub-group-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.ucp-pub-group-hint {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    opacity: .7;
}

/* ── BADGES DE ESTADO ──────────────────────────────────── */
.ucp-spot-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    width: fit-content;
}

.ucp-spot-badge-active {
    background: rgba(34, 197, 94, .15);
    color: #22c55e;
}

.ucp-spot-badge-partial {
    background: rgba(234, 179, 8, .15);
    color: #eab308;
}

.ucp-spot-badge-empty {
    background: var(--surface2);
    color: var(--muted);
}

/* ── UPLOAD CTA (slot vacío) ───────────────────────────── */
.ucp-spot-upload-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    color: var(--muted);
    transition: color .2s;
}

.ucp-spot-preview.empty:hover .ucp-spot-upload-cta {
    color: var(--color-verde);
}

.ucp-spot-upload-title {
    font-size: 13px;
    font-weight: 600;
}

.ucp-spot-upload-hint {
    font-size: 11px;
    opacity: .7;
    text-align: center;
}

/* ── SLIDE LABEL HOVER ─────────────────────────────────── */
.ucp-prev-slide-label {
    position: absolute;
    bottom: 32px;
    /* por encima de los dots de navegación */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 6px;
    opacity: 0;
    transition: opacity .2s;
    text-decoration: none;
}

.ucp-prev-side-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 6px;
    opacity: 0;
    transition: opacity .2s;
    text-decoration: none;
}

.ucp-prev-slide:hover .ucp-prev-slide-label,
.ucp-prev-side-slot:hover .ucp-prev-side-label {
    opacity: 1;
}

.ucp-prev-slide {
    position: relative;
    text-decoration: none;
    color: inherit;
}

.ucp-prev-side-slot {
    position: relative;
}

/* Quitar el padding del ucp-layout-preview viejo si queda */
.ucp-layout-preview {
    padding: 0 36px;
    margin-bottom: 32px;
}

/* ── SKELETON LOADER (sección Uso en el sitio) ─────────────── */
.ucp-skel {
    background: linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: ucpShimmer 1.4s infinite;
    display: inline-block;
}

@keyframes ucpShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.elementor-kit-11 button {
    background-color: #FFF;
    color: #737373;
}