/* 
    Document   : styles
    Created on : 02-feb-2013, 2:24:27
    Author     : juanharo
    Description: Modern and elegant design for Juan Haro's website
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Code+Pro:wght@400;500&display=swap');

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Source Code Pro', 'Monaco', 'Consolas', monospace;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Improve scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Estilos específicos para párrafos de herramientas */
h3 + p {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

button{
    cursor: pointer;
}

/* Enlaces de aplicaciones y herramientas */
.app-link,
.tool-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    display: inline-block;
    margin-top: 0.5rem;
    /* Mejorar touch targets en móviles */
    min-height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.app-link:hover,
.tool-link:hover {
    color: var(--primary-dark);
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.app-link {
    color: var(--success-color);
    border-color: var(--success-color);
}

.app-link:hover {
    color: #059669;
    border-color: #059669;
    background: rgba(16, 185, 129, 0.05);
}

/* Navigation */
.navigation {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
    /* Improve touch targets on mobile */
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
    text-decoration: none;
}

.nav-menu a.active {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-primary);
    min-height: calc(100vh - 70px - 200px);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Content Container */
.content {
    max-width: 100%;
}

/* Intro Section */
.intro-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.intro-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.intro-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
}

.intro-highlight {
    color: var(--primary-color);
    background: linear-gradient(120deg, rgba(111, 66, 193, 0.1) 0%, rgba(111, 66, 193, 0.05) 100%);
    border-radius: 4px;
}

/* Profile Links */
.profile-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.profile-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    /* Mejorar touch targets en móviles */
    min-height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.profile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.profile-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-link:hover::before {
    left: 100%;
}

/* Publications List */
.publications-list {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0;
    padding-bottom: 0;
}

.publication-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    position: relative;
}

.publication-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.publication-journal-image {
    flex-shrink: 0;
    width: 110px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    /*background: var(--bg-tertiary);
    border: 1px solid var(--border-color);*/
}

.publication-content {
    flex: 1;
    min-width: 0;
}

.publication-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-item:hover::before {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color) 100%);
    width: 3px;
}

.publication-title-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.publication-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    flex: 1;
}

