@import url('./css/variables.css?v=4.5');
@import url('./css/modals.css?v=4.5');
@import url('./css/chat.css?v=4.5');
@import url('./css/marketing.css?v=4.5');
@import url('./css/account.css?v=4.5');
@import url('./css/responsive.css?v=4.5');


/* Sidebar Styling */
.sidebar {
    width: 220px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 30px 16px;
    z-index: 100;
    transition: var(--transition);
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-header .logo {
    font-family: var(--font-modern);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-main);
    margin-bottom: 35px;
    text-transform: uppercase;
}

.ia-highlight {
    color: var(--accent);
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.nav-item {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 12px 14px;
    text-align: left;
    font-family: var(--font-modern);
    font-size: 0.78rem;
    font-weight: 700;
    /* Más peso para visibilidad */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.06);
}

body.theme-carbon .nav-item:hover,
body.theme-carbon .nav-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    border-left: 4px solid var(--accent);
}

.sidebar-footer {
    padding-top: 25px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tier-badge {
    align-self: flex-start;
    padding: 4px 10px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.tier-badge.pro {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.status-label span {
    color: var(--text-main);
}

.status-bar {
    height: 6px;
    background: var(--input-bg);
    border-radius: 3px;
    overflow: hidden;
}

.status-progress {
    height: 100%;
    background: var(--accent);
    transition: width 0.5s ease;
}

.status-progress.highlight {
    background: #4A90E2;
}

.extras-info {
    font-size: 0.7rem;
    color: #4CAF50;
    font-weight: 600;
}

.sidebar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.action-btn {
    padding: 12px;
    border-radius: 10px;
    font-family: var(--font-modern);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.action-btn.primary {
    background: var(--accent);
    color: var(--bg-main);
}

.action-btn.secondary {
    background: transparent;
    color: var(--text-main);
}

.action-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Free Tier Banner */
.free-tier-banner {
    background-color: var(--text-main);
    color: var(--bg-main);
    text-align: center;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 400;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}
.free-tier-banner.hidden {
    display: none !important;
}

/* Top Bar - BOTONES ARRIBA (Más compacta) */
.top-bar {
    height: 40px;
    /* Reducido al mínimo */
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    z-index: 50;
    position: relative;
    margin-top: 10px;
    /* Pequeño margen desde arriba */
}


/* Logo en el sidebar - sobre la línea de footer */
.sidebar-logo-area {
    padding: 0 0 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    opacity: 1;
    transition: var(--transition);
    pointer-events: none;
}

body.theme-light .sidebar-logo {
    content: url('logo_bold.png');
}


.top-bar-left {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--sidebar-bg);
}

/* Fix visibilidad iconos toggle */
.theme-toggle span {
    filter: none !important;
}

body.theme-light .theme-toggle .light-icon {
    display: none;
}

body.theme-carbon .theme-toggle .dark-icon {
    display: none;
}

.login-btn-top {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn-top:hover {
    background: var(--accent);
    color: var(--bg-main);
}

.google-btn-container {
    display: flex;
    align-items: center;
    position: relative;
}

.user-profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.profile-trigger:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

#profile-email {
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-avatar {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-dropdown {
    position: fixed;
    top: 0;
    right: -320px; /* Hidden offscreen */
    width: 320px;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    display: block !important;
    transition: right 0.3s ease;
    padding: 30px 15px; /* Spacing */
    background: var(--sidebar-bg);
    border: none;
    border-left: 1px solid var(--border);
    z-index: 1000;
}

.profile-dropdown.active {
    right: 0;
    box-shadow: -4px 0 30px rgba(0,0,0,0.6);
}
.dropdown-header {
    padding: 8px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: 5px;
}

.dropdown-status {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dd-status-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dd-status-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dd-progress-bg {
    height: 4px;
    background: var(--input-bg);
    border-radius: 2px;
    overflow: hidden;
}

.dd-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.5s ease;
}

.dd-progress-fill.highlight {
    background: #4A90E2;
}

.dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: var(--input-bg);
    color: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.dropdown-item.logout {
    color: #FF4B2B;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.content-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    overflow-y: auto;
    width: 100%;
}


/* Chat (motor, mensajes, toolbar, referencias) ? ver css/chat.css */


/* Marketing (testimonials, timeline, contacto, pricing) ? ver css/marketing.css */

/* Account (docs, cuenta, plans, referidos, extras, radar) ? ver css/account.css */

/* Responsive mobile → ver css/responsive.css */


/* ========================================= */
/* ESTILOS DEL HISTORIAL DE CHATS            */
/* ========================================= */

.chat-history-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.chat-clock-btn {
    /* Set overriden in floating-widget at end of file */
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-clock-btn:hover {
    background: var(--bg-main);
}

.chats-dropdown {
    position: absolute;
    bottom: 50px; 
    left: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpFade 0.3s ease;
}

.chats-dropdown.hidden {
    display: none;
}

.chats-dropdown-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-main);
}

.chats-dropdown-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.new-chat-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.new-chat-btn:hover {
    background: var(--accent);
    color: var(--bg-main);
}

.chats-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 0;
}

.dropdown-chat-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-chat-item .chat-title-span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-chat-item:hover {
    background: var(--hover-color);
}

.dropdown-chat-item.active {
    background: rgba(169, 143, 85, 0.15); /* Accent con opacidad */
    border-left: 3px solid var(--accent);
}

.chats-dropdown-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg-main);
}

.chats-dropdown-footer a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.chats-dropdown-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Administrador de Historial (Pestaña "Mi Cuenta") */
.chat-manager-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.chat-manager-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: grab;
}

