/* Top Criterio - Diagnóstico SEO B2B - Frontend Styles */

.tc-diag-wrapper {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
}

.tc-diag-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
    border: 1px solid #e8e8e8;
}

.tc-diag-header {
    text-align: center;
    margin-bottom: 28px;
}

.tc-diag-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111;
}

.tc-diag-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.tc-diag-step-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #222;
}

.tc-diag-field {
    margin-bottom: 18px;
}

.tc-diag-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.tc-diag-field input[type="text"],
.tc-diag-field input[type="email"],
.tc-diag-field input[type="tel"],
.tc-diag-field input[type="url"],
.tc-diag-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.tc-diag-field input:focus,
.tc-diag-field select:focus {
    outline: none;
    border-color: #1a7f4b;
    box-shadow: 0 0 0 3px rgba(26, 127, 75, 0.15);
}

.tc-diag-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-diag-radio-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.tc-diag-radio-group label:hover {
    border-color: #1a7f4b;
    background: #f7fdf9;
}

.tc-diag-radio-group input[type="radio"] {
    margin-top: 3px;
    accent-color: #1a7f4b;
}

.tc-diag-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.tc-diag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.tc-diag-btn:hover {
    transform: translateY(-1px);
}

.tc-diag-btn-primary {
    background: #1a7f4b;
    color: #fff;
}

.tc-diag-btn-primary:hover {
    background: #156b3f;
    color: #fff;
}

.tc-diag-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.tc-diag-btn-secondary:hover {
    background: #e4e4e4;
}

.tc-diag-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.tc-diag-btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

.tc-diag-progress {
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    margin-top: 24px;
    overflow: hidden;
}

.tc-diag-progress-bar {
    height: 100%;
    background: #1a7f4b;
    transition: width 0.3s ease;
}

.tc-diag-step-indicator {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin: 10px 0 0 0;
}

/* Resultado */
.tc-diag-result {
    text-align: center;
}

.tc-diag-result-header {
    margin-bottom: 24px;
}

.tc-diag-result-header h3 {
    font-size: 1.4rem;
    margin: 0 0 16px 0;
}

.tc-diag-score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7f4b, #2db36e);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 700;
}

.tc-diag-score-circle span {
    font-size: 2.2rem;
    line-height: 1;
}

.tc-diag-score-circle small {
    font-size: 0.85rem;
    opacity: 0.9;
}

.tc-diag-nivel {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a7f4b;
    margin: 0;
}

.tc-diag-recomendacion {
    background: #f7fdf9;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 18px;
    text-align: left;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.55;
}

.tc-diag-success-msg {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.tc-diag-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.tc-diag-result-actions .tc-diag-btn {
    width: 100%;
    max-width: 320px;
}

/* Estados de error */
.tc-diag-field.error input,
.tc-diag-field.error select {
    border-color: #c0392b;
}

.tc-diag-error-msg {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .tc-diag-card {
        padding: 24px 18px;
    }

    .tc-diag-title {
        font-size: 1.35rem;
    }

    .tc-diag-nav {
        flex-direction: column;
    }

    .tc-diag-btn {
        width: 100%;
    }
}
