/* === SERVICES MODAL MODULE STYLES === */
/* Debug: Services Modal styles loaded */

/* === MODAL BASE === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1e1e1e;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

/* === MODAL HEADER === */
.modal-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333;
    background: #2a2a2a;
}

.modal-header .service-icon-modal {
    width: 40px;
    height: 40px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.modal-title-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-title-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.2rem 0 0 0;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* === MODAL BODY === */
.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

/* === TABS === */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background: #333;
}

.modal-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.modal-tab.active {
    background: var(--accent-cyan);
    color: #000;
}

.modal-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* === TAB CONTENT === */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* === DESCRIPTION TAB === */
.service-details p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.service-includes h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.service-includes ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.service-includes li {
    color: var(--text-secondary);
    position: relative;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.service-includes li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.service-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: 700;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.delivery-info i {
    color: var(--accent-cyan);
}

/* === GALLERY TAB === */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #333;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Diferentes estilos para imágenes y videos */
.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: none;
}

.gallery-item iframe {
    width: 100%;
    aspect-ratio: 16/9; /* ⬅️ Videos en proporción perfecta */
    border: none;
    display: block;
}

/* === PROCESS TAB === */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-step {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--accent-cyan);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* === MODAL FOOTER === */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    background: #2a2a2a;
}

.btn-whatsapp-modal {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    background: #25d366;
    color: white;
}

.btn-whatsapp-modal:hover {
    transform: translateY(-2px);
    background: #20b358;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === RESPONSIVE MODAL === */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem 1rem;
    }
    
    .modal-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .modal-tab {
        text-align: left;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .service-pricing {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-whatsapp-modal {
        width: 100%;
        justify-content: center;
    }
    
    .service-includes ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img,
    .gallery-item video {
        height: 100px;
    }
}