/* Estilos para la página de detalle de proyecto */
.project-detail {
    background-color: black;
    color: white;
}

.project-hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 6rem 2rem;
}

.info-container {
    max-width: 1400px;
    margin: 0 auto;
}

.info-header {
    margin-bottom: 4rem;
}

.info-header h1 {
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.project-year {
    font-size: 1.5rem;
    color: #666;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-block {
    margin-bottom: 3rem;
}

.info-block h3 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #666;
}

.info-block p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.services-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #666;
}

.details-list {
    list-style: none;
    padding: 0;
}

.details-list li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.details-list li span {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.project-gallery {
    padding: 4rem 2rem;
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.gallery-item.full {
    grid-column: 1 / -1;
    height: 600px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.next-project {
    padding: 6rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.next-project-link {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    text-decoration: none;
    color: white;
}

.next-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.next-title {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.next-year {
    font-size: 1.2rem;
    color: #666;
}

.next-image {
    margin-top: 2rem;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.next-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.next-project-link:hover .next-image img {
    transform: scale(1.05);
}

/* Animaciones */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor personalizado */
.custom-cursor {
    width: 70px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    position: fixed;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Mensaje de error */
.error-message {
    text-align: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.error-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message p {
    margin-bottom: 1rem;
    color: #999;
}

/* Indicador de carga */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    font-size: 1.2rem;
    color: white;
    text-align: center;
    width: 100%;
}

@media (max-width: 1200px) {
    .info-header h1 {
        font-size: 3rem;
    }
    
    .next-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item, .gallery-item.full {
        height: 300px;
    }
    
    .info-header h1 {
        font-size: 2.5rem;
    }
    
    .next-title {
        font-size: 2rem;
    }
    
    .project-info, .project-gallery, .next-project {
        padding: 3rem 1.5rem;
    }
}