/* ==========================================
   VITRINE DE MÓDULOS
   ========================================== */

/* CONTAINER PRINCIPAL DOS MÓDULOS */
.modulos-container-principal {
    background: linear-gradient(135deg, #0a0a0a, #050505);
    border: 2px solid #00ffcc;
    border-radius: 24px;
    padding: 25px;
    margin: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
}

.modulos-titulo {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: #00ffcc;
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 2px solid #00ffcc;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.modulos-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 20px;
}

.modulos-header {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 6px;
    color: #00ffcc;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

/* GRID DOS MÓDULOS */
.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 4 colunas em telas grandes */
@media (min-width: 1400px) {
    .modulos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 colunas em telas médias */
@media (min-width: 1000px) and (max-width: 1399px) {
    .modulos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 colunas em tablets */
@media (min-width: 768px) and (max-width: 999px) {
    .modulos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 coluna em celular */
@media (max-width: 767px) {
    .modulos-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD DO MÓDULO */
.modulo-card-vitrine {
    background: linear-gradient(135deg, #0f0f0f, #080808);
    border: 1px solid #00ffcc;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modulo-card-vitrine:hover {
    transform: translateY(-5px);
    border-color: #00ffcc;
    box-shadow: 0 10px 25px rgba(0, 255, 204, 0.2);
}

/* STATUS */
.modulo-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.status-disponivel {
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
    border: 1px solid #00ffcc;
}

.status-concluido {
    background: rgba(0, 200, 100, 0.3);
    color: #00cc66;
    border: 1px solid #00cc66;
}

.status-andamento {
    background: rgba(0, 255, 204, 0.3);
    color: #00ffcc;
    border: 1px solid #00ffcc;
    animation: pulseAndamento 1.5s infinite;
}

.status-recomendado {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    border: none;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

@keyframes pulseAndamento {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; box-shadow: 0 0 8px #00ffcc; }
}

/* CAPA */
.modulo-capa {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #111, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.modulo-capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modulo-card-vitrine:hover .modulo-capa img {
    transform: scale(1.05);
}

.capa-placeholder {
    font-size: 3rem;
    color: #00ffcc;
    opacity: 0.5;
}

/* CONTEÚDO */
.modulo-conteudo {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modulo-codigo {
    font-size: 0.7rem;
    color: #00ffcc;
    opacity: 0.7;
    margin-bottom: 8px;
    font-family: monospace;
}

.modulo-titulo {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.modulo-info-rapida {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    color: #888;
    padding: 8px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-item i {
    font-size: 0.7rem;
    color: #00ffcc;
}

/* PREÇOS */
.modulo-precos {
    margin-bottom: 12px;
    margin-top: auto;
}

.preco-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 6px 0;
}

.preco-item.vitalicio {
    color: #00ffcc;
    font-weight: 600;
}

.preco-item.aluguel {
    color: #ffaa00;
}

.preco-label i {
    margin-right: 6px;
    width: 20px;
}

.preco-valor {
    font-weight: 700;
}

/* BOTÃO */
.modulo-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-top: 8px;
}

.modulo-btn:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 12px #00ffcc;
}

.modulo-btn.concluido {
    border-color: #00cc66;
    color: #00cc66;
}

.modulo-btn.concluido:hover {
    background: #00cc66;
    color: #000;
}

/* ==========================================
   HEADER DA VITRINE COM BOTÃO DE PREÇOS
   ========================================== */
.modulos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-precos {
    background: transparent;
    border: 1px solid #ffaa00;
    color: #ffaa00;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.btn-precos:hover {
    background: #ffaa00;
    color: #000;
    box-shadow: 0 0 10px #ffaa00;
}

/* ==========================================
   PAINEL DE PREÇOS
   ========================================== */
.painel-precos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.painel-precos-content {
    background: linear-gradient(135deg, #0a0a0a, #050505);
    border: 2px solid #ffaa00;
    border-radius: 24px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.3);
    animation: fadeInUp 0.3s ease;
}

.painel-precos-content h3 {
    color: #ffaa00;
    font-size: 1.3rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.opcoes-precos {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.opcao-preco {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.opcao-preco:hover {
    border-color: #ffaa00;
    background: #111;
    transform: translateX(5px);
}

.opcao-info {
    text-align: left;
}

.dias {
    font-weight: bold;
    color: #ffaa00;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.descricao {
    font-size: 0.7rem;
    color: #888;
}

.opcao-valor {
    text-align: right;
}

.preco {
    color: #00ffcc;
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
}

.forma {
    color: #00ff88;
    font-size: 0.7rem;
}

.btn-fechar-painel {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-fechar-painel:hover {
    background: #ff4d4d;
    color: #000;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}