/* Lorenzon Valorizômetro - Estilos Frontend */

/* Importa Roboto e Oswald do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Oswald:wght@400;500;600;700&display=swap');

/* Aplica em todo o plugin */
.lv-container,
.lv-container * {
    font-family: 'Roboto', sans-serif;
}

/* Aplica Oswald apenas nos títulos principais */
.lv-titulo,
.lv-condicoes-titulo,
.lv-parcelamento-subtitulo {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* ===== CONFIGURAÇÕES GERAIS ===== */

/* Container Principal */
.lv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Títulos */
.lv-titulo {
    font-size: 40px;
    font-weight: 400;
    color: #111111;
    margin-bottom: 30px;
    text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Sub-título Principal */
.lv-subtitulo {
	font-family: 'Oswald', sans-serif;
    text-align: center;
    font-size: 24px;
    color: #111;
    margin: -20px 0 40px 0;
    line-height: 1.5;
	text-transform: uppercase;
}

/* Instrução */
.lv-instrucao {
    text-align: center;
    font-size: 18px;
    color: #111;
    margin: 0 0 -10px 0;
    line-height: 1.5;
}

/* ===== TABELA DE LOTES DESKTOP ===== */

.lv-tabela-wrapper {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
}

.lv-tabela-mobile-compacta {
    display: none;
}

.lv-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.lv-tabela thead {
    background: #DB2536;
    color: #ffffff;
}

.lv-tabela th {
    padding: 7px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.lv-tabela td {
    padding: 7px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
}

.lv-tabela tbody tr {
    transition: background-color 0.2s;
}

.lv-tabela tbody tr:hover {
    background-color: #f8f9fa;
}

.lv-tabela tbody tr.lv-lote-indisponivel {
    opacity: 0.6;
}

/* Status Badges */
.lv-status-badge {
    display: inline-block;
    padding: 1px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 90px;
    text-align: center;
}

.lv-status-disponivel {
    background: #d4edda;
    color: #155724;
}

.lv-status-vendido {
    background: #f8d7da;
    color: #721c24;
}

.lv-status-reservado {
    background: #fff3cd;
    color: #856404;
}

/* Botões */
.lv-btn-calcular {
    background: #ffffff;
    color: #DB2536;
    border: 1px solid #DB2536;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 13px;
    min-width: 180px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lv-btn-calcular:hover {
    background: #DB2536;
	color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.15);
}

.lv-btn-indisponivel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #e0e0e0;
    color: #333;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    min-width: 180px;
    height: 35px;
}

/* ===== TABELA COMPACTA MOBILE ===== */

.lv-tabela-compacta {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lv-tabela-compacta thead {
    background: #DB2536;
    color: #ffffff;
}

.lv-tabela-compacta th {
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.lv-tabela-compacta td {
    padding: 12px 8px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.lv-tabela-compacta tbody tr:last-child td {
    border-bottom: 1px solid #e0e0e0;

}

.lv-tabela-compacta tbody tr:hover {
    background-color: #f8f9fa;
}

.lv-tabela-compacta tbody tr.lv-lote-indisponivel {
    opacity: 0.6;
}

/* Coluna Código */
.lv-compacta-codigo {
    width: 15%;
    min-width: 60px;
    text-align: center;
}

.lv-compacta-codigo strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

/* Coluna Detalhes */
.lv-compacta-detalhes {
    width: 55%;
    padding-left: 12px !important;
}

.lv-detalhe-item {
    margin: 2px 0;
    color: #555;
    line-height: 1.3;
    font-size: 14px;
	text-align: center;
}

.lv-detalhe-item:first-child {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
	text-align: center;
}

/* Coluna Ação */
.lv-compacta-acao {
    width: 30%;
    text-align: center;
}

.lv-btn-compacto {
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    min-width: auto;
    width: 100%;
    max-width: 85px;
    height: auto;
    border-radius: 6px;
    white-space: nowrap;
}

/* ===== CALCULADORA ===== */

.lv-calculadora-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
    scroll-margin-top: 100px;
}

.lv-calculadora-info {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lv-calculadora-resultados {
    animation: fadeIn 0.5s;
}

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

/* Investimento */
.lv-investimento-info {
    padding: 20px;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.lv-investimento-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
}

.lv-investimento-valor {
    font-size: 22px;
    font-weight: 700;
    color: #2c5f2d;
    display: block;
}

/* Cards de Resultados */
.lv-resultado-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lv-resultado-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    border: 1px solid #e0e0e0;
}

.lv-resultado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ícone de valorização no topo */
.lv-resultado-card::before {
    content: "";
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%232c5f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lv-resultado-card h4 {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lv-valor-projetado {
    font-size: 32px;
    font-weight: 700;
    color: #2c5f2d;
    margin-bottom: 15px;
}

/* Divisor */
.lv-resultado-card hr {
    border: none;
    border-top: 1px solid #777;
    margin: 15px 0 20px 0;
}

.lv-lucro {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    margin-top: 0;
    padding-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lv-lucro-positivo {
    color: #28a745;
    font-weight: 700;
    font-size: 20px;
    display: block;
    margin-top: 5px;
}

.lv-resultado-destaque {
    background: linear-gradient(135deg, #2c5f2d 0%, #1e4620 100%);
    color: #fff;
}

.lv-resultado-destaque::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E");
}

.lv-resultado-destaque h4 {
    color: #fff;
    text-transform: uppercase;
}

.lv-resultado-destaque .lv-valor-projetado {
    color: #fff;
    font-size: 36px;
}

.lv-resultado-destaque hr {
    border-top: 1px solid rgba(255,255,255,0.8);
}

.lv-resultado-destaque .lv-lucro {
    color: rgba(255,255,255,0.8);
}

.lv-resultado-destaque .lv-lucro-positivo {
    color: #90EE90;
    font-size: 22px;
}

/* ===== CONDIÇÕES DE PAGAMENTO ===== */

.lv-condicoes-pagamento {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.lv-condicoes-titulo {
    font-size: 40px;
    font-weight: 400;
    color: #111111;
    margin-bottom: 30px;
    text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Info do Lote */
.lv-info-lote {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.lv-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.lv-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lv-info-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lv-info-valor {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 700;
}

/* Valor à Vista */
.lv-valor-vista-box {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Container flexbox para valor e botão */
.lv-valor-vista-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.lv-valor-vista-info {
    flex: 1;
}

.lv-valor-vista-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lv-valor-vista-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.lv-badge-desconto {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lv-valor-vista-valor {
    font-size: 22px;
    font-weight: 700;
    color: #2c5f2d;
    display: block;
}

/* Mobile: empilhar */
@media (max-width: 768px) {
    .lv-valor-vista-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
	.lv-valor-vista-header {
        justify-content: space-between;
    }
}


/* Parcelamento */
.lv-parcelamento-wrapper {
    background: #fff;
    border-radius: 0;
    padding: 0;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.lv-parcelamento-subtitulo {
    font-size: 40px;
    font-weight: 400;
    color: #111111;
    margin-bottom: 30px;
    text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Entrada - Novo formato (igual valor à vista) */
.lv-entrada-box-novo {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.lv-entrada-header {
    margin-bottom: 10px;
}

.lv-entrada-label-novo {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.lv-entrada-valor-novo {
    font-size: 22px;
    font-weight: 700;
    color: #856404;
    display: block;
}

/* Grid de Parcelas - Mesma largura */
.lv-parcelas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lv-parcela-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.lv-parcela-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lv-parcela-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.lv-parcela-titulo-card {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.lv-badge-sem-juros {
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lv-badge-juros {
    background: #856404;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.lv-parcela-valor {
    font-size: 32px;
    font-weight: 700;
    color: #2c5f2d;
    margin: 15px 0;
}

.lv-parcela-desc {
    font-size: 14px;
    color: #111;
}

/* Botão Saber Mais (centralizado, 100% largura) */
.lv-btn-saber-mais-wrapper {
    margin-top: 30px;
    text-align: center;
}

.lv-btn-saber-mais {
    width: 100%;
    max-width: 100%;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {
    /* Esconde tabela desktop */
    .lv-tabela-desktop {
        display: none;
    }

    /* Mostra tabela compacta mobile */
	.lv-tabela-mobile-compacta {
    	display: block;
    	margin-bottom: 50px;
	}
	
	.lv-instrucao {
    	text-align: center;
    	font-size: 16px;
    	color: #111;
    	margin-bottom: 15px;
    	line-height: 1.5;
	}
	
	.lv-subtitulo {
		margin-top: 10px;
    	font-size: 18px;
	}
	
	.lv-condicoes-titulo {
    	font-size: 26px !important;
	}
	
	.lv-parcelamento-subtitulo {
		font-size: 26px !important;
	}
	
    /* Wrapper da tabela */
    .lv-tabela-wrapper {
        overflow: visible;
        padding: 20px 15px;
        padding-bottom: 20px;
    }

    /* Ajustes na calculadora */
    .lv-titulo {
        font-size: 26px !important;
    }

    .lv-resultado-cards {
        grid-template-columns: 1fr;
    }

    .lv-valor-projetado {
        font-size: 28px;
    }

    .lv-resultado-destaque .lv-valor-projetado {
        font-size: 32px;
    }

    .lv-calculadora-wrapper {
        padding: 20px 15px;
    }

    /* Condições de Pagamento Mobile */
    .lv-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lv-parcelas-grid {
        grid-template-columns: 1fr;
    }
	
	/* Centraliza todo o bloco de investimento no mobile */
.lv-investimento-info {
    text-align: center !important;
}

.lv-investimento-label {
    text-align: center !important;
}

.lv-investimento-valor {
    text-align: center !important;
}

	.lv-parcela-titulo-card {
    	font-size: 14px !important;
		letter-spacing: 0.5px; /* ← NOVO */
	}
	
	/* Remove espaçamentos extras no mobile */
.lv-tabela-mobile-compacta {
    margin-bottom: 30px !important;
}

.lv-calculadora-wrapper {
    margin-bottom: 0 !important;
}

.lv-condicoes-pagamento {
    margin-bottom: 0 !important;
    padding-bottom: 30px !important;
}

/* Garante que não há altura fixa */
.lv-container,
.lv-container > * {
    min-height: auto !important;
    height: auto !important;
}

    /* FIX: Mais espaço lateral no mobile */
    .lv-tabela-wrapper,
    .lv-calculadora-wrapper {
        box-shadow: none;
        border: 1px solid #e0e0e0;
        padding: 15px 10px;
    }
    
    .lv-container {
        padding: 10px 5px !important;
    }
	
	.lv-btn-saber-mais-wrapper {
    	margin-bottom: -20px;
		margin-top: 20px;
	}
}

@media (max-width: 480px) {
    .lv-container {
        padding: 10px;
    }

    .lv-titulo {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .lv-parcela-valor {
        font-size: 28px;
    }

    .lv-condicoes-titulo {
        font-size: 20px;
    }
}

/* Container do Investimento com Botão */
.lv-investimento-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
}

.lv-investimento-valor-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.lv-investimento-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lv-investimento-valor {
    font-size: 25px;
    font-weight: 700;
    color: #2c5f2d;
}

/* Botão no container */
.lv-investimento-info .lv-btn-lead {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Responsivo */
@media (max-width: 768px) {
    .lv-investimento-info {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px;
    }
    
    .lv-investimento-valor-wrapper {
        align-items: center;
    }
    
    .lv-investimento-info .lv-btn-lead {
        width: 100%;
    }
}