/* css/project-styles.css */

/* Estilos de la cabecera y pie de página ya están en style.css, no los repetimos */

main {
    padding-top: var(--header-height); /* Asegura que el contenido principal empiece debajo del header */
}

.project-detail-section {
    padding: 80px 0;
    text-align: left;
    background-color: var(--background-color);
}

.project-detail-section .container {
    max-width: 960px; /* Contenedor más estrecho para el detalle del proyecto */
    margin: 0 auto;
    padding: 20px;
}

.project-detail-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: var(--dark-background);
    margin-bottom: 20px;
    text-align: center;
}

.project-detail-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.project-detail-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    color: var(--dark-background);
    margin-top: 30px;
    margin-bottom: 10px;
}

.project-detail-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05em;
    color: var(--text-color);
}

.project-detail-section ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.project-detail-section ul li {
    margin-bottom: 8px;
}

.project-detail-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-detail-section .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-detail-section .image-gallery img {
    margin-bottom: 0; /* Elimina el margen inferior extra de las imágenes de galería */
}

.project-detail-section .full-width-image {
    width: 100%;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-detail-section .video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-detail-section .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.project-nav-links {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project-nav-links a {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 700;
}

.project-nav-links a:hover {
    background-color: #5a6268;
}

.project-nav-links .prev-project, .project-nav-links .next-project {
    flex-grow: 1;
    text-align: center;
}

.project-nav-links .back-to-portfolio {
    flex-grow: 2; /* Para que el botón central sea más ancho */
}


/* Media Queries para páginas de detalle */
@media (max-width: 768px) {
    .project-detail-section h1 {
        font-size: 2.2em;
    }

    .project-detail-section h2 {
        font-size: 1.6em;
    }

    .project-detail-section p {
        font-size: 1em;
    }

    .project-detail-section .image-gallery {
        grid-template-columns: 1fr;
    }

    .project-nav-links {
        flex-direction: column;
        align-items: center;
    }

    .project-nav-links a {
        width: 80%; /* Asegura que los botones ocupen un buen ancho en móvil */
        margin-bottom: 10px;
    }
}