/* Estilos para la página de Informes y Publicaciones */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(26, 75, 132, 0.9) 0%, 
        rgba(138, 43, 226, 0.8) 25%, 
        rgba(70, 130, 180, 0.7) 50%, 
        rgba(135, 206, 235, 0.6) 75%, 
        rgba(173, 216, 230, 0.5) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.2) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive para hero-section */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Main Content */
.main-content {
    min-height: 80vh;
    padding: 0;
}

/* Tab Navigation */
.tab-navigation {
    background: #f8f9fa;
    padding: 0;
    border-bottom: 2px solid #dee2e6;
}

.tab-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-button {
    background: #6c757d;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    flex: 1;
}

.tab-button.active {
    background: #20c997;
    color: #000;
    border-bottom-color: #20c997;
}

.tab-button:hover:not(.active) {
    opacity: 0.8;
}

/* Tab Content */
.tab-content {
    background: linear-gradient(90deg, #e1bee7, #bbdefb);
    min-height: 80vh;
    padding: 2rem 0;
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #e1bee7, #bbdefb) 1;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

.content-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-description {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Scroll Horizontal */
.content-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin: 0 2rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

.content-scroll::-webkit-scrollbar {
    height: 8px;
}

.content-scroll::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.content-scroll::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 4px;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

/* Content Rows for Publications - Legacy */
.content-row {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.first-row {
    grid-template-columns: 1fr 1fr;
}

.second-row {
    grid-template-columns: 1fr 1fr 1fr;
}

.third-row {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 3rem;
}

/* Content Grid for Videos - Legacy */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    flex: 0 0 300px;
    min-width: 300px;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Video Cards */
.video-card .card-image {
    padding: 0;
    background: #000;
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Document Placeholder */
.document-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.document-icon {
    font-size: 3rem;
    color: #6c757d;
    z-index: 2;
    position: relative;
}

.card-content {
    padding: 1.5rem;
    background: #fff;
    color: #495057;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    line-height: 1.3;
}

.card-content p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 1px solid #007bff;
}

.card-link:hover {
    background: #0056b3;
    color: white;
    transform: translateX(2px);
    border-color: #0056b3;
}

.card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .content-header h2 {
        font-size: 2rem;
    }
    
    .content-description {
        font-size: 1.1rem;
    }
    
    .content-scroll {
        margin: 0 1rem;
        gap: 1rem;
    }
    
    .content-card {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .first-row,
    .second-row {
        grid-template-columns: 1fr;
    }
    
    .third-row {
        max-width: 100%;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 1.2rem;
        min-height: 100px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tab-container {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        border-radius: 0;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .content-header h2 {
        font-size: 1.8rem;
    }
    
    .content-scroll {
        margin: 0 0.5rem;
        gap: 0.8rem;
    }
    
    .content-card {
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-image {
        height: 150px;
    }
    
    .document-icon {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 1rem;
        min-height: 80px;
    }
}