/* ============================================================
   Constancia DC-3 – TutorLMS  |  dc3.css
   ============================================================ */

.tlms-dc3-wrapper {
    max-width: 640px;
    margin: 36px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Trigger box --- */
.tlms-dc3-trigger-box {
    text-align: center;
    padding: 28px 24px;
    border: 2px dashed #d1a800;
    border-radius: 12px;
    background: #fffbeb;
}

.tlms-dc3-badge {
    display: inline-block;
    background: #d97706;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.tlms-dc3-trigger-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px;
}

.tlms-dc3-trigger-desc {
    font-size: 0.88rem;
    color: #78350f;
    margin: 0 0 18px;
    line-height: 1.55;
}

.tlms-dc3-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tlms-dc3-btn-toggle:hover {
    background: #b45309;
}

.tlms-dc3-hint {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #92400e;
    opacity: 0.75;
}

/* --- Form container --- */
.tlms-dc3-form-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    margin-top: 16px;
}

.tlms-dc3-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.tlms-dc3-header-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.tlms-dc3-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.tlms-dc3-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* --- Secciones --- */
.tlms-dc3-section {
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
}

.tlms-dc3-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 18px;
}

.tlms-dc3-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #d97706;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Grid de campos --- */
.tlms-dc3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tlms-dc3-field--full {
    grid-column: 1 / -1;
}

/* --- Campos --- */
.tlms-dc3-field {
    display: flex;
    flex-direction: column;
}

.tlms-dc3-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.tlms-req { color: #ef4444; margin-left: 2px; }
.tlms-opt { color: #9ca3af; font-weight: 400; font-size: 0.78rem; }

.tlms-dc3-input {
    padding: 9px 13px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.92rem;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    width: 100%;
}

.tlms-dc3-input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.tlms-dc3-input.tlms-error {
    border-color: #ef4444;
}

.tlms-dc3-hint-field {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 3px;
}

/* --- Respuesta --- */
.tlms-dc3-response {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.tlms-dc3-response.tlms-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.tlms-dc3-response.tlms-error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* --- Aviso legal --- */
.tlms-dc3-legal {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* --- Botones --- */
.tlms-dc3-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tlms-dc3-btn-submit {
    flex: 1;
    padding: 12px 24px;
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tlms-dc3-btn-submit:hover:not(:disabled) {
    background: #b45309;
}

.tlms-dc3-btn-submit:disabled {
    background: #fcd34d;
    cursor: not-allowed;
}

.tlms-dc3-btn-cancel {
    padding: 12px 20px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.tlms-dc3-btn-cancel:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* --- Responsive --- */
@media (max-width: 520px) {
    .tlms-dc3-form-container { padding: 18px 14px; }
    .tlms-dc3-grid { grid-template-columns: 1fr; }
    .tlms-dc3-field--full { grid-column: 1; }
    .tlms-dc3-actions { flex-direction: column; }
}
