/* Estilos para la página de detalles del proyecto */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #004747;
    text-decoration: none;
    font-weight: 500;
    margin: 20px 0;
    transition: opacity 0.3s;
}

.back-button:hover {
    opacity: 0.8;
}

.proyecto-detalle {
    padding: 20px 0 60px;
    font-family: 'Rubik', sans-serif;
}

.proyecto-header {
    margin-bottom: 20px;
}

.proyecto-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Estilos para la galería principal */
.proyecto-galeria-principal {
    margin-bottom: 30px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}

.galeria-imagen-principal {
    grid-row: span 2;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.galeria-imagen-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 71, 71, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.galeria-imagen-principal::after {
    content: '360°';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 71, 71, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.galeria-imagen-principal:hover::before,
.galeria-imagen-principal:hover::after {
    opacity: 1;
}

.galeria-imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.galeria-imagen-principal:hover img {
    transform: scale(1.05);
}

.galeria-imagenes-secundarias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.galeria-imagen-secundaria {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.galeria-imagen-secundaria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 71, 71, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.galeria-imagen-secundaria::after {
    content: '360°';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 71, 71, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.galeria-imagen-secundaria:hover::before,
.galeria-imagen-secundaria:hover::after {
    opacity: 1;
}

.galeria-imagen-secundaria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.galeria-imagen-secundaria:hover img {
    transform: scale(1.05);
}

.galeria-una-imagen {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.galeria-una-imagen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 71, 71, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.galeria-una-imagen::after {
    content: '360°';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 71, 71, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.galeria-una-imagen:hover::before,
.galeria-una-imagen:hover::after {
    opacity: 1;
}

.galeria-una-imagen img {
    width: 100%;
    border-radius: 4px;
    transition: transform 0.3s;
}

.galeria-una-imagen:hover img {
    transform: scale(1.05);
}

/* Estilos para la información del proyecto */
.proyecto-info-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .proyecto-info-container {
        grid-template-columns: 1fr;
    }
}

.proyecto-info-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.info-section-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 50%;
}

.info-icon svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.info-section-content {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.proyecto-descripcion {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.mapa-container {
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.mapa-container iframe {
    display: block;
    width: 100%;
    border-radius: 4px;
}

.proveedores-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proveedor-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #333;
}

/* Estilos para la sección de consulta */
.proyecto-consulta {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 20px;
}

.consulta-title {
    font-size: 1.1rem;
    color: #004747;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-consulta {
    display: inline-block;
    background-color: #004747;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-consulta:hover {
    background-color: #003535;
}

/* Estilos para la galería completa */
.proyecto-galeria-completa {
    margin-top: 40px;
}

.galeria-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.proyecto-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.proyecto-tab {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    border-radius: 4px;
}

.proyecto-tab:hover {
    border-color: #004747;
    color: #004747;
}

.proyecto-tab.active {
    background-color: #004747;
    color: white;
    border-color: #004747;
}

.proyecto-seccion {
    display: none;
}

.proyecto-seccion.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.proyecto-grid-adicional {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.proyecto-imagen {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: none;
    cursor: pointer;
    position: relative;
}

.proyecto-imagen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 71, 71, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.proyecto-imagen::after {
    content: '360°';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 71, 71, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.proyecto-imagen:hover::before,
.proyecto-imagen:hover::after {
    opacity: 1;
}

.proyecto-imagen:hover {
    transform: translateY(-5px);
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
}

/* Estilos para el modal 3D */
.modal-3d {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow: hidden;
}

.modal-3d.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-3d-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: transparent;
}

.modal-3d-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
}

.modal-3d-image-container {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
}

.modal-3d-image-wrapper {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.modal-3d-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

.modal-3d-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1001;
}

.modal-3d-rotate-left,
.modal-3d-rotate-right {
    background-color: rgba(0, 71, 71, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
}

.modal-3d-rotate-left:hover,
.modal-3d-rotate-right:hover {
    background-color: rgba(0, 71, 71, 1);
}

.modal-3d-rotate-left svg,
.modal-3d-rotate-right svg {
    width: 30px;
    height: 30px;
}

/* Animación de rotación 3D */
@keyframes rotate360 {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.rotating {
    animation: rotate360 10s linear infinite;
}

/* Estilos para mensajes de error y carga */
.loading {
    text-align: center;
    padding: 50px 0;
    font-size: 1.2rem;
    color: #666;
}

.error-container {
    text-align: center;
    padding: 50px 0;
}

.error-content {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-icon {
    margin-bottom: 20px;
}

.error-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.error-message {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

.btn-volver {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #004747;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-volver:hover {
    background-color: #003535;
} 