/* ========================================
   NUEVAS VARIABLES Y FUENTE MINIMALISTA
   ======================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   HEADER MINIMALISTA
   ======================================== */
.ncbi-header { 
    background: var(--bg); 
    color: var(--text); 
    padding: 16px 0; 
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.ncbi-bar { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 24px; 
    display: flex; 
    align-items: center; 
}

.ncbi-title { 
    display: flex; 
    align-items: baseline; 
    gap: 10px;
}

.logo-main { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-sub { 
    font-size: 12px; 
    font-weight: 400; 
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ========================================
   LAYOUT ESPACIOSO
   ======================================== */
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 24px 24px; 
    flex: 1; 
    width: 100%; 
}

.layout { 
    display: grid; 
    grid-template-columns: 260px 1fr; 
    gap: 24px; 
    align-items: start; 
}

/* ========================================
   SIDEBAR LIMPIO
   ======================================== */
.sidebar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.sidebar-section { 
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.sidebar-section:first-child {
    padding-top: 0;
}

.sidebar-section:last-child { 
    border-bottom: none; 
}

.sidebar-header { 
    padding: 16px 16px 10px;
    font-weight: 600; 
    font-size: 11px; 
    color: var(--text-light); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.sidebar-count { 
    background: var(--bg-tertiary); 
    color: var(--text-light); 
    padding: 2px 8px; 
    border-radius: 10px; 
    font-size: 10px; 
    font-weight: 600;
}

.sidebar-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.sidebar-item { 
    padding: 8px 16px; 
    font-size: 12px; 
    cursor: pointer; 
    color: var(--text); 
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-item:hover { 
    background: var(--bg-secondary); 
    color: var(--primary);
    border-left-color: var(--primary);
}

.empty-state { 
    padding: 24px 16px; 
    text-align: center; 
    color: var(--text-lighter); 
    font-size: 12px; 
}

/* ========================================
   FOLDER CONTROLS
   ======================================== */
.folder-controls {
    padding: 0 16px 12px;
}

.btn-new-folder {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-new-folder:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.folders-container {
    padding: 0 8px;
}

.folder-item {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    margin-bottom: 3px;
}

.folder-item:hover {
    background: var(--bg-secondary);
}

.folder-item.active {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.folder-icon {
    width: 16px;
    height: 16px;
    color: var(--text-light);
    flex-shrink: 0;
}

.folder-item.active .folder-icon {
    color: var(--primary);
}

.folder-name {
    flex: 1;
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}

.folder-count {
    background: var(--bg-tertiary);
    color: var(--text-lighter);
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.folder-item.active .folder-count {
    background: var(--primary);
    color: white;
}

/* ========================================
   TOPICS GRID
   ======================================== */
.topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 16px;
}

.topic-item { 
    padding: 8px 10px; 
    font-size: 11px; 
    cursor: pointer; 
    color: var(--text); 
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    text-align: center;
    font-weight: 500;
}

.topic-item:hover { 
    background: var(--primary); 
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   SEARCH PANEL MODERNO
   ======================================== */
.search-panel { 
    background: var(--bg); 
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px; 
    margin-bottom: 20px; 
    box-shadow: var(--shadow);
}

.search-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: var(--bg);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.search-row {
    display: flex;
    margin-bottom: 16px;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-family: inherit;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    transition: all 0.2s;
    background: var(--bg);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search:hover {
    background: var(--primary-dark);
}

.btn-search:disabled {
    background: var(--text-lighter);
    cursor: not-allowed;
}

.search-controls {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.basic-filters {
    display: flex;
    gap: 16px;
}

.filter-label {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
}

.filter-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.adv-toggle {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
    transition: all 0.2s;
}

.adv-toggle:hover {
    color: var(--primary-dark);
}

.adv-toggle svg {
    transition: transform 0.2s;
}

.advanced-filters {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.filter-column h4 {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
}

.filter-option input {
    margin-right: 6px;
}

.filter-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    font-size: 12px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-family: inherit;
}

.date-range {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.date-range.active {
    display: flex;
}

.date-input {
    width: 65px;
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* ========================================
   QUERY PANEL
   ======================================== */
.query-panel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.query-header {
    background: var(--bg-secondary);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.query-content {
    padding: 14px;
    background: #1e293b;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    word-break: break-word;
    display: none;
    line-height: 1.6;
}

.btn-copy {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--bg-tertiary);
}

/* ========================================
   RESULTS CONTAINER
   ======================================== */
.results-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.results-header {
    background: var(--bg-secondary);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.paper {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.paper:last-child {
    border-bottom: none;
}

.paper:hover {
    background: var(--bg-secondary);
}

.paper-title {
    font-size: 15px;   
    color: #0071bc; 
    text-decoration: none;
    font-weight: 500; 
    display: block;
    margin-bottom: 4px;
    line-height: 1.4;
    transition: all 0.2s;
}


.paper-title:hover {
    color: #1a5276;   
    text-decoration: underline;
}

.paper-meta {
    font-size: 11px;
    color: #508266; 
    margin-bottom: 6px;
    font-weight: 600;
}

.paper-abstract {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-highlight {
    background-color: transparent;
    font-weight: 700;     /* Negrita marcada */
    color: #004080;       /* Azul marino oscuro para destacar */
}

/* 4. Especificidad para el título (para asegurar que se vea bien) */
.paper-title .search-highlight {
    color: #003366;       /* Azul muy oscuro, casi negro, para máximo contraste en el título */
    font-weight: 800;     /* Extra negrita */
}

.paper-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-action {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 6px 14px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-saved {
    background: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.link-pubmed {
    margin-left: auto;
    font-size: 11px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link-pubmed:hover {
    color: var(--primary-dark);
}

.free-label {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}

.ai-summary {
    margin-top: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--warning);
    padding: 12px;
    display: none;
    font-size: 12px;
    line-height: 1.6;
    border-radius: var(--radius-sm);
}

/* ========================================
   LOADER
   ======================================== */
.loader {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 12px;
    display: none;
    font-weight: 500;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   FOOTER MINIMALISTA
   ======================================== */
.legal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    background: var(--text);
    color: #d1d5db;
    padding: 16px 24px;
    font-size: 11px;
    text-align: center;
    border-top: 1px solid #374151;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fbbf24;
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-warning svg {
    flex-shrink: 0;
}

.footer-warning a {
    color: #fcd34d;
    text-decoration: underline;
}

.footer-disclaimer {
    color: #9ca3af;
    line-height: 1.5;
}

.close-footer-btn {
    position: absolute;
    top: 8px;
    right: 16px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.close-footer-btn:hover {
    color: white;
}

/* ========================================
   BOTONES FLOTANTES
   ======================================== */
.legal-trigger,
.about-trigger {
    position: fixed;
    bottom: 100px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 13px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    font-weight: 500;
    transition: all 0.3s ease; /* Transición suave para el movimiento */
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-trigger {
    right: 30px;
}

.about-trigger {
    right: 150px;
}

.legal-trigger:hover,
.about-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   MODALES
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalFadeIn 0.2s ease;
}

.modal-header {
    background: var(--bg-secondary);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.legal-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h4 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
}

.legal-section p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   SAVED PAPERS - ICONOS PEQUEÑOS
   ======================================== */
.saved-item { 
    padding: 8px 12px; 
    border-bottom: 1px solid var(--border-light); 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.saved-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 6px; 
}

.saved-link { 
    color: var(--text); 
    font-size: 12px; 
    text-decoration: none; 
    font-weight: 500; 
    flex: 1; 
    line-height: 1.4; 
}

.saved-link:hover { 
    color: var(--primary); 
    text-decoration: underline; 
}

.icon-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 4px; 
    opacity: 0.5; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.icon-btn:hover { 
    opacity: 1; 
    background: var(--bg-secondary);
}

.icon-btn svg { 
    width: 14px; 
    height: 14px; 
    stroke: currentColor; 
    fill: none; 
    stroke-width: 2; 
}

.edit-input { 
    width: 100%; 
    padding: 4px 6px; 
    border: 1px solid var(--border); 
    font-size: 11px; 
    font-family: inherit;
    border-radius: var(--radius-sm);
}

.folder-actions {
    display: none;
    gap: 4px;
    align-items: center;
}

.folder-item:hover .folder-actions {
    display: flex;
}

.folder-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.folder-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.folder-btn-edit {
    color: #1976d2;
}

.folder-btn-edit:hover {
    background: rgba(25, 118, 210, 0.1);
    color: #1565c0;
}

.folder-btn-delete {
    color: #d32f2f;
}

.folder-btn-delete:hover {
    background: rgba(211, 47, 47, 0.1);
    color: #c62828;
}

.folder-btn svg {
    width: 14px;
    height: 14px;
}

.folder-input {
    flex: 1;
    padding: 6px 8px;
    border: 2px solid var(--primary);
    font-size: 11px;
    font-family: inherit;
    border-radius: 3px;
    outline: none;
}

.folder-dropdown {
    position: fixed;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 10000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.folder-dropdown.show {
    display: block;
}

.folder-dropdown::-webkit-scrollbar { 
    width: 6px; 
}

.folder-dropdown::-webkit-scrollbar-track { 
    background: #f5f5f5; 
}

.folder-dropdown::-webkit-scrollbar-thumb { 
    background: #ccc; 
    border-radius: 3px; 
}

.folder-option {
    padding: 8px 12px;
    font-size: 11px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    color: var(--text);
    font-weight: 500;
}

.folder-option:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.folder-option:last-child {
    border-bottom: none;
}

.folder-option svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.folder-option-empty {
    padding: 12px;
    text-align: center;
    font-size: 11px;
    color: var(--text-lighter);
    font-style: italic;
}

.folder-papers-list {
    margin-left: 10px;
    border-left: 2px solid var(--border-light);
    padding-left: 10px;
    position: relative;
    z-index: 1;
}

/* ========================================
   SOCIAL BUTTONS
   ======================================== */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.linkedin:hover {
    background: #005e93;
}

.social-btn.github {
    background: #24292e;
}

.social-btn.github:hover {
    background: #000;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
        position: static;
    }
    
    .main {
        order: 1;
    }
    
    .legal-trigger,
    .about-trigger {
        bottom: 120px;
    }
    
    .about-trigger {
        right: 30px;
        bottom: 180px;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;  /* Situado a la izquierda */
    width: 320px; /* Ancho fijo para que parezca una tarjeta/cuadrado */
    background: #1f2937; /* Fondo oscuro */
    color: white;
    padding: 24px;
    border-radius: 16px; /* Bordes más redondeados */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 10001; /* Por encima del footer (900) y botones flotantes (1000) */
    display: flex; /* Flex para organizar contenido */
    flex-direction: column;
    gap: 16px;
    border: 1px solid #374151;
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-content p {
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
    color: #e5e7eb;
    text-align: left;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* Botones alineados a la izquierda */
}

.btn-accept {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    transition: background 0.2s;
}

.btn-accept:hover {
    background: #1d4ed8;
}

.btn-decline {
    background: transparent;
    border: 1px solid #4b5563;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}

.btn-decline:hover {
    border-color: #d1d5db;
    color: #d1d5db;
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}