/* Estilos para página de categorías */

.nav-logo a {
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Hero de Categorías */
.categories-hero {
    background: var(--gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Filtros */
.filters-section {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: var(--white);
    color: var(--dark-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Sección de Proyectos */
.projects-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.category-section {
    margin-bottom: 4rem;
}

.category-header {
    margin-bottom: 2rem;
}

.category-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.category-title i {
    color: var(--secondary-gold);
}

.category-desc {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.category-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-stats .stat {
    background: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Grid de Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.project-card.featured {
    border: 2px solid var(--secondary-gold);
}

.project-image {
    height: 120px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    font-size: 2.5rem;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-gold);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-content {
    padding: 2rem;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.project-location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.project-location::before {
    content: '\f3c5';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--secondary-gold);
}

/* Métricas del Proyecto */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    text-align: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-weight: 700;
    font-size: 0.9rem;
}

.metric-value.success {
    color: var(--success);
}

.metric-value.warning {
    color: var(--warning);
}

.metric-value.info {
    color: #17a2b8;
}

/* Barra de Progreso */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Acciones del Proyecto */
.project-actions {
    display: flex;
    gap: 1rem;
}

.project-actions .btn-primary,
.project-actions .btn-outline {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: var(--primary-green);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary-large {
    background: var(--secondary-gold);
    color: var(--white);
}

.cta-actions .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-actions .btn-outline:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-metrics {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .category-stats {
        gap: 1rem;
    }
    
    .category-stats .stat {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .categories-hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: slideInUp 0.6s ease-out;
}

.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

.project-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Estados de filtro */
.project-card.hidden {
    display: none;
}

.project-card.filtering {
    opacity: 0.5;
    transform: scale(0.95);
}
