/* ===== MODAIS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-opening .modal-content {
    transform: scale(0.8);
    opacity: 0;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #4a90e2, #00d4ff, #4a90e2, #2c5aa0);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.modal-header {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2, #00d4ff);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: headerShine 3s ease-in-out infinite;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-header h2 i {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.close {
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
    color: #ff6b6b;
}

.modal-body {
    padding: 35px;
    max-height: 70vh;
    overflow-y: auto;
    color: #333;
    line-height: 1.7;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #2c5aa0, #4a90e2);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #1e3a8a, #2563eb);
}

.modal-image {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.modal-image:hover img {
    transform: scale(1.05);
}

.modal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-image:hover::after {
    opacity: 1;
}

.modal-description h3 {
    color: #2c5aa0;
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.modal-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.modal-description p {
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.modal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 35px 0;
}

.info-item {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
    border-color: rgba(44, 90, 160, 0.3);
}

.info-item i {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 15px;
    display: block;
}

.info-item h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-item p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.modal-highlights {
    margin-top: 35px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    border-radius: 15px;
    border-left: 4px solid #2c5aa0;
}

.modal-highlights h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-highlights li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-highlights li i {
    color: #28a745;
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.modal-highlights li:last-child {
    margin-bottom: 0;
}

/* Animações */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes headerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-info {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .info-item {
        padding: 20px 15px;
    }
    
    .info-item i {
        font-size: 2rem;
    }
    
    .modal-highlights {
        padding: 20px;
    }
    
    .modal-highlights li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-info {
        grid-template-columns: 1fr;
    }
    
    .close {
        font-size: 1.8rem;
    }
}