/* Project Page Styles */
.project-hero {
    background: linear-gradient(135deg, #0a0f1e 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

/* Imagen de fondo para el hero */
.project-hero.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-hero.has-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.85) 0%, rgba(30, 41, 59, 0.75) 50%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

.back-link:hover {
    color: white;
    transform: translateX(-5px);
}

.project-header {
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.project-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-category,
.project-year {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-location {
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    opacity: 0.9;
    font-weight: 400;
}

.project-content {
    padding: 3rem 0;
    background: white;
}

.project-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-description h2 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-description p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.project-details {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.project-details h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.project-details ul {
    list-style: none;
    padding: 0;
}

.project-details li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.project-details li:last-child {
    border-bottom: none;
}

.project-details strong {
    color: var(--primary-color);
}

/* Gallery */
.project-gallery {
    margin-top: 2rem;
}

.project-gallery h2 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA */
.project-cta {
    background: var(--bg-light);
    padding: 3rem 0;
    text-align: center;
}

.project-cta h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.project-cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Botón específico para CTA de proyectos */
.project-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white !important;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 8px 25px rgba(0, 85, 164, 0.25);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.project-cta .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 85, 164, 0.35);
    border-color: var(--primary-color);
}

.project-cta .btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Responsive */
@media (max-width: 768px) {
    .project-hero {
        padding: 3rem 0 2rem;
        min-height: 300px;
    }
    
    .project-title {
        font-size: 1.75rem;
    }
    
    .project-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-content {
        padding: 2rem 0;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .project-cta {
        padding: 2rem 0;
    }
    
    .project-cta h2 {
        font-size: 1.75rem;
    }
}

