/* CALCULADORA DE LEADS - ESTILOS */

.form-container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-button {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: white;
    border-radius: 16px;
    margin-bottom: 32px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.results-section {
    animation: fadeIn 0.5s ease-in-out;
}

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

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.kpi-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.kpi-content h3 {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.kpi-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin: 4px 0 0 0;
}

.kpi-card.roi-excellent { border-left: 4px solid #10b981; }
.kpi-card.roi-good { border-left: 4px solid #3b82f6; }
.kpi-card.roi-average { border-left: 4px solid #f59e0b; }
.kpi-card.roi-poor { border-left: 4px solid #ef4444; }

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .charts-grid { grid-template-columns: 1fr; }
}

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 400px;
}

.metrics-table-container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 32px;
}

.metrics-table-container h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
}

.metrics-table thead {
    background: #f9fafb;
}

.metrics-table th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metrics-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.metric-name {
    font-weight: 600;
    color: #374151;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.metric-average {
    color: #6b7280;
}

.metric-performance {
    font-weight: 600;
}

.performance-good { color: #10b981; }
.performance-average { color: #f59e0b; }
.performance-poor { color: #ef4444; }

.annual-projection {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 32px;
}

.annual-projection h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.projection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .projection-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .projection-grid { grid-template-columns: 1fr; }
}

.projection-metric {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.projection-label {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.projection-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.cta-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    color: white;
}

.cta-footer h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.cta-footer p {
    font-size: 16px;
    color: #d1d5db;
    margin: 0 0 24px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-footer-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.cta-footer-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

.mr-2 {
    margin-right: 8px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
