/* servicio-detalle.css - ESTILOS PARA PÁGINAS DE SERVICIO */

.service-detail {
    padding-top: 2rem;
}

.service-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-gallery {
    padding: 4rem 0;
}

/* GALERÍA MEJORADA - VIDEOS COMPACTOS */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.work-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.media-container {
    position: relative;
    width: 100%;
    height: 180px; /* COMPACTO */
    overflow: hidden;
}

/* Estilos para videos - COMPACTOS */
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Overlay para videos */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.play-text {
    font-size: 0.8rem;
    text-align: center;
}

/* Estilos para imágenes */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Texto descriptivo */
.work-item p {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--gray-700);
    margin: 0;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

/* MODAL PARA VIDEOS COMPLETOS */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.video-modal video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 0.5rem;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.close-modal:hover {
    color: var(--secondary);
}

/* FORMULARIO DE PERSONALIZACIÓN */
.customization-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.customization-panel {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.upload-section {
    margin-bottom: 2rem;
}

.upload-section h3 {
    margin-bottom: 1rem;
}

#design-upload {
    margin-bottom: 1rem;
}

.image-preview {
    width: 100%;
    min-height: 150px;
    border: 2px dashed var(--gray-300);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    text-align: center;
    padding: 1rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.option-group select, 
.option-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
}

.measurements {
    display: flex;
    gap: 1rem;
}

.measurements input {
    flex: 1;
}

.price-section {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Modal de confirmación */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    margin: 10% auto;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
/* SECCIÓN COTIZACIÓN SIMPLIFICADA */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: bold;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cta-button {
    margin-top: 2.5rem;
}

.btn-cotizar {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cotizar:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .btn-cotizar {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 2.5rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .media-container {
        height: 160px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .measurements {
        flex-direction: column;
    }
    
    .video-modal-content {
        max-width: 95%;
    }
    
    .close-modal {
        top: -40px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .media-container {
        height: 150px;
    }
}