/* ===================================
   PAPERS - ESTILOS ESPECÍFICOS
   =================================== */

/* Hero Interno */
.hero-interno {
    position: relative;
    background-image: url('/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 8rem 2rem 4rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-interno::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 64, 175, 0.85) 0%,
        rgba(30, 64, 175, 0.70) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Sección de Filtros */
.filters-section {
    background: linear-gradient(
        to bottom,
        rgba(30, 64, 175, 0.05) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    padding: 3rem 2rem 2rem;
}

.filters-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(30, 64, 175, 0.2);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 2px solid rgba(30, 64, 175, 0.3);
    border-radius: 20px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Sección de Papers */
.papers-section {
    padding: 3rem 2rem 5rem;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Paper Cards */
.paper-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
    border-color: rgba(30, 64, 175, 0.2);
}

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

.paper-category {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paper-category.clinica {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.paper-category.forense {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.paper-category.criminologia {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.paper-category.desarrollo {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.paper-category.neurociencia {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
}

.paper-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.paper-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.paper-abstract {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 64, 175, 0.1);
}

.paper-author {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.paper-pages {
    font-size: 0.85rem;
    color: var(--text-light);
}

.paper-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-read,
.btn-download {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-read:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-download {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-download:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Call to Action */
.cta-section {
    background: linear-gradient(
        135deg,
        rgba(30, 64, 175, 0.05) 0%,
        rgba(59, 130, 246, 0.08) 100%
    );
    padding: 4rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .filters-section {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .filters-bar {
        gap: 1.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .category-filters {
        gap: 0.75rem;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .papers-section {
        padding: 2rem 1.5rem 3rem;
    }
    
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .paper-card {
        padding: 1.5rem;
    }
    
    .paper-actions {
        flex-direction: column;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
}