
:root {
    --tiempos-primary: #2C3E50;
    --tiempos-secondary: #E74C3C;
    --tiempos-accent: #3498DB;
    --tiempos-light: #ECF0F1;
    --tiempos-dark: #2C3E50;
    --tiempos-success: #27AE60;
    --tiempos-warning: #F39C12;
    --tiempos-gradient: linear-gradient(135deg, #2C3E50 0%, #4A6491 100%);
}

/* Hero Section específico para tiempos */
.tiempos-hero {
    background: url('../images/uy.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.tiempos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.tiempos-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.tiempos-hero h1 {
    font-size: 4.5rem;
    font-family: 'Alfa Slab One';
    margin-bottom: 1rem;
    text-shadow: 3px 3px 2px rgba(0, 167, 189, 0.5);
    letter-spacing: 6px;
    background: linear-gradient(to right, #00e1ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tiempos-hero h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.tiempos-hero .hero-date {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

.stat-item:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-item:nth-child(3) {
    animation-delay: 1s;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--tiempos-accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 2rem;
    color: var(--tiempos-accent);
    transition: all 0.3s ease;
}

.scroll-down:hover i {
    color: white;
    transform: scale(1.2);
}

/* Sección Versiones */
.versiones-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.versiones-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--tiempos-gradient);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--tiempos-dark);
    font-family: 'Alfa Slab One', serif;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--tiempos-secondary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filtros */
.filtros-container {
    margin-bottom: 3rem;
    text-align: center;
}

.filtro-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filtro-btn {
    padding: 12px 24px;
    border: 2px solid var(--tiempos-accent);
    background: transparent;
    color: var(--tiempos-accent);
    border-radius: 50px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filtro-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.filtro-btn.active {
    background: var(--tiempos-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Grid de Versiones */
.versiones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.version-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.version-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.version-card:nth-child(2) { animation-delay: 0.1s; }
.version-card:nth-child(3) { animation-delay: 0.2s; }
.version-card:nth-child(4) { animation-delay: 0.3s; }
.version-card:nth-child(5) { animation-delay: 0.4s; }
.version-card:nth-child(6) { animation-delay: 0.5s; }
.version-card:nth-child(7) { animation-delay: 0.6s; }
.version-card:nth-child(8) { animation-delay: 0.7s; }

.version-header {
    padding: 20px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-badge {
    padding: 6px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.version-year {
    font-size: 2rem;
    color: var(--tiempos-dark);
    font-family: 'Alfa Slab One', serif;
    margin: 0;
}

.version-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.version-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.version-card:hover .version-img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.version-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.image-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.version-info {
    padding: 20px;
}

.version-info h4 {
    color: var(--tiempos-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: 'Barlow Condensed', sans-serif;
    min-height: 60px;
}

.version-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.version-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.version-stat i {
    color: var(--tiempos-accent);
}

.version-action {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-download {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-view {
    background: var(--tiempos-accent);
    color: white;
}

.btn-view:hover {
    background: #2980B9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-download {
    background: var(--tiempos-success);
    color: white;
}

.btn-download:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Modal PDF */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
}

.pdf-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-modal-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

.pdf-modal-header {
    background: var(--tiempos-gradient);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-family: 'Barlow Condensed', sans-serif;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.pdf-modal-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#pdfViewer {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.pdf-control-btn {
    padding: 10px 20px;
    background: var(--tiempos-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pdf-control-btn:hover:not(:disabled) {
    background: #2980B9;
    transform: translateY(-2px);
}

.pdf-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tiempos-dark);
    min-width: 150px;
    text-align: center;
}

.pdf-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.download-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--tiempos-success);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.download-pdf-btn:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Galería */
.galeria-tiempos {
    padding: 80px 0;
    background: white;
    position: relative;
}

.galeria-tiempos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--tiempos-gradient);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.galeria-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.galeria-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44, 62, 80, 0.9));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    transform: translateY(0);
}

.galeria-overlay span {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .versiones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tiempos-hero h1 {
        font-size: 3rem;
    }
    
    .tiempos-hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .versiones-grid {
        grid-template-columns: 1fr;
    }
    
    .filtro-tags {
        padding: 15px;
    }
    
    .filtro-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tiempos-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .version-action {
        flex-direction: column;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}