.chat-manager-row:active {
    cursor: grabbing;
}

.chat-manager-row.over {
    border-top: 2px solid var(--accent);
    background: var(--hover-color);
}

.chat-manager-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0 5px;
    user-select: none;
}
.drag-handle:active {
    cursor: grabbing;
}

.chat-m-title {
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-manager-actions {
    display: flex;
    gap: 10px;
}

.chat-manager-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.2s;
}

.chat-manager-actions button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.chat-manager-actions .delete-btn:hover {
    color: #ff4c4c;
}

/* En desktop: el botón de historial en el sidebar no se muestra */
.mobile-only-nav {
    display: none !important;
}

.chat-history-floating-widget {
    transition: left 0.3s ease;
}

@media (max-width: 768px) {
    /* En móvil: mostrar el botón de historial dentro del sidebar */
    .mobile-only-nav {
        display: flex !important;
    }

    /* En móvil: ocultar el widget flotante del reloj */
    .chat-history-floating-widget {
        display: none !important;
    }
}

.chat-clock-btn {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin: 0;
    width: auto;
    height: auto;
}
.chat-clock-btn:hover {
    border-color: var(--accent);
    background: var(--sidebar-bg);
}
.chat-history-dropdown-container-floating .chats-dropdown {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 280px;
}

/* ============================================
   MALETÍN INTELIGENTE Y PORTERO
   ============================================ */
.maletin-bar {
    transition: all 0.3s ease;
    z-index: 10;
}

.maletin-bar:hover .maletin-bar-header {
    background: rgba(10, 10, 20, 0.9) !important;
    border-color: var(--accent) !important;
}

.maletin-cards {
    transition: all 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.maletin-cards::-webkit-scrollbar {
    width: 6px;
}

.maletin-cards::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Animación de entrada de tarjetas de búsqueda avanzada */
#adv-search-results > div {
    animation: slideUpFade 0.4s ease forwards;
}

/* Spinner Loader sutil */
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Steering Prompt Highlight */
#upload-confirm-box {
    animation: slideUpFade 0.3s ease;
    border-left: 3px solid #a855f7 !important;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.05) 0%, rgba(0,0,0,0.2) 100%) !important;
}

#steering-prompt-input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

/* =========================================================================
   MALET�N RIGHT PANEL (NEW UX)
   ========================================================================= */
.maletin-right-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background: var(--sidebar-bg, #111111);
    border-left: 1px solid var(--border);
    box-shadow: -5px 0 30px rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), opacity 0.3s ease;
}

.maletin-right-panel.closed {
    transform: translateX(100%);
    opacity: 0.8;
}

