/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.app-container {
    max-width: 1100px;
    margin: 0 auto;
}

.app-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}
.app-header h1 { font-size: 2rem; margin-bottom: 8px; }
.tagline { opacity: 0.9; }

.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.visible { display: block; }
.hidden { display: none !important; }

h2 { color: #333; margin-bottom: 10px; }
.description { color: #666; line-height: 1.6; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 6px; color: #444; }
input, select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
input:focus, select:focus { outline: none; border-color: #667eea; }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); }

.disclaimer {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}

/* Loading */
.loader-section {
    text-align: center;
    color: white;
    padding: 60px 20px;
}
.loader {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 48px; height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Results */
.summary-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
}
.badge {
    position: absolute; top: 16px; right: 16px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.info-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.label { font-size: 0.75rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.value { font-size: 1.25rem; font-weight: 700; color: #333; }

.table-wrapper { margin-bottom: 24px; }
.table-wrapper h3 { margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f5f5f5; font-weight: 600; }
td:first-child { font-weight: 600; }

.badge-ok {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #d4edda;
    color: #155724;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-no {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f8d7da;
    color: #721c24;
    font-size: 0.8rem;
    font-weight: 600;
}

.recommendation-box {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.recommendation-box h4 { color: #667eea; margin: 10px 0; }
.next-steps ul { margin-left: 20px; margin-top: 8px; }
.next-steps li { margin-bottom: 6px; color: #555; }

.cta-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}
.cta-box h3 { margin-bottom: 8px; }
.btn-cta {
    margin-top: 16px;
    padding: 12px 28px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-cta:hover { transform: scale(1.02); }

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .card { padding: 24px; }
    h1 { font-size: 1.5rem; }
}