/**
 * =======================
 * GRAFITECK - PORTFOLIO MODAL CSS
 * =======================
 * Estilos para el modal del portafolio con slider de imágenes
 * Versión: 2.0 - Estilo original mantenido
 * Fecha: Julio 2025
 */

/* Modal Base */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.portfolio-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 1600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: row;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Modal Body */
.modal-body {
    display: grid;
    width: 100%;
    min-height: 500px;
}

/* Sección de Imágenes - Mantener ancho original */
.modal-image-section {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.modal-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal-image-track {
    display: flex;
    width: 400%; /* 4 imágenes */
    height: 100%;
    transition: transform 0.5s ease;
}

.modal-image-slide {
    width: 25%; /* 100% / 4 imágenes */
    height: 100%;
    flex-shrink: 0;
}

.modal-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* QUITAR las flechas laterales del slider */
.modal-image-prev,
.modal-image-next {
    display: none !important;
}

/* Indicadores del Slider - Solo puntos */
.modal-image-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.modal-image-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-image-indicator.active {
    background: white;
    transform: scale(1.3);
}

/* Sección de Información - Mantener estilo original */
.modal-info-section {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: white;
}

/* Categoría - Mantener color original */
.modal-category {
    background: var(--yellow-dark);
    color: var(--darker-blue);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    width: fit-content;
}

.modal-title {
   font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--darker-blue);
    margin: 0;
    line-height: 1.2;
}

.modal-description {
    color: var(--dark-blue);
    line-height: 1.4;
    font-size: 0.95rem;
    margin: 0;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-detail-item {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

.modal-detail-item strong {
    color: var(--darker-blue);
    min-width: 70px;
    font-weight: 600;
}

.modal-detail-item span {
    color: var(--dark-blue);
}

.modal-actions {
    margin-top: auto;
}

.modal-cta {
    background: var(--yellow-dark);
    color: var(--darker-blue);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* Navegación entre Proyectos - Mantener solo estas */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--yellow-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Design - Móvil */
@media (max-width: 768px) {
    .portfolio-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        max-height: 95vh;
        width: 95%;
        flex-direction: column;
        border-radius: 15px;
        overflow-y: auto;
    }
    
    .modal-body {
        flex-direction: column;
        min-height: auto;
    }
    
    /* Sección de imágenes en móvil */
    .modal-image-section {
        height: 400px;
        min-height: 450px;
        flex: none;
    }
    
    .modal-image-slider {
        height: 100%;
    }
    
    .modal-image-slide img {
        object-fit: cover;
        object-position: center;
    }
    
    /* Información en móvil */
    .modal-info-section {
        padding: 20px;
        gap: 15px;
        flex: none;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-description {
        font-size: 0.9rem;
    }
    
    .modal-cta {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Ocultar navegación entre proyectos en móvil */
    .modal-prev,
    .modal-next {
        display: none;
    }
    
    /* Ajustar indicadores en móvil */
    .modal-image-indicators {
        bottom: 10px;
    }
    
    .modal-image-indicator {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .modal-info-section {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-description {
        font-size: 0.85rem;
    }
    
    .modal-detail-item {
        font-size: 0.85rem;
    }
    
    .modal-cta {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