.publication-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.resource-file-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.publication-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.publication-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Estilos para el icono de enlace externo en títulos */
.external-link-icon {
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.publication-title a:hover .external-link-icon,
.latest-article-title a:hover .external-link-icon {
    opacity: 1;
    transform: translateX(2px);
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.publication-journal {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.2rem 0 0.75rem 0;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resource-type-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.resource-files-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.resource-files-icon {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
}

/* Estilos para el badge de tipo de recurso */
.resource-badge {
    display: inline-flex;
    align-items: center;
}

.resource-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.resource-type-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    width: 0.8rem;
    height: 0.8rem;
    stroke-width: 2;
}

.badge-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
}

/* Colores específicos para diferentes tipos de recursos */
.resource-type-badge.resource-app {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

.resource-type-badge.resource-emoji {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.resource-type-badge.resource-words {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
    color: #065f46;
}

.resource-type-badge.resource-idioms {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #8b5cf6;
    color: #5b21b6;
}

.resource-type-badge.resource-database {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #991b1b;
}

.resource-type-badge.resource-psychology {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #06b6d4;
    color: #0e7490;
}

.resource-type-badge.resource-tool {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-color: #ec4899;
    color: #be185d;
}

.resource-type-badge.resource-experiment {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.resource-type-badge.resource-ambiguity {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
    color: #15803d;
}

.resource-type-badge.resource-emotion {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #f87171;
    color: #dc2626;
}

.publication-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Estilos para el diseño tipo archivo con pestañas laterales */
.publications-list.file-style {
    margin-top: 2rem;
}

.year-file-group {
    display: flex;
    margin-bottom: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.year-tab {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.1rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    position: relative;
    opacity: 0.9;
}

.year-tab::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.year-content {
    flex: 1;
    padding: 1.25rem;
    background: var(--bg-primary);
}

.year-content .publication-item {
    margin-bottom: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.year-content .publication-item:last-child {
    margin-bottom: 0;
}

.year-content .publication-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

/* Estilos para imágenes de revistas */
.journal-cover {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.journal-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.journal-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.journal-placeholder:hover::before {
    transform: translateX(100%);
}

.journal-placeholder:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Placeholder para capítulos de libros */
.book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-sm);
    border: 1px solid #f59e0b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.book-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.book-placeholder:hover::before {
    transform: translateX(100%);
}

.book-placeholder:hover {
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Placeholder para tesis */
.thesis-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: var(--radius-sm);
    border: 1px solid #3b82f6;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thesis-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.thesis-placeholder:hover::before {
    transform: translateX(100%);
}

.thesis-placeholder:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Placeholder para recursos */
.resource-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resource-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.resource-placeholder:hover::before {
    transform: translateX(100%);
}

.resource-placeholder:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    position: relative;
    padding: 1rem;
    width: 100%;
}

.placeholder-initials {
    font-size: 2rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.05em;
}

.placeholder-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Colores específicos para diferentes tipos de placeholders */
.journal-placeholder .placeholder-label {
    color: #374151;
}

.book-placeholder .placeholder-label {
    color: #92400e;
}

.thesis-placeholder .placeholder-label {
    color: #1e40af;
}

/* Estilos específicos para diferentes tipos de recursos */
.resource-app {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
}

.resource-app:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.resource-app .placeholder-initials {
    color: #1e40af;
}

.resource-app .placeholder-type {
    color: #3b82f6;
}

.resource-emoji {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.resource-emoji:hover {
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.resource-emoji .placeholder-initials {
    color: #92400e;
}

.resource-emoji .placeholder-type {
    color: #f59e0b;
}

.resource-words {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.resource-words:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.resource-words .placeholder-initials {
    color: #15803d;
}

.resource-words .placeholder-type {
    color: #22c55e;
}

.resource-psychology {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-color: #a855f7;
}

.resource-psychology:hover {
    border-color: #9333ea;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.resource-psychology .placeholder-initials {
    color: #7c3aed;
}

.resource-psychology .placeholder-type {
    color: #a855f7;
}

.resource-tool {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
}

.resource-tool:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.resource-tool .placeholder-initials {
    color: #b91c1c;
}

.resource-tool .placeholder-type {
    color: #ef4444;
}

.resource-experiment {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #06b6d4;
}

.resource-experiment:hover {
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.resource-experiment .placeholder-initials {
    color: #0e7490;
}

.resource-experiment .placeholder-type {
    color: #06b6d4;
}

.resource-idioms {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #ea580c;
}

.resource-idioms:hover {
    border-color: #c2410c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.resource-idioms .placeholder-initials {
    color: #9a3412;
}

.resource-idioms .placeholder-type {
    color: #ea580c;
}

.resource-ambiguity {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #64748b;
}

.resource-ambiguity:hover {
    border-color: #475569;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
}

.resource-ambiguity .placeholder-initials {
    color: #334155;
}

.resource-ambiguity .placeholder-type {
    color: #64748b;
}

.resource-emotion {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: #ec4899;
}

.resource-emotion:hover {
    border-color: #db2777;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.resource-emotion .placeholder-initials {
    color: #be185d;
}

.resource-emotion .placeholder-type {
    color: #ec4899;
}

.resource-database {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

.resource-database:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.resource-database .placeholder-initials {
    color: #065f46;
}

.resource-database .placeholder-type {
    color: #10b981;
}



.placeholder-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.publication-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    /* Improve touch targets on mobile */
    min-height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.publication-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Estilos para botones de descarga de datos */
.download-data-link {
    color: #10b981;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border: 2px solid #10b981;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    background: rgba(16, 185, 129, 0.05);
    min-height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.download-data-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.download-data-link:hover {
    background: #10b981;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.download-data-link:hover::before {
    left: 100%;
}

.download-data-link .link-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Icono de descarga distintivo para todos los enlaces de descarga */
.download-data-link .download-icon {
    width: 14px;
    height: 14px;
    margin-left: 0.25rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    stroke-width: 2.5;
}

.download-data-link:hover .download-icon {
    opacity: 1;
}

/* Estilos específicos para archivos PDF */
.download-data-link[href*=".pdf"] {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.download-data-link[href*=".pdf"]::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
}

.download-data-link[href*=".pdf"]:hover {
    color: white !important;
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Estilos específicos para archivos ZIP */
.download-data-link[href*=".zip"] {
    color: #f97316;
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.download-data-link[href*=".zip"]::before {
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
}

.download-data-link[href*=".zip"]:hover {
    color: white;
    background: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Estilos específicos para archivos Excel (xlsx, xls) */
.download-data-link[href*=".xlsx"],
.download-data-link[href*=".xls"] {
    color: #059669;
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.download-data-link[href*=".xlsx"]::before,
.download-data-link[href*=".xls"]::before {
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.1), transparent);
}

.download-data-link[href*=".xlsx"]:hover,
.download-data-link[href*=".xls"]:hover {
    color: white;
    background: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Estilos específicos para archivos CSV */
.download-data-link[href*=".csv"] {
    color: #0891b2;
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.05);
}

.download-data-link[href*=".csv"]::before {
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.1), transparent);
}

.download-data-link[href*=".csv"]:hover {
    color: white;
    background: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* Estilos para iconos en enlaces */
.link-icon {
    width: 14px;
    height: 14px;
    margin-right: 0.3rem;
    stroke-width: 2.5;
}

.apa-cite-btn {
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--primary-color);
    background: transparent;
}

.apa-cite-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal APA */
.apa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    padding: 1rem;
}

.apa-modal.show {
    opacity: 1;
}

.apa-modal-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 550px;
    width: 100%;
    max-height: 75vh;
    overflow: hidden;
    transform: scale(0.85) translateY(30px) rotateX(5deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.apa-modal.show .apa-modal-content {
    transform: scale(1) translateY(0) rotateX(0deg);
}

.apa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.apa-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.apa-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
    line-height: 1.4;
}

.apa-modal-close {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.apa-modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.apa-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.apa-modal-close:hover::before {
    left: 100%;
}

.apa-modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.apa-citation-display {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.875rem;
    padding: 1.75rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: normal;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    backdrop-filter: blur(10px);
    font-family: var(--font-sans);
}


.apa-citation-display i {
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 500;
}

.apa-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.apa-copy-btn,
.apa-close-btn {
    padding: 0.875rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.apa-copy-btn::before,
.apa-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.apa-copy-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px -5px rgba(111, 66, 193, 0.3),
        0 4px 10px -2px rgba(111, 66, 193, 0.2);
}

.apa-copy-btn:hover::before {
    left: 100%;
}

.apa-close-btn:hover {
    background: var(--text-secondary);
    color: white;
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px -5px rgba(100, 116, 139, 0.3),
        0 4px 10px -2px rgba(100, 116, 139, 0.2);
}

.apa-close-btn:hover::before {
    left: 100%;
}


/* Botón Buscar PDF */
.pdf-search-btn {
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--primary-color);
    background: transparent;
}

.pdf-search-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal Abstract */
.abstract-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    padding: 1rem;
}

.abstract-modal.show {
    opacity: 1;
}

.abstract-modal-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 650px;
    width: 100%;
    max-height: 75vh;
    overflow: hidden;
    transform: scale(0.85) translateY(30px) rotateX(5deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.abstract-modal.show .abstract-modal-content {
    transform: scale(1) translateY(0) rotateX(0deg);
}

.abstract-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.abstract-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.abstract-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
}

.abstract-modal-close {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.abstract-modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.abstract-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.abstract-modal-close:hover::before {
    left: 100%;
}

.abstract-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.abstract-title-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.abstract-title-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.abstract-article-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.4;
    position: relative;
}

.abstract-article-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.abstract-article-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.abstract-article-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px -5px rgba(111, 66, 193, 0.3),
        0 4px 10px -2px rgba(111, 66, 193, 0.2);
}

.abstract-article-link:hover::before {
    left: 100%;
}

.abstract-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
}

.abstract-modal-footer {
    display: none;
}

.abstract-close-btn {
    padding: 0.875rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.abstract-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.abstract-close-btn:hover {
    background: var(--text-secondary);
    color: white;
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px -5px rgba(100, 116, 139, 0.3),
        0 4px 10px -2px rgba(100, 116, 139, 0.2);
}

.abstract-close-btn:hover::before {
    left: 100%;
}

.abstract-btn{
    background: transparent !important;
    font-family: inherit;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
}

.abstract-btn:hover{
    background: var(--primary-color) !important;
    color: white !important;
}

/* Modal de búsqueda PDF */
.pdf-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    padding: 1rem;
}

.pdf-search-modal.show {
    opacity: 1;
}

.pdf-search-modal-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    transform: scale(0.85) translateY(30px) rotateX(5deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.pdf-search-modal.show .pdf-search-modal-content {
    transform: scale(1) translateY(0) rotateX(0deg);
}

.pdf-search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.pdf-search-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.pdf-search-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
}

.pdf-search-modal-close {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pdf-search-modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pdf-search-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.pdf-search-modal-close:hover::before {
    left: 100%;
}

.pdf-search-modal-body {
    padding: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.pdf-search-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.875rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.pdf-search-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.pdf-search-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pdf-search-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pdf-search-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.pdf-search-option:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px -5px rgba(111, 66, 193, 0.2),
        0 4px 10px -2px rgba(111, 66, 193, 0.1);
    text-decoration: none;
}

.pdf-search-option:hover::before {
    left: 100%;
}

.pdf-search-option-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.pdf-search-option-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.pdf-search-option-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pdf-search-option-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.pdf-search-option:hover .pdf-search-option-icon {
    transform: scale(1.1);
}

.pdf-search-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.pdf-search-close-btn {
    padding: 0.875rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pdf-search-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.pdf-search-close-btn:hover {
    background: var(--text-secondary);
    color: white;
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px -5px rgba(100, 116, 139, 0.3),
        0 4px 10px -2px rgba(100, 116, 139, 0.2);
}

.pdf-search-close-btn:hover::before {
    left: 100%;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .apa-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }
    
    .apa-modal-header,
    .apa-modal-body,
    .apa-modal-footer {
        padding: 1.25rem;
    }
    
    .apa-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .apa-citation-display {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 1.25rem;
    }
    
    .apa-modal-footer {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: flex-end;
    }
    
    .apa-copy-btn,
    .apa-close-btn {
        width: auto;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .pdf-search-modal-content {
        width: 95%;
        margin: 15px;
        max-width: 450px;
    }
    
    .pdf-search-modal-header,
    .pdf-search-modal-body,
    .pdf-search-modal-footer {
        padding: 12px;
    }
    
    .pdf-search-option {
        padding: 1rem;
    }
    
    .pdf-search-option-name {
        font-size: 0.95rem;
    }
    
    .pdf-search-option-desc {
        font-size: 0.85rem;
    }
    
    .abstract-title-section {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .abstract-modal{
        padding: 0.25rem;
        border:none;
        box-shadow: none;
    }

    .abstract-modal-header{
        padding: 0.8rem;
    }

    .abstract-modal-footer{
        padding: 0.8rem;
        display:none;
    }

    .abstract-modal-body{
        padding: 1.25rem;
    }

    .apa-modal-header{
        padding: 0.8rem;

    }

    .apa-modal .apa-citation-display{
        padding: 0.3rem;
        font-size: 0.9rem;
        border: none;
        box-shadow: none;
    }

    .apa-close-btn{
        display:none;
    }

    .pdf-search-modal-header{
        padding: 0.8rem;
    }

    .pdf-search-modal-footer{
        display:none;
    }



    .abstract-article-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .abstract-article-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .abstract-content {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0;
        border:none;
        box-shadow: none;
    }
    
    .pdf-search-option-name {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .pdf-search-option-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

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

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-content {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    /* Mejorar touch targets en móviles */
    min-height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    color: white;
    text-decoration: none;
}

/* Code Blocks */
pre.code {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    position: relative;
}

/* Estilos específicos para diferentes lenguajes */
pre.code.php {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

pre.code.javascript,
pre.code.js {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

pre.code.html {
    background: #1a202c;
    color: #e2e8f0;
    border: 1px solid #2d3748;
}

pre.code.css {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

pre.code.sql {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

pre.code.json {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

pre.code.xml {
    background: #1a202c;
    color: #e2e8f0;
    border: 1px solid #2d3748;
}

pre.code.yaml,
pre.code.yml {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

pre.code.text {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Etiqueta de lenguaje */
pre.code::before {
    content: attr(data-language);
    position: absolute;
    top: 0;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mejoras para Prism.js */
pre.code[class*="language-"] {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding-top: 2.5rem;
}

pre.code[class*="language-"]::before {
    content: attr(data-language);
    position: absolute;
    top: 0;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-icon {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
    vertical-align: middle;
}

.footer-icon-small {
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.4rem;
    color: var(--text-muted);
    vertical-align: middle;
    opacity: 0.7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}

.footer-section ul li:hover {
    padding-left: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-section a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.3;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: var(--success-color);
    color: #065f46;
}

.alert-error {
    background-color: #fef2f2;
    border-color: var(--danger-color);
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border-color: var(--info-color);
    color: #1e40af;
}

/* Download Links */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-link:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* External Links */
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.external-link::after {
    content: "↗";
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:hover {
    background-color: var(--bg-secondary);
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        font-size: 0.9rem;
        padding: 2rem 0 1rem;
        margin-top: 1.5rem;
    }
    .nav-container {
        padding: 0 1rem;
        height: 70px;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: left;
        border-radius: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .main-content {
        padding: 0.75rem;
        margin: 0.5rem;
        border-radius: var(--radius-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
        text-align: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-section h4::after {
        width: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul li {
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .footer-bottom {
        padding: 1.25rem 1rem 0;
        margin-top: 1.5rem;
    }
    
    .footer-icon {
        width: 1rem;
        height: 1rem;
        margin-right: 0.4rem;
        display: inline-block;
    }
    
    .footer-icon-small {
        width: 0.8rem;
        height: 0.8rem;
        margin-right: 0.3rem;
        display: inline-block;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .intro-section {
        margin: 2rem 0;
        padding: 0 0.5rem;
    }
    
    .intro-name {
        font-size: 1.7rem;
    }
    
    .intro-title {
        font-size: 1.1rem;
    }
    .intro-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .profile-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .profile-link {
        text-align: center;
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Mejorar enlaces de aplicaciones y herramientas en móviles */
    .app-link,
    .tool-link {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .publication-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
        margin-top: 0.75rem;
    }
    
    .publication-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    .publication-item:before {
        display: none;
    }
    
    /* Estilos específicos para la sección de prensa */
    .publications-list .publication-item .publication-content {
        width: 100%;
    }
    
    .publications-list .publication-item .publication-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .publications-list .publication-item .publication-authors {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .publications-list .publication-item .publication-journal {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        word-break: break-all;
    }
    
    .resource-description-container {
        margin-bottom: 0.75rem;
    }
    
    .resource-description-preview {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .resource-description-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .publication-journal-image {
        display: none;
    }
    
    .latest-article-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .latest-article-journal-image {
        display: none !important;
    }
    
    .latest-resource-placeholder {
        display: none !important;
    }
    
    .latest-article-journal-container {
        display: none !important;
    }
    
    .latest-article-content {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .latest-article-text {
        width: 100% !important;
    }
    
    .publication-link {
        text-align: center;
        min-height: 32px;
        min-width: 32px;
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        border-radius: var(--radius-sm);
        flex: 1;
        min-width: 100px;
        max-width: 160px;
    }
    
    /* Estilos responsive para el diseño tipo archivo */
    .year-file-group {
        flex-direction: column;
        margin-bottom: 1.25rem;
    }
    
    .year-tab {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0.25rem;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
        text-align: center;
        opacity: 0.85;
    }
    
    .year-content {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .year-content .publication-item {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
        margin: 0.25rem;
        border-radius: var(--radius-md);
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-menu a {
        border-radius: 0;
        padding: 1rem 1rem;
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .intro-name {
        font-size: 1.7rem;
    }
    
    .intro-title {
        font-size: 1.1rem;
    }
    
    .intro-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .publication-item {
        padding: 0.75rem;
    }
    
    .publication-title {
        font-size: 1rem;
    }
    
    .publication-authors {
        font-size: 0.85rem;
    }
    
    .publication-journal {
        font-size: 0.8rem;
    }
    
    /* Mejoras adicionales para pantallas muy pequeñas */
    .apa-modal-content {
        margin: 2px;
        width: 99%;
    }
    
    .apa-modal-header,
    .apa-modal-body,
    .apa-modal-footer {
        padding: 0.75rem;
    }
    
    .apa-citation-display {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .publications-list .publication-item {
        padding: 0.75rem;
    }
    
    .publications-list .publication-item .publication-title {
        font-size: 0.95rem;
    }
    
    .publications-list .publication-item .publication-authors {
        font-size: 0.8rem;
    }
    
    .publications-list .publication-item .publication-journal {
        font-size: 0.75rem;
    }
    
    .resource-description-preview,
    .resource-description-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .publication-journal-image {
        display: none;
    }
    
    .latest-article-journal-image {
        display: none !important;
    }
    
    .latest-resource-placeholder {
        display: none !important;
    }
    
    .latest-article-journal-container {
        display: none !important;
    }
    
    .latest-article-content {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .latest-article-text {
        width: 100% !important;
    }
    
    /* Optimización de enlaces en pantallas muy pequeñas */
    .publication-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: flex-start;
    }
    
    .publication-link {
        min-height: 30px;
        min-width: 30px;
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        border-radius: var(--radius-sm);
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }
    
    .resource-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: flex-start;
    }
    
    .resource-link {
        min-height: 30px;
        min-width: 30px;
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        border-radius: var(--radius-sm);
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }
    
    .latest-article-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 0.75rem;
        justify-content: flex-start;
    }
    
    .latest-article-links .publication-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        min-height: 30px;
        min-width: 30px;
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }
    
    /* Enlaces de aplicaciones en pantallas muy pequeñas */
    .app-link,
    .tool-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Mejorar botones de descarga en móviles */
    .download-data-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        min-height: 32px;
        min-width: 32px;
    }
    
    /* Mejorar botones generales en móviles */
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-height: 32px;
        min-width: 32px;
    }
    
    /* Mejorar espaciado de enlaces en móviles */
    .publication-links,
    .resource-links,
    .latest-article-links {
        gap: 0.4rem;
        margin-top: 0.75rem;
    }
    
    /* Estilos minimalistas adicionales */
    .publication-link,
    .resource-link,
    .download-data-link {
        border-width: 1px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    
    .publication-link:hover,
    .resource-link:hover,
    .download-data-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Modales más compactos en pantallas muy pequeñas */
    .apa-modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .apa-copy-btn,
    .apa-close-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    /* Footer optimizado para pantallas muy pequeñas */
    .footer {
        padding: 1.5rem 0 1rem;
        margin-top: 1rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
        gap: 1.5rem;
        text-align: center;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .footer-section h4::after {
        width: 1.25rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .footer-bottom {
        padding: 1rem 0.75rem 0;
        margin-top: 1.25rem;
        font-size: 0.8rem;
    }
    
    .footer-icon {
        width: 0.9rem;
        height: 0.9rem;
        margin-right: 0.3rem;
        display: inline-block;
    }
    
    .footer-icon-small {
        width: 0.7rem;
        height: 0.7rem;
        margin-right: 0.25rem;
        display: inline-block;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Hide old TOC */
div.toc {
    display: none;
}

/* Strong elements */
strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Acronym styling */
acronym {
    border-bottom: 1px dotted var(--text-muted);
    cursor: help;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    /* Improve image rendering on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Sección del último artículo - Diseño destacado */
.latest-article {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0 1.5rem 0;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}



.latest-article:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.latest-article:hover::before {
    background: linear-gradient(180deg, var(--primary-color) 0%, #6f42c1 50%, var(--primary-color) 100%);
    width: 5px;
}

.latest-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, #6f42c1 50%, transparent 100%);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.latest-article h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    position: relative;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.latest-article-content {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.latest-article-journal-container {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.latest-article-journal-image {
    width: 140px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.latest-article:hover .latest-article-journal-image {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.latest-article-online-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6f42c1 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.latest-article-online-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.latest-article-online-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.latest-article-online-link:hover::before {
    left: 100%;
}

.latest-article-osf-inline-link {
    color: #6f42c1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.latest-article-osf-inline-link:hover {
    color: #5a32a3;
    border-bottom-color: #6f42c1;
}

.latest-article-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-article-title-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

.latest-article-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 700;
    color: #1a202c;
    flex: 1;
}

.latest-article-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Placeholder minimalista para el último recurso */
.latest-resource-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.latest-resource-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-resource-placeholder:hover::before {
    opacity: 1;
}


.latest-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    position: relative;
    padding: 0.5rem;
    width: 100%;
    gap: 0.25rem;
}

.latest-placeholder-icon {
    width: 4rem;
    height: 4rem;
    stroke-width: 0.75;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.latest-placeholder-osf-icon {
    opacity: 0.9;
    margin-bottom: 0.25rem;
    object-fit: contain;
}

.latest-placeholder-type {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Colores específicos para diferentes tipos de recursos en el último recurso */
.latest-resource-placeholder.resource-app {
    border-color: #dbeafe;
}

.latest-resource-placeholder.resource-app:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.latest-resource-placeholder.resource-app .latest-placeholder-icon {
    color: #3b82f6;
}

.latest-resource-placeholder.resource-app .latest-placeholder-type {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

.latest-resource-placeholder.resource-emoji {
    border-color: #fef3c7;
}

.latest-resource-placeholder.resource-emoji:hover {
    border-color: #f59e0b;
    background: #fefbf3;
}

.latest-resource-placeholder.resource-emoji .latest-placeholder-icon {
    color: #f59e0b;
}

.latest-resource-placeholder.resource-emoji .latest-placeholder-type {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.latest-resource-placeholder.resource-words {
    border-color: #d1fae5;
}

.latest-resource-placeholder.resource-words:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.latest-resource-placeholder.resource-words .latest-placeholder-icon {
    color: #10b981;
}

.latest-resource-placeholder.resource-words .latest-placeholder-type {
    background: #ecfdf5;
    border-color: #d1fae5;
    color: #065f46;
}

.latest-resource-placeholder.resource-idioms {
    border-color: #e9d5ff;
}

.latest-resource-placeholder.resource-idioms:hover {
    border-color: #8b5cf6;
    background: #faf5ff;
}

.latest-resource-placeholder.resource-idioms .latest-placeholder-icon {
    color: #8b5cf6;
}

.latest-resource-placeholder.resource-idioms .latest-placeholder-type {
    background: #f3e8ff;
    border-color: #e9d5ff;
    color: #5b21b6;
}

.latest-resource-placeholder.resource-database {
    border-color: #fee2e2;
}

.latest-resource-placeholder.resource-database:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.latest-resource-placeholder.resource-database .latest-placeholder-icon {
    color: #ef4444;
}

.latest-resource-placeholder.resource-database .latest-placeholder-type {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

.latest-article-title a {
    color: #1a202c;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.latest-article-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #6f42c1 100%);
    transition: width 0.3s ease;
}

.latest-article-title a:hover {
    color: var(--primary-color);
}

.latest-article-title a:hover::after {
    width: 100%;
}

.latest-article-authors {
    margin: 0;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.latest-article-journal {
    margin: 0.5rem 0 0 0;
    color: #6f42c1;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0.5rem 1rem;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}

.latest-article-abstract {
    margin: 0;
    position: relative;
}

.latest-article-abstract-text {
    margin: 0;
    margin-top: 0.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    position: relative;
    padding-left: 0.25rem;
}

.latest-article-read-more {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
}

.latest-article-read-more:hover {
    color: #0056b3;
    text-decoration-color: var(--primary-color);
}

.latest-article-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.latest-article-links .publication-link {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6f42c1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.latest-article-links .publication-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.latest-article-links .publication-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.latest-article-links .publication-link:hover::before {
    left: 100%;
}

/* Responsive para último artículo */
@media (max-width: 768px) {
    .latest-article {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;    
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    .latest-article:before {
        display: none;
    }
    
    .latest-article h3 {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .latest-article-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .latest-article-journal-container {
        width: 100px;
        gap: 0.5rem;
    }
    
    .latest-article-journal-image {
        width: 100px;
        height: 120px;
        margin: 0 auto;
    }
    
    .latest-article-online-link {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .latest-article-journal {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }

    
    .latest-article-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .latest-article-badges {
        gap: 0.4rem;
    }
    
    .latest-resource-placeholder {
        padding: 1rem;
    }
    
    .latest-placeholder-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .latest-placeholder-osf-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .latest-placeholder-type {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .latest-article-title {
        font-size: 1.1rem;
    }
    
    .latest-article-authors {
        font-size: 0.9rem;
    }
    
    .latest-article-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
        justify-content: flex-start;
    }
    
    .latest-article-abstract {
        margin: 0;
    }
    
    .latest-article-abstract-text {
        font-size: 0.9rem;
        margin-bottom: 0;
        padding-left: 0.25rem;
    }
    
    .latest-article-abstract-text::before {
        font-size: 1.5rem;
        top: -0.3rem;
    }
    
    .latest-article-read-more {
        font-size: inherit;
    }
    
    .latest-article-links .publication-link {
        text-align: center;
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        min-height: 32px;
        min-width: 32px;
        flex: 1;
        min-width: 100px;
        max-width: 140px;
    }
}

/* Separadores de año */
.year-separator {
    margin: 1rem 0 1.5rem 0;
    text-align: center;
    position: relative;
}

.year-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e1e5e9 20%, #e1e5e9 80%, transparent 100%);
}

.year-title {
    display: inline-block;
    background: white;
    padding: 0 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.year-group {
    margin-bottom: 2rem;
}

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

/* Estilos para proyectos OSF - Usar clases de publicaciones */
.osf-projects-list {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0;
    padding-bottom: 0;
}

/* Botón específico para descripción completa */
.description-btn {
    background: var(--accent-color);
    color: white;
}

.description-btn:hover {
    background: var(--warning-color);
}

/* Los proyectos OSF ahora usan exactamente las mismas clases que las publicaciones */

/* Indicador de caché */
.cache-indicator {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 3px solid var(--info-color);
}

.cache-indicator small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal para descripción completa */
.description-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.description-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.description-modal-content {
    background: var(--bg-primary);
    margin: 2rem;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.description-modal.show .description-modal-content {
    transform: scale(1);
}

.description-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.description-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.description-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color 0.3s ease;
}

.description-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.description-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.description-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.description-close-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.description-close-btn:hover {
    background: var(--border-color);
}

/* Responsive para proyectos OSF */
@media (max-width: 768px) {
    .osf-project-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .osf-project-icon {
        align-self: flex-start;
    }
    
    .osf-project-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .osf-project-link {
        justify-content: center;
    }
    
    .latest-osf-project {
        padding: 1.5rem;
    }
    
    .latest-osf-project-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .latest-osf-project-icon-container {
        align-self: center;
    }
    
    .latest-osf-project-title {
        font-size: 1.25rem;
    }
    
    .description-modal-content {
        margin: 1rem;
        width: 95%;
    }
    
    .description-modal-header,
    .description-modal-body,
    .description-modal-footer {
        padding: 1rem;
    }
}

/* Estilos para la página de recursos */
.resources-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0;
    padding-bottom: 0;
}

.resources-section h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.resources-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.tool-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tool-card .btn {
    margin-top: 0.5rem;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-success {
    background: var(--success-color);
}

.notification-error {
    background: var(--danger-color);
}

/* Responsive para recursos */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-card {
        padding: 1rem;
    }
    
    .resources-section h2 {
        font-size: 1.5rem;
    }
    
    .publications-list {
        padding-left: 0;
        padding-right: 0;
    }
    
    .resources-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .osf-projects-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .accordion-toggle {
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .accordion-title {
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .accordion-file-icon {
        width: 14px;
        height: 14px;
    }
    
    .accordion-icon {
        width: 16px;
        height: 16px;
    }
    
    .accordion-content .publication-description {
        padding: 0.85rem;
        font-size: 0.85rem;
    }
    
    .resource-file-icon {
        width: 16px;
        height: 16px;
    }
    
    .resource-type-icon {
        width: 12px;
        height: 12px;
    }
    
    .resource-files-count {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    .resource-files-icon {
        width: 10px;
        height: 10px;
    }
    
    .publication-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .publication-badges {
        gap: 0.4rem;
    }
    
    .resource-badge {
        margin-left: 0;
    }
    
    .resource-type-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .badge-icon {
        font-size: 0.75rem;
    }
    
    .badge-label {
        font-size: 0.6rem;
    }
}



/* Estilos para el acordeón de descripción */
.accordion-container {
    margin: 0.75rem 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
}

.accordion-toggle {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-tertiary);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

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

.accordion-title {
    font-weight: 400;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.accordion-file-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.accordion-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-secondary);
}

.accordion-content.active {
    max-height: 400px;
}

.accordion-content .publication-description {
    padding: 1rem;
    margin: 0;
    line-height: 1.5;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
}

/* Estilos para descripción de recursos integrada */
.resource-description-container {
    margin: 0.5rem 0 0.75rem 0;
}

.resource-description-preview {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.resource-description-full {
    margin-top: 0.5rem;
}

.resource-description-text {
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.resource-description-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
    font-family: inherit;
}

.resource-description-toggle:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary-dark);
}

/* Estilos para el sistema de filtrado de recursos */
.resource-filters {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-toggle-all {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle-all:hover {
    background: var(--bg-primary);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.filter-badge.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 6px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

.filter-badge.active {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    position: relative;
}

.filter-badge.active::before {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Colores específicos para badges de filtro según tipo (estado normal) */
.filter-badge[data-type="app"] {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

.filter-badge[data-type="emoji"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.filter-badge[data-type="words"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
    color: #065f46;
}

.filter-badge[data-type="idioms"] {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #8b5cf6;
    color: #5b21b6;
}

.filter-badge[data-type="database"] {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #991b1b;
}

.filter-badge[data-type="psychology"] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #06b6d4;
    color: #0e7490;
}

.filter-badge[data-type="tool"] {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-color: #ec4899;
    color: #be185d;
}

.filter-badge[data-type="experiment"] {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.filter-badge[data-type="ambiguity"] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
    color: #15803d;
}

.filter-badge[data-type="emotion"] {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #f87171;
    color: #dc2626;
}

.filter-badge .badge-icon {
    width: 0.8rem;
    height: 0.8rem;
    stroke-width: 2;
}

.filter-badge .badge-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
}

.filter-badge .badge-count {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    opacity: 0.8;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

/* Colores específicos para filtros activos según tipo */
.filter-badge[data-type="app"].active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

.filter-badge[data-type="emoji"].active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.filter-badge[data-type="words"].active {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
    color: #065f46;
}

.filter-badge[data-type="idioms"].active {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #8b5cf6;
    color: #5b21b6;
}

.filter-badge[data-type="database"].active {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #991b1b;
}

.filter-badge[data-type="psychology"].active {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #06b6d4;
    color: #0e7490;
}

.filter-badge[data-type="tool"].active {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-color: #ec4899;
    color: #be185d;
}

.filter-badge[data-type="experiment"].active {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.filter-badge[data-type="ambiguity"].active {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
    color: #15803d;
}

.filter-badge[data-type="emotion"].active {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #f87171;
    color: #dc2626;
}

/* Responsive para filtros */
@media (max-width: 768px) {
    .resource-filters {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .filter-header h3 {
        font-size: 1rem;
    }
    
    .filter-toggle-all {
        align-self: flex-end;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .filter-badges {
        gap: 0.5rem;
    }
    
    .filter-badge {
        padding: 0.5rem 0.8rem;
        font-size: 0.65rem;
        gap: 0.4rem;
    }
    
    .filter-badge .badge-icon {
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .filter-badge .badge-count {
        font-size: 0.6rem;
    }
    
    .filter-badge.active::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .filter-badges {
        justify-content: center;
    }
    
    .filter-badge {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* Badge de última actualización */
.update-badge-container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.update-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.update-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    width: 0.9rem;
    height: 0.9rem;
}

.update-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.update-date {
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* Responsive para el badge de actualización */
@media (max-width: 768px) {
    .update-badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .update-icon {
        width: 0.8rem;
        height: 0.8rem;
    }
    
    .update-date {
        font-size: 0.8rem;
        padding: 0.05rem 0.3rem;
    }
}

@media (max-width: 480px) {
    .update-badge {
        gap: 0.3rem;
        padding: 0.5rem;
        text-align: center;
    }
    
    .update-label {
        font-size: 0.9rem;
    }
}