.maletin-right-panel.popup {
    top: 15vh;
    right: 15vw;
    bottom: 15vh;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    transform: translateX(0) scale(1);
}

.maletin-right-panel.popup.closed {
    transform: translateX(0) scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.mrp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
}

.mrp-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mrp-controls button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.2s;
}
.mrp-controls button:hover {
    color: var(--text-main);
}

.mrp-capacidad {
    padding: 10px 20px;
    background: rgba(34, 197, 94, 0.05);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.mrp-tabs-bar {
    display: flex;
    border-bottom: 2px solid var(--border);
    padding: 0;
    gap: 0;
}
.mrp-tabs-bar .mrp-tab {
    flex: 1;
    padding: 14px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-modern);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.mrp-tabs-bar .mrp-tab:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}
.mrp-tabs-bar .mrp-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.mrp-body {
    flex: 1;
    overflow-y: auto;
    background: var(--sidebar-bg);
}

.mrp-content {
    padding: 15px;
}

.mrp-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mrp-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.mrp-item-title {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}
.mrp-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
}
.mrp-item-remove:hover { opacity: 1; }





#btn-maletin-topbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px 18px;
    margin-right: 14px;
    font-family: var(--font-modern);
    font-size: 0.88rem;
    transition: background 0.2s, border-color 0.2s;
}
#btn-maletin-topbar:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}
.maletin-counter {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.82rem;
}
.maletin-counter strong {
    background: rgba(255,255,255,0.1);
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}
.maletin-separator {
    color: var(--text-muted);
    opacity: 0.4;
}


/* ============================================================
   APP-TOOLBAR (Barra Superior de Acciones)
   ============================================================ */
.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1100;
    gap: 12px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-center {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.toolbar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-modern);
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 14px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.toolbar-action-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--text-main);
}

.toolbar-badge {
    background: var(--accent);
    color: var(--bg-main);
    border-radius: 10px;
    font-size: 0.7rem;
    padding: 1px 7px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}


.clip-btn {
    background: transparent;
    color: var(--text-muted);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    cursor: pointer;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    padding: 0;
    transition: all 0.2s;
}
.clip-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.mrp-drop-area {
    margin: 10px 15px;
    padding: 20px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mrp-drop-area:hover, .mrp-drop-area.dragover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,0,0, 0.05);
}
/* NUEVAS REGLAS PARA B�SQUEDAS Y CARTAS GRANDES */
.mrp-item-card {
    padding: 18px 22px !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    gap: 10px !important;
    font-size: 1.1rem !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mrp-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--accent);
}
.mrp-btn-leer {
    transition: background 0.2s, transform 0.1s;
}
.mrp-btn-leer:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* Responsive toolbar visibility */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }

    /* Maletín panel: fullscreen en móvil */
    .maletin-right-panel {
        width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
    }
    .maletin-right-panel.popup {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
    }
}
@media (min-width: 769px) {
    .show-mobile-only { display: none !important; }
}

/* Toast animation */
@keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

/* Footer actions del maletín */
.mrp-footer-actions {
    margin-top: auto;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}
.mrp-footer-actions .action-btn {
    flex: 1;
    font-size: 0.78rem;
    padding: 10px 8px;
    text-align: center;
}

/* .maletin-modal-overlay / .maletin-modal / .md-editor-* → ver css/modals.css */

/* =============================================================================
   TOAST NOTIFICATIONS (RESPONSIVE)
   ============================================================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: calc(100% - 48px);
}

.toast-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    animation: slideInToast 0.3s ease;
    line-height: 1.4;
    transition: opacity 0.4s ease;
}

.toast-item--success {
    border: 1px solid #22c55e;
    border-left: 4px solid #22c55e;
}
.toast-item--error {
    border: 1px solid #ef4444;
    border-left: 4px solid #ef4444;
}
.toast-item--warning {
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
}
.toast-item--info {
    border: 1px solid #3b82f6;
    border-left: 4px solid #3b82f6;
}

@media (max-width: 480px) {
    .toast-container {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: calc(100% - 24px);
        max-width: none;
        gap: 6px;
    }
    .toast-item {
        padding: 10px 14px;
        font-size: 0.78rem;
        border-radius: 6px;
    }